mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4:dsdb/tests: let password_lockout.py reduce the values for lockoutDuration and lockOutObservationWindow
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>
This commit is contained in:
parent
853c2a6d8a
commit
9e6c22dbbe
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user