summaryrefslogtreecommitdiff
path: root/source4/libcli/resolve
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-02-06 20:58:18 +1100
committerAndrew Bartlett <abartlet@samba.org>2013-02-17 11:25:34 +0100
commitdcc94f093317ffa2bbbc776fb82657088eb63305 (patch)
tree294e41f147a7e012b26748f7faa5681e33134c64 /source4/libcli/resolve
parent6dfb35f3ff7ad2d2089c0a3e5eab342384e45e4c (diff)
downloadsamba-dcc94f093317ffa2bbbc776fb82657088eb63305.tar.gz
samba-dcc94f093317ffa2bbbc776fb82657088eb63305.tar.bz2
samba-dcc94f093317ffa2bbbc776fb82657088eb63305.zip
s4-nbt: Ensure source4/ nbt client and server honour 'disable netbios'
Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sun Feb 17 11:25:34 CET 2013 on sn-devel-104
Diffstat (limited to 'source4/libcli/resolve')
-rw-r--r--source4/libcli/resolve/resolve_lp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/libcli/resolve/resolve_lp.c b/source4/libcli/resolve/resolve_lp.c
index 69c05a2ea0..92e11f0fcb 100644
--- a/source4/libcli/resolve/resolve_lp.c
+++ b/source4/libcli/resolve/resolve_lp.c
@@ -32,9 +32,13 @@ struct resolve_context *lpcfg_resolve_context(struct loadparm_context *lp_ctx)
for (i = 0; methods != NULL && methods[i] != NULL; i++) {
if (!strcmp(methods[i], "wins")) {
- resolve_context_add_wins_method_lp(ret, lp_ctx);
+ if (lpcfg_disable_netbios(lp_ctx) == false) {
+ resolve_context_add_wins_method_lp(ret, lp_ctx);
+ }
} else if (!strcmp(methods[i], "bcast")) {
- resolve_context_add_bcast_method_lp(ret, lp_ctx);
+ if (lpcfg_disable_netbios(lp_ctx) == false) {
+ resolve_context_add_bcast_method_lp(ret, lp_ctx);
+ }
} else if (!strcmp(methods[i], "file")) {
resolve_context_add_file_method_lp(ret, lp_ctx);
} else if (!strcmp(methods[i], "host")) {