summaryrefslogtreecommitdiff
path: root/auth/ntlmssp/gensec_ntlmssp_server.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-12-01 14:58:19 +0100
committerStefan Metzmacher <metze@samba.org>2016-04-12 19:25:22 +0200
commit7a6b3efdc6451c3cbb157ad8d808f86d154625dd (patch)
tree302dde60a6746d3cba1a4825edd3bb6be950861d /auth/ntlmssp/gensec_ntlmssp_server.c
parent2843f012b6bfb6d56e11b1723c0b35531ebf669f (diff)
downloadsamba-7a6b3efdc6451c3cbb157ad8d808f86d154625dd.tar.gz
CVE-2016-2110: auth/ntlmssp: split allow_lm_response from allow_lm_key
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11644 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'auth/ntlmssp/gensec_ntlmssp_server.c')
-rw-r--r--auth/ntlmssp/gensec_ntlmssp_server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/auth/ntlmssp/gensec_ntlmssp_server.c b/auth/ntlmssp/gensec_ntlmssp_server.c
index ede6f465122..9186ce993e8 100644
--- a/auth/ntlmssp/gensec_ntlmssp_server.c
+++ b/auth/ntlmssp/gensec_ntlmssp_server.c
@@ -118,7 +118,10 @@ NTSTATUS gensec_ntlmssp_server_start(struct gensec_security *gensec_security)
ntlmssp_state->expected_state = NTLMSSP_NEGOTIATE;
- if (lpcfg_lanman_auth(gensec_security->settings->lp_ctx) &&
+ ntlmssp_state->allow_lm_response =
+ lpcfg_lanman_auth(gensec_security->settings->lp_ctx);
+
+ if (ntlmssp_state->allow_lm_response &&
gensec_setting_bool(gensec_security->settings,
"ntlmssp_server", "allow_lm_key", false))
{