From 8e147f838edbb2739830d58ce9ea6b5d38a11495 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 8 Nov 2013 16:21:39 +1300 Subject: [PATCH] torture-samr: set min password age to 0 for lockout and badpwdcount tests Change-Id: I0d44fcc712e6f239d9adc739fdafc1b20dd2beba Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher --- source4/torture/rpc/samr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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), -- 2.11.4.GIT