Ensure we set "always sign" flag if set. We don't currently do anything with
authorJeremy Allison <jra@samba.org>
Mon, 5 Jan 2004 19:21:06 +0000 (19:21 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 5 Jan 2004 19:21:06 +0000 (19:21 +0000)
this but we should log the fact it was negotiated.
Jeremy.
(This used to be commit 84d34e32be03ec99ce19520f24bb4daaeeddbbc3)

source3/libsmb/ntlmssp.c

index 0ab51dc960a261098e993967564aa9534815c651..95fd4c03e5510cdbbeb5947622b8c0d5b3880a72 100644 (file)
@@ -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;
        }