From c824ad8dcb9222a75c7bdf756f605b840fb68a00 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 28 Oct 2020 09:51:06 +1300 Subject: [PATCH] samba-tool domain: fix error string for account lockout duration Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- python/samba/netcmd/domain.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: