summaryrefslogtreecommitdiff
path: root/auth/ntlmssp
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-31 15:40:53 +1100
committerStefan Metzmacher <metze@samba.org>2012-02-17 10:48:09 +0100
commit725d55183287acfa3a0c87ce95ff140740ddbe45 (patch)
treedbdbb5596d33fcbe8618065a8ab6acc08b2ea681 /auth/ntlmssp
parent98992b5b4eabb6c0727952e6cdb4fcfdced4583d (diff)
downloadsamba-725d55183287acfa3a0c87ce95ff140740ddbe45.tar.gz
samba-725d55183287acfa3a0c87ce95ff140740ddbe45.tar.bz2
samba-725d55183287acfa3a0c87ce95ff140740ddbe45.zip
auth: Set NTLMSSP_NEGOTIATE_SIGN when session key support is required
This matches the s3 NTLMSSP server. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'auth/ntlmssp')
-rw-r--r--auth/ntlmssp/gensec_ntlmssp_server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/auth/ntlmssp/gensec_ntlmssp_server.c b/auth/ntlmssp/gensec_ntlmssp_server.c
index 841e6a67f0..bb70826905 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;
}