From: Douglas Bagnall Date: Tue, 27 Oct 2020 20:51:06 +0000 (+1300) Subject: samba-tool domain: fix error string for account lockout duration X-Git-Tag: talloc-2.4.0~1176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c824ad8dcb9222a75c7bdf756f605b840fb68a00;p=thirdparty%2Fsamba.git samba-tool domain: fix error string for account lockout duration Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- 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: