diff options
Diffstat (limited to 'auth')
-rw-r--r-- | auth/gensec/gensec.h | 2 | ||||
-rw-r--r-- | auth/ntlmssp/gensec_ntlmssp_server.c | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/auth/gensec/gensec.h b/auth/gensec/gensec.h index aba1018a92..f88da2227d 100644 --- a/auth/gensec/gensec.h +++ b/auth/gensec/gensec.h @@ -87,6 +87,8 @@ struct gensec_settings { /* To fill in our own name in the NTLMSSP server */ const char *server_dns_domain; const char *server_dns_name; + const char *server_netbios_domain; + const char *server_netbios_name; }; struct gensec_security_ops { diff --git a/auth/ntlmssp/gensec_ntlmssp_server.c b/auth/ntlmssp/gensec_ntlmssp_server.c index 6ba3976f7e..8f45c2c664 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; |