From 5518741f3fb350cd08fc09e18deca1eede7e26f5 Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Wed, 16 Nov 2005 20:37:15 +0000 Subject: r11748: By default, use name resolution method provided by means of smb.conf. rafal (This used to be commit 739169e8eda74ad53d728fe6d11a30513c218853) --- source4/scripting/ejs/ejsnet.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/scripting') 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); -- cgit