auth: Set NTLMSSP_NEGOTIATE_SIGN when session key support is required
authorAndrew Bartlett <abartlet@samba.org>
Tue, 31 Jan 2012 04:40:53 +0000 (15:40 +1100)
committerStefan Metzmacher <metze@samba.org>
Fri, 17 Feb 2012 09:48:09 +0000 (10:48 +0100)
This matches the s3 NTLMSSP server.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
auth/ntlmssp/gensec_ntlmssp_server.c

index 841e6a67f0baa6281e24ecfdc8ee6f97a2e36266..bb70826905f8e425b4ba9b6f0ef24575500fb5b3 100644 (file)
@@ -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;
        }