mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
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>
This commit is contained in:
parent
6b1b5eade2
commit
c824ad8dcb
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user