diff options
author | Stefan Metzmacher <metze@samba.org> | 2015-12-01 14:58:19 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-04-12 19:25:22 +0200 |
commit | 7a6b3efdc6451c3cbb157ad8d808f86d154625dd (patch) | |
tree | 302dde60a6746d3cba1a4825edd3bb6be950861d /auth/ntlmssp/gensec_ntlmssp_server.c | |
parent | 2843f012b6bfb6d56e11b1723c0b35531ebf669f (diff) | |
download | samba-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.c | 5 |
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)) { |