summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-01-05 19:21:06 +0000
committerJeremy Allison <jra@samba.org>2004-01-05 19:21:06 +0000
commit2ed5a1a340598374a61e9eec9221598c26e749db (patch)
treebaf3004ba7b883f836e5fe1695fd35ebf87e339b
parent7e2bebae60658789d870750d6b4ab1dd75cbdf8b (diff)
downloadsamba-2ed5a1a340598374a61e9eec9221598c26e749db.tar.gz
samba-2ed5a1a340598374a61e9eec9221598c26e749db.tar.bz2
samba-2ed5a1a340598374a61e9eec9221598c26e749db.zip
Ensure we set "always sign" flag if set. We don't currently do anything with
this but we should log the fact it was negotiated. Jeremy. (This used to be commit 84d34e32be03ec99ce19520f24bb4daaeeddbbc3)
-rw-r--r--source3/libsmb/ntlmssp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index 0ab51dc960..95fd4c03e5 100644
--- a/source3/libsmb/ntlmssp.c
+++ b/source3/libsmb/ntlmssp.c
@@ -338,6 +338,10 @@ static void ntlmssp_handle_neg_flags(struct ntlmssp_state *ntlmssp_state,
ntlmssp_state->neg_flags &= ~NTLMSSP_NEGOTIATE_LM_KEY;
}
+ if (neg_flags & NTLMSSP_NEGOTIATE_ALWAYS_SIGN) {
+ ntlmssp_state->neg_flags |= NTLMSSP_NEGOTIATE_ALWAYS_SIGN;
+ }
+
if (!(neg_flags & NTLMSSP_NEGOTIATE_NTLM2)) {
ntlmssp_state->neg_flags &= ~NTLMSSP_NEGOTIATE_NTLM2;
}