r24755: Use common code for finding the RPC binding in the torture tests.
[jelmer/samba4-debian.git] / source / torture / libnet / userman.c
index d70fb0bc77b0ec79e07d3785e971706f80eed810..90b3f41959fe4adde8ad82e292b78bfd6ec377ed 100644 (file)
@@ -478,7 +478,6 @@ static BOOL test_compare(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
 BOOL torture_useradd(struct torture_context *torture)
 {
        NTSTATUS status;
-       const char *binding;
        struct dcerpc_pipe *p;
        struct policy_handle h;
        struct lsa_String domain_name;
@@ -487,7 +486,6 @@ BOOL torture_useradd(struct torture_context *torture)
        BOOL ret = True;
 
        mem_ctx = talloc_init("test_useradd");
-       binding = torture_setting_string(torture, "binding", NULL);
 
        status = torture_rpc_connection(torture, 
                                        &p,
@@ -537,7 +535,6 @@ done:
 BOOL torture_userdel(struct torture_context *torture)
 {
        NTSTATUS status;
-       const char *binding;
        struct dcerpc_pipe *p;
        struct policy_handle h;
        struct lsa_String domain_name;
@@ -546,7 +543,6 @@ BOOL torture_userdel(struct torture_context *torture)
        BOOL ret = True;
 
        mem_ctx = talloc_init("test_userdel");
-       binding = torture_setting_string(torture, "binding", NULL);
 
        status = torture_rpc_connection(torture, 
                                        &p,
@@ -581,7 +577,6 @@ done:
 BOOL torture_usermod(struct torture_context *torture)
 {
        NTSTATUS status;
-       const char *binding;
        struct dcerpc_pipe *p;
        struct policy_handle h;
        struct lsa_String domain_name;
@@ -591,7 +586,6 @@ BOOL torture_usermod(struct torture_context *torture)
        BOOL ret = True;
 
        mem_ctx = talloc_init("test_userdel");
-       binding = torture_setting_string(torture, "binding", NULL);
 
        status = torture_rpc_connection(torture, 
                                        &p,