summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/ejs/ejsnet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/scripting/ejs/ejsnet.c b/source4/scripting/ejs/ejsnet.c
index f26cea6d3a..82e0eb81fe 100644
--- a/source4/scripting/ejs/ejsnet.c
+++ b/source4/scripting/ejs/ejsnet.c
@@ -36,6 +36,7 @@ static int ejs_net_context(MprVarHandle eid, int argc, struct MprVar **argv)
ctx = libnet_context_init(NULL);
creds = talloc(ctx, struct cli_credentials);
ctx->cred = creds;
+ ctx->name_res_methods = lp_name_resolve_order();
if (argc == 0) {
cli_credentials_set_anonymous(creds);