From: Andrew Bartlett Date: Tue, 31 Jan 2012 04:40:53 +0000 (+1100) Subject: auth: Set NTLMSSP_NEGOTIATE_SIGN when session key support is required X-Git-Tag: samba-4.0.0alpha18~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=725d55183287acfa3a0c87ce95ff140740ddbe45;p=thirdparty%2Fsamba.git auth: Set NTLMSSP_NEGOTIATE_SIGN when session key support is required This matches the s3 NTLMSSP server. Andrew Bartlett Signed-off-by: Stefan Metzmacher --- diff --git a/auth/ntlmssp/gensec_ntlmssp_server.c b/auth/ntlmssp/gensec_ntlmssp_server.c index 841e6a67f0b..bb70826905f 100644 --- a/auth/ntlmssp/gensec_ntlmssp_server.c +++ b/auth/ntlmssp/gensec_ntlmssp_server.c @@ -319,6 +319,9 @@ NTSTATUS gensec_ntlmssp_server_start(struct gensec_security *gensec_security) ntlmssp_state->neg_flags |= NTLMSSP_NEGOTIATE_NTLM2; } + if (gensec_security->want_features & GENSEC_FEATURE_SESSION_KEY) { + ntlmssp_state->neg_flags |= NTLMSSP_NEGOTIATE_SIGN; + } if (gensec_security->want_features & GENSEC_FEATURE_SIGN) { ntlmssp_state->neg_flags |= NTLMSSP_NEGOTIATE_SIGN; }