r26238: Add a loadparm context parameter to torture_context, remove more uses of...
[metze/samba/wip.git] / source4 / torture / rpc / testjoin.c
index 725799f2ddf76f8a93fe78fe732fc64554611e10..edffe539d76eea2127987bbf3ae4d26a6af095f0 100644 (file)
@@ -126,7 +126,7 @@ struct test_join *torture_create_testuser(struct torture_context *torture,
        int policy_min_pw_len = 0;
        struct test_join *join;
        char *random_pw;
-       const char *dc_binding = lp_parm_string(global_loadparm, NULL, "torture", "dc_binding");
+       const char *dc_binding = torture_setting_string(torture, "dc_binding", NULL);
 
        join = talloc(NULL, struct test_join);
        if (join == NULL) {
@@ -276,7 +276,7 @@ again:
        
        u.info21.description.string = talloc_asprintf(join, 
                                         "Samba4 torture account created by host %s: %s", 
-                                        lp_netbios_name(global_loadparm), 
+                                        lp_netbios_name(torture->lp_ctx), 
                                         timestring(join, time(NULL)));
 
        printf("Resetting ACB flags, force pw change time\n");