r26238: Add a loadparm context parameter to torture_context, remove more uses of...
[metze/samba/wip.git] / source4 / torture / libnet / libnet_rpc.c
index 5ca927a1e38c221bfe191d7f45103635eec129d4..1e042c77a6453a5522bf3979971e0b50769fa008 100644 (file)
@@ -163,7 +163,7 @@ bool torture_rpc_connect_pdc(struct torture_context *torture)
        /* we're accessing domain controller so the domain name should be
           passed (it's going to be resolved to dc name and address) instead
           of specific server name. */
-       domain_name = lp_workgroup(global_loadparm);
+       domain_name = lp_workgroup(torture->lp_ctx);
        return torture_rpc_connect(torture, level, NULL, domain_name);
 }
 
@@ -183,7 +183,7 @@ bool torture_rpc_connect_dc(struct torture_context *torture)
        /* we're accessing domain controller so the domain name should be
           passed (it's going to be resolved to dc name and address) instead
           of specific server name. */
-       domain_name = lp_workgroup(global_loadparm);
+       domain_name = lp_workgroup(torture->lp_ctx);
        return torture_rpc_connect(torture, level, NULL, domain_name);
 }
 
@@ -203,7 +203,7 @@ bool torture_rpc_connect_dc_info(struct torture_context *torture)
        /* we're accessing domain controller so the domain name should be
           passed (it's going to be resolved to dc name and address) instead
           of specific server name. */
-       domain_name = lp_workgroup(global_loadparm);
+       domain_name = lp_workgroup(torture->lp_ctx);
        return torture_rpc_connect(torture, level, NULL, domain_name);
 }