1
0
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:
Douglas Bagnall 2020-10-28 09:51:06 +13:00 committed by Douglas Bagnall
parent 6b1b5eade2
commit c824ad8dcb

View File

@ -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: