summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-17 11:04:44 +0200
committerKarolin Seeger <kseeger@samba.org>2009-04-28 09:11:04 +0200
commite3bb5ed7641081f14d828f459e43e64fbaa0d9c4 (patch)
tree59311bf0856c126f1cba8e3fa83553dd168b6bcf /source4
parent675e2e81f51f65566bdeedf53cf1e060f3fe606b (diff)
downloadsamba-e3bb5ed7641081f14d828f459e43e64fbaa0d9c4.tar.gz
s4-smbtorture: disable CreateUser2 tests when running RPC-SAMR-PASSWORDS-PWDLAST
against Samba3. Samba 3 does not (yet) get all the ACB_flag settings right upon creation. Guenther (cherry picked from commit 32add69632ed4a2b877043c8df1185008516c299) (cherry picked from commit 93f4a4f89448f33dbcf67ebb92fd94e65579b3c4)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/samr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index 8af98675288..9c867fd5e41 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -5664,7 +5664,9 @@ static bool test_OpenDomain(struct dcerpc_pipe *p, struct torture_context *tctx,
}
break;
case TORTURE_SAMR_PASSWORDS_PWDLASTSET:
- ret &= test_CreateUser2(p, tctx, &domain_handle, sid, which_ops, machine_credentials);
+ if (!torture_setting_bool(tctx, "samba3", false)) {
+ ret &= test_CreateUser2(p, tctx, &domain_handle, sid, which_ops, machine_credentials);
+ }
ret &= test_CreateUser(p, tctx, &domain_handle, &user_handle, sid, which_ops, machine_credentials);
if (!ret) {
printf("Testing PASSWORDS PWDLASTSET on domain %s failed!\n", dom_sid_string(tctx, sid));