summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2020-10-28 09:51:06 +1300
committerDouglas Bagnall <dbagnall@samba.org>2022-09-06 21:12:36 +0000
commitc824ad8dcb9222a75c7bdf756f605b840fb68a00 (patch)
tree0a83c72800d80b37769aad7fc93f74cebb28249e /python
parent6b1b5eade2ff32200ad4c543dfb1543d5bd897ef (diff)
downloadsamba-c824ad8dcb9222a75c7bdf756f605b840fb68a00.tar.gz
samba-c824ad8dcb9222a75c7bdf756f605b840fb68a00.tar.bz2
samba-c824ad8dcb9222a75c7bdf756f605b840fb68a00.zip
samba-tool domain: fix error string for account lockout duration
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/netcmd/domain.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py
index 2a548ed1ad4..f5f01411583 100644
--- a/python/samba/netcmd/domain.py
+++ b/python/samba/netcmd/domain.py
@@ -1497,7 +1497,8 @@ class cmd_domain_passwordsettings_set(Command):
account_lockout_duration = int(account_lockout_duration)
if account_lockout_duration < 0 or account_lockout_duration > 99999:
- raise CommandError("Maximum password age must be in the range of 0 to 99999!")
+ raise CommandError("Account lockout duration "
+ "must be in the range of 0 to 99999!")
# minutes -> ticks
if account_lockout_duration == 0: