diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-11-08 16:21:39 +1300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-04-02 17:12:46 +0200 |
commit | 8e147f838edbb2739830d58ce9ea6b5d38a11495 (patch) | |
tree | 65963a479f8392b41823910e12820a3a44fb269e /source4/torture | |
parent | 2d2dbafd2b761d6ae554484a22283338da224f02 (diff) | |
download | samba-8e147f838edbb2739830d58ce9ea6b5d38a11495.tar.gz samba-8e147f838edbb2739830d58ce9ea6b5d38a11495.tar.xz samba-8e147f838edbb2739830d58ce9ea6b5d38a11495.zip |
torture-samr: set min password age to 0 for lockout and badpwdcount tests
Change-Id: I0d44fcc712e6f239d9adc739fdafc1b20dd2beba
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 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index dbd13149289..a916d9f955e 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -3782,11 +3782,12 @@ static bool test_Password_badpwdcount(struct dcerpc_pipe *p, info.info1 = *info1; info.info1.password_history_length = password_history_length; + info.info1.min_password_age = 0; torture_assert(tctx, test_SetDomainInfo(b, tctx, domain_handle, DomainPasswordInformation, &info), - "failed to set password history length"); + "failed to set password history length and min passwd age"); info.info12 = *info12; info.info12.lockout_threshold = lockout_threshold; @@ -4127,6 +4128,9 @@ static bool test_Password_lockout(struct dcerpc_pipe *p, torture_comment(tctx, "setting password history length.\n"); info.info1.password_history_length = password_history_length; + torture_comment(tctx, "setting min password again.\n"); + info.info1.min_password_age = 0; + torture_assert(tctx, test_SetDomainInfo(b, tctx, domain_handle, DomainPasswordInformation, &info), |