]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:dsdb/tests: let password_lockout.py reduce the values for lockoutDuration and...
authorStefan Metzmacher <metze@samba.org>
Fri, 5 Feb 2016 07:37:53 +0000 (08:37 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 30 Jun 2016 01:30:24 +0000 (03:30 +0200)
This reduces the runtime of the test while still producing reliable results.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/password_lockout.py

index 7cd7d503333bd9e46675b905546687395c372ed3..962741d78ca68e4569d3f0d271332518e416bee8 100755 (executable)
@@ -332,7 +332,7 @@ lockoutThreshold: """ + str(lockoutThreshold) + """
         m = Message()
         m.dn = Dn(self.ldb, base_dn)
 
-        self.account_lockout_duration = 10
+        self.account_lockout_duration = 2
         account_lockout_duration_ticks = -int(self.account_lockout_duration * (1e7))
 
         m["lockoutDuration"] = MessageElement(str(account_lockout_duration_ticks),
@@ -342,7 +342,7 @@ lockoutThreshold: """ + str(lockoutThreshold) + """
         m["lockoutThreshold"] = MessageElement(str(account_lockout_threshold),
                                                FLAG_MOD_REPLACE, "lockoutThreshold")
 
-        self.lockout_observation_window = 5
+        self.lockout_observation_window = 2
         lockout_observation_window_ticks = -int(self.lockout_observation_window * (1e7))
 
         m["lockOutObservationWindow"] = MessageElement(str(lockout_observation_window_ticks),