diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-11-04 12:26:18 +1300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-04-02 17:12:45 +0200 |
commit | 5a2eae4229192c8bc009ec8c8d30f372ff4d32e5 (patch) | |
tree | 8b1e34610bfc16e645a9a6e8f12ae20d412c3187 /source4/torture | |
parent | 44a624d6ce97078f93baf83f36737238363f788e (diff) | |
download | samba-5a2eae4229192c8bc009ec8c8d30f372ff4d32e5.tar.gz samba-5a2eae4229192c8bc009ec8c8d30f372ff4d32e5.tar.xz samba-5a2eae4229192c8bc009ec8c8d30f372ff4d32e5.zip |
torture-samr: Set lockout_seconds to 60 for samba3
The source3 account policy code deals with lockouts in terms of
minutes, not nanoseconds, so we have to lock out for at least 60
seconds otherwise we do not wait long enough.
Andrew Bartlett.
Change-Id: I2b30d1c0d9b020b3aba6ed3343361e9a576b7d9a
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/samr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index c0d8039331d..660439e382d 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -4103,6 +4103,10 @@ static bool test_Password_lockout(struct dcerpc_pipe *p, uint64_t delta_time_factor = 10 * 1000 * 1000; struct dcerpc_binding_handle *b = p->binding_handle; + if (torture_setting_bool(tctx, "samba3", false)) { + lockout_seconds = 60; + } + torture_comment(tctx, "\nTesting account lockout: %s\n", comment); /* set policies */ |