]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-smbtorture: when testing RPC-SAMR-LARGE-DC its fine to just close the objects.
authorGünther Deschner <gd@samba.org>
Mon, 8 Jun 2009 20:41:23 +0000 (22:41 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 8 Jun 2009 20:45:16 +0000 (22:45 +0200)
Guenther

source4/torture/rpc/samr.c

index db3b09c85b0a7e4d36e94fe97365186dfd87e8e3..11e746aa20ce2bb5899cc29db64eb1e3eeb34401 100644 (file)
@@ -6347,7 +6347,7 @@ static bool test_ManyObjects(struct dcerpc_pipe *p,
                return false;
        }
 
-       /* delete */
+       /* close or delete */
 
        for (i=0; i < num_total; i++) {
 
@@ -6355,18 +6355,22 @@ static bool test_ManyObjects(struct dcerpc_pipe *p,
                        continue;
                }
 
-               switch (which_ops) {
-               case TORTURE_SAMR_MANY_ACCOUNTS:
-                       ret &= test_DeleteUser(p, tctx, &handles[i]);
-                       break;
-               case TORTURE_SAMR_MANY_GROUPS:
-                       ret &= test_DeleteDomainGroup(p, tctx, &handles[i]);
-                       break;
-               case TORTURE_SAMR_MANY_ALIASES:
-                       ret &= test_DeleteAlias(p, tctx, &handles[i]);
-                       break;
-               default:
-                       return false;
+               if (torture_setting_bool(tctx, "samba3", false)) {
+                       ret &= test_samr_handle_Close(p, tctx, &handles[i]);
+               } else {
+                       switch (which_ops) {
+                       case TORTURE_SAMR_MANY_ACCOUNTS:
+                               ret &= test_DeleteUser(p, tctx, &handles[i]);
+                               break;
+                       case TORTURE_SAMR_MANY_GROUPS:
+                               ret &= test_DeleteDomainGroup(p, tctx, &handles[i]);
+                               break;
+                       case TORTURE_SAMR_MANY_ALIASES:
+                               ret &= test_DeleteAlias(p, tctx, &handles[i]);
+                               break;
+                       default:
+                               return false;
+                       }
                }
        }