summaryrefslogtreecommitdiff
path: root/auth/ntlmssp
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-06 18:02:11 +1100
committerStefan Metzmacher <metze@samba.org>2012-02-17 12:18:51 +0100
commitc35a7e8c478062de0d5d6771b59e0430cd9706c3 (patch)
treee30526b87c850435d42136b49cafceeb9276d687 /auth/ntlmssp
parentf433baa3c8a995cbbeecdcbc75f8ae503a5ae4b6 (diff)
downloadsamba-c35a7e8c478062de0d5d6771b59e0430cd9706c3.tar.gz
auth: Allow the netbios name and domain to be set from winbindd in ntlm_auth3
Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Feb 17 12:18:51 CET 2012 on sn-devel-104
Diffstat (limited to 'auth/ntlmssp')
-rw-r--r--auth/ntlmssp/gensec_ntlmssp_server.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/auth/ntlmssp/gensec_ntlmssp_server.c b/auth/ntlmssp/gensec_ntlmssp_server.c
index 6ba3976f7e5..8f45c2c6640 100644
--- a/auth/ntlmssp/gensec_ntlmssp_server.c
+++ b/auth/ntlmssp/gensec_ntlmssp_server.c
@@ -343,8 +343,17 @@ NTSTATUS gensec_ntlmssp_server_start(struct gensec_security *gensec_security)
ntlmssp_state->server.is_standalone = false;
}
- netbios_name = lpcfg_netbios_name(gensec_security->settings->lp_ctx);
- netbios_domain = lpcfg_workgroup(gensec_security->settings->lp_ctx);
+ if (gensec_security->settings->server_netbios_name) {
+ netbios_name = gensec_security->settings->server_netbios_name;
+ } else {
+ netbios_name = lpcfg_netbios_name(gensec_security->settings->lp_ctx);
+ }
+
+ if (gensec_security->settings->server_netbios_domain) {
+ netbios_domain = gensec_security->settings->server_netbios_domain;
+ } else {
+ netbios_domain = lpcfg_workgroup(gensec_security->settings->lp_ctx);
+ }
if (gensec_security->settings->server_dns_name) {
dns_name = gensec_security->settings->server_dns_name;