]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba-tool domain: fix error string for account lockout duration
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Tue, 27 Oct 2020 20:51:06 +0000 (09:51 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Tue, 6 Sep 2022 21:12:36 +0000 (21:12 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/domain.py

index 2a548ed1ad4cc4f9e85a2e62de05fad02b23439b..f5f0141158386427b5defa8c7c5d74472521bc82 100644 (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: