s4/test: change prototype for test_opendomain()
authorKamen Mazdrashki <kamenim@samba.org>
Fri, 28 May 2010 02:06:55 +0000 (05:06 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Fri, 28 May 2010 19:30:08 +0000 (22:30 +0300)
- name changed to test_domain_open to be more alike athore functions
  in utils.c file
- output parameters moved to the end param list definition just
  after mem_ctx so it is somehow more clear those params are OUT

source4/torture/libnet/groupinfo.c
source4/torture/libnet/groupman.c
source4/torture/libnet/userinfo.c
source4/torture/libnet/userman.c
source4/torture/libnet/utils.c
source4/torture/libnet/utils.h

index affd1e5f964bbeea358205e90d6c3b4aa7a2733d..01f2f9e692d58ea2a718692d781e3fceeaea3211 100644 (file)
@@ -99,7 +99,7 @@ bool torture_groupinfo(struct torture_context *torture)
        /*
         * Testing synchronous version
         */
-       if (!test_opendomain(torture, b, mem_ctx, &h, &name, &sid)) {
+       if (!test_domain_open(torture, b, &name, mem_ctx, &h, &sid)) {
                ret = false;
                goto done;
        }
index 7788ee85c37ebadf641b226a32f0f1bcf5793d0f..f44793ac822c692802447e25f073ff0cd8d1ede9 100644 (file)
@@ -72,7 +72,7 @@ bool torture_groupadd(struct torture_context *torture)
        b = p->binding_handle;
 
        domain_name.string = lp_workgroup(torture->lp_ctx);
-       if (!test_opendomain(torture, b, mem_ctx, &h, &domain_name, &sid)) {
+       if (!test_domain_open(torture, b, &domain_name, mem_ctx, &h, &sid)) {
                ret = false;
                goto done;
        }
index d6ea609a439aa3bfc07b4c5fac89a9f5056eb22a..04a9240eef0658106903f69b6584dfce9a8f0b9e 100644 (file)
@@ -138,7 +138,7 @@ bool torture_userinfo(struct torture_context *torture)
        /*
         * Testing synchronous version
         */
-       if (!test_opendomain(torture, b, mem_ctx, &h, &name, &sid)) {
+       if (!test_domain_open(torture, b, &name, mem_ctx, &h, &sid)) {
                ret = false;
                goto done;
        }
@@ -161,7 +161,7 @@ bool torture_userinfo(struct torture_context *torture)
        /*
         * Testing asynchronous version and monitor messages
         */
-       if (!test_opendomain(torture, b, mem_ctx, &h, &name, &sid)) {
+       if (!test_domain_open(torture, b, &name, mem_ctx, &h, &sid)) {
                ret = false;
                goto done;
        }
index b1699cf4e70d71a12a35ecb269fd10f35562f8eb..98365d3bff70294b6d2879ae68c6d408ec686d53 100644 (file)
@@ -326,7 +326,7 @@ bool torture_useradd(struct torture_context *torture)
        b = p->binding_handle;
 
        domain_name.string = lp_workgroup(torture->lp_ctx);
-       if (!test_opendomain(torture, b, mem_ctx, &h, &domain_name, &sid)) {
+       if (!test_domain_open(torture, b, &domain_name, mem_ctx, &h, &sid)) {
                ret = false;
                goto done;
        }
@@ -341,7 +341,7 @@ bool torture_useradd(struct torture_context *torture)
                goto done;
        }
 
-       if (!test_opendomain(torture, b, mem_ctx, &h, &domain_name, &sid)) {
+       if (!test_domain_open(torture, b, &domain_name, mem_ctx, &h, &sid)) {
                ret = false;
                goto done;
        }
@@ -387,7 +387,7 @@ bool torture_userdel(struct torture_context *torture)
        b = p->binding_handle;
 
        domain_name.string = lp_workgroup(torture->lp_ctx);
-       if (!test_opendomain(torture, b, mem_ctx, &h, &domain_name, &sid)) {
+       if (!test_domain_open(torture, b, &domain_name, mem_ctx, &h, &sid)) {
                ret = false;
                goto done;
        }
@@ -434,7 +434,7 @@ bool torture_usermod(struct torture_context *torture)
        domain_name.string = lp_workgroup(torture->lp_ctx);
        name = talloc_strdup(mem_ctx, TEST_USERNAME);
 
-       if (!test_opendomain(torture, b, mem_ctx, &h, &domain_name, &sid)) {
+       if (!test_domain_open(torture, b, &domain_name, mem_ctx, &h, &sid)) {
                ret = false;
                goto done;
        }
index 27dae51194a0d02392ff09bc14a9bd7def1c3319..0bd8a7c0dca5f0192acbf11c4c7df159578fce41 100644 (file)
  * @param _dom_sid [out] If NULL, Domain SID won't be returned
  * @return
  */
-bool test_opendomain(struct torture_context *tctx,
+bool test_domain_open(struct torture_context *tctx,
                     struct dcerpc_binding_handle *b,
+                    struct lsa_String *domname,
                     TALLOC_CTX *mem_ctx,
                     struct policy_handle *_domain_handle,
-                    struct lsa_String *domname,
                     struct dom_sid2 *_dom_sid)
 {
        struct policy_handle connect_handle;
index 04ea3e2febb7f1283e72b67a07163c0fe73f80d5..26350e3012fc1ce54ce31e446a9970b43b75f0c8 100644 (file)
 */
 
 
-bool test_opendomain(struct torture_context *tctx,
+bool test_domain_open(struct torture_context *tctx,
                     struct dcerpc_binding_handle *b,
+                    struct lsa_String *domname,
                     TALLOC_CTX *mem_ctx,
-                    struct policy_handle *handle, struct lsa_String *domname,
-                    struct dom_sid2 *sid);
+                    struct policy_handle *_domain_handle,
+                    struct dom_sid2 *_dom_sid);
 
 bool test_user_create(struct torture_context *tctx,
                      struct dcerpc_binding_handle *b,