s4:pwsettings net utility - change also here the "minPwdAge" to be the real default
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 3 Jul 2010 09:27:20 +0000 (11:27 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 3 Jul 2010 09:38:54 +0000 (11:38 +0200)
Which is one day.

source4/scripting/python/samba/netcmd/pwsettings.py

index f4f827015a840b58e62cba1aa9908c90d7007c40..bfec13c29a33c81416777fb27851f6817092993c 100644 (file)
@@ -55,7 +55,7 @@ class cmd_pwsettings(Command):
         Option("--min-pwd-length",
           help="The minimum password length (<integer> | default).  Default is 7.", type=str),
         Option("--min-pwd-age",
-          help="The minimum password age (<integer in days> | default).  Default is 0.", type=str),
+          help="The minimum password age (<integer in days> | default).  Default is 1.", type=str),
         Option("--max-pwd-age",
           help="The maximum password age (<integer in days> | default).  Default is 43.", type=str),
           ]
@@ -142,7 +142,7 @@ class cmd_pwsettings(Command):
 
             if min_pwd_age is not None:
                 if min_pwd_age == "default":
-                    min_pwd_age = 0
+                    min_pwd_age = 1
                 else:
                     min_pwd_age = int(min_pwd_age)