mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
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>
This commit is contained in:
parent
9f38df8337
commit
9ff1fa56f6
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user