diff options
author | Andrew Bartlett <abartlet@samba.org> | 2018-07-03 12:27:24 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-07-05 09:40:59 +0200 |
commit | 9ff1fa56f68044142b6664fd703ebbb3f53d4725 (patch) | |
tree | 5c11a3fc74ece42c9f07bb950dbad5700b8ca00d | |
parent | 9f38df8337d694a1ac543629efb004ed52f07047 (diff) | |
download | samba-9ff1fa56f68044142b6664fd703ebbb3f53d4725.tar.gz |
selftest: Use self.account_lockout_duration in self.update_lockout_settings for password_lockout tests
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>
-rw-r--r-- | source4/dsdb/tests/python/password_lockout_base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/tests/python/password_lockout_base.py b/source4/dsdb/tests/python/password_lockout_base.py index 843eaff1ab2..de70140db5b 100644 --- a/source4/dsdb/tests/python/password_lockout_base.py +++ b/source4/dsdb/tests/python/password_lockout_base.py @@ -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() |