summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2005-11-16 20:37:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:21 -0500
commit5518741f3fb350cd08fc09e18deca1eede7e26f5 (patch)
treeac769dff459301a2331c4c141864b1d08a874125
parente1bea4eaf57bd81189793786b450720ab8fef4e7 (diff)
downloadsamba-5518741f3fb350cd08fc09e18deca1eede7e26f5.tar.gz
samba-5518741f3fb350cd08fc09e18deca1eede7e26f5.tar.bz2
samba-5518741f3fb350cd08fc09e18deca1eede7e26f5.zip
r11748: By default, use name resolution method provided by means
of smb.conf. rafal (This used to be commit 739169e8eda74ad53d728fe6d11a30513c218853)
-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);