diff options
author | Michael Adam <obnox@samba.org> | 2012-12-11 13:34:49 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2012-12-11 18:05:50 +0100 |
commit | 55cf3873b45d626e4abaa8e95cf48b1889d25efe (patch) | |
tree | 134bdf7ee3849910100d9c16230d94246a9fa042 | |
parent | 9fcd01c08d6e2df82867b93bd3c3f6b86358f016 (diff) | |
download | samba-55cf3873b45d626e4abaa8e95cf48b1889d25efe.tar.gz |
s4:torture:rpc:samr: fix password age calculation in test_ChangePasswordUser3()
The min_password_age field is the negative of the age.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | source4/torture/rpc/samr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index 01f4c0fdc29..f17f0d746c9 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -2490,8 +2490,8 @@ bool test_ChangePasswordUser3(struct dcerpc_pipe *p, struct torture_context *tct Guenther */ - if ((dominfo->min_password_age > 0) && !null_nttime(last_password_change) && - (last_password_change + dominfo->min_password_age > t)) { + if ((dominfo->min_password_age < 0) && !null_nttime(last_password_change) && + (last_password_change - dominfo->min_password_age > t)) { if (reject->extendedFailureReason != SAM_PWD_CHANGE_NO_ERROR) { torture_warning(tctx, "expected SAM_PWD_CHANGE_NO_ERROR (%d), got %d\n", |