selftest: Use self.account_lockout_duration in self.update_lockout_settings for passw...
authorAndrew Bartlett <abartlet@samba.org>
Tue, 3 Jul 2018 00:27:24 +0000 (12:27 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 5 Jul 2018 07:40:59 +0000 (09:40 +0200)
This allows the account_lockout_duration and
lockout_observation_window to be updated with longer values to cope
with slower build servers.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/dsdb/tests/python/password_lockout_base.py

index 843eaff1ab2cfe3311276a994fdc7fffdee6e752..de70140db5b9bb8e533d0048fe5fb3e0b2bf0523 100644 (file)
@@ -325,8 +325,9 @@ lockoutThreshold: """ + str(lockoutThreshold) + """
         self.base_dn = self.ldb.domain_dn()
         self.account_lockout_duration = 2
         self.lockout_observation_window = 2
-        self.update_lockout_settings(threshold=3, duration=2,
-                                     observation_window=2)
+        self.update_lockout_settings(threshold=3,
+                                     duration=self.account_lockout_duration,
+                                     observation_window=self.lockout_observation_window)
 
         # update DC to allow password changes for the duration of this test
         self.allow_password_changes()