s4-smbtorture: disable CreateUser2 tests when running RPC-SAMR-PASSWORDS-PWDLAST
authorGünther Deschner <gd@samba.org>
Fri, 17 Apr 2009 09:04:44 +0000 (11:04 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 17 Apr 2009 09:15:58 +0000 (11:15 +0200)
against Samba3.

Samba 3 does not (yet) get all the ACB_flag settings right upon creation.

Guenther

source4/torture/rpc/samr.c

index 8af986752882f856b77df89c33a2fbb87ee18380..9c867fd5e41e71c125e9332e027d3fa253a2d0ac 100644 (file)
@@ -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));