summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/wkssvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc/wkssvc.c')
-rw-r--r--source4/torture/rpc/wkssvc.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/source4/torture/rpc/wkssvc.c b/source4/torture/rpc/wkssvc.c
index ff5c20e258..9a2f518535 100644
--- a/source4/torture/rpc/wkssvc.c
+++ b/source4/torture/rpc/wkssvc.c
@@ -1228,17 +1228,11 @@ static bool test_NetrJoinDomain2(struct torture_context *tctx,
break;
}
- domain_admin_account = lp_parm_string(global_loadparm, NULL,
- "torture",
- "domain_admin_account");
+ domain_admin_account = torture_setting_string(tctx, "domain_admin_account", NULL);
- domain_admin_password = lp_parm_string(global_loadparm, NULL,
- "torture",
- "domain_admin_password");
+ domain_admin_password = torture_setting_string(tctx, "domain_admin_password", NULL);
- domain_name = lp_parm_string(global_loadparm, NULL,
- "torture",
- "domain_name");
+ domain_name = torture_setting_string(tctx, "domain_name", NULL);
if ((domain_admin_account == NULL) ||
(domain_admin_password == NULL) ||
@@ -1318,13 +1312,9 @@ static bool test_NetrUnjoinDomain2(struct torture_context *tctx,
break;
}
- domain_admin_account = lp_parm_string(global_loadparm, NULL,
- "torture",
- "domain_admin_account");
+ domain_admin_account = torture_setting_string(tctx, "domain_admin_account", NULL);
- domain_admin_password = lp_parm_string(global_loadparm, NULL,
- "torture",
- "domain_admin_password");
+ domain_admin_password = torture_setting_string(tctx, "domain_admin_password", NULL);
if ((domain_admin_account == NULL) ||
(domain_admin_password == NULL)) {