]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/samba/samba-3.6.99-2110-ntlmssp-session-setup-nas.patch
ipsec-interfaces: Apply static routes (again) after creating IPsec interfaces
[ipfire-2.x.git] / src / patches / samba / samba-3.6.99-2110-ntlmssp-session-setup-nas.patch
CommitLineData
1d13e637
AF
1From ce2b7dad823e3af00884bc0c75851eec7445ec88 Mon Sep 17 00:00:00 2001
2From: Andreas Schneider <asn@samba.org>
3Date: Mon, 31 Oct 2016 12:25:35 +0100
4Subject: [PATCH] s3-libsmb Allow SESSION KEY setup without signing
5
6This is not supported by NetApp or EMC NAS systems. They do not
7implement the protocol correctly. So work around their broken
8implementations.
9
10Signed-off-by: Andreas Schneider <asn@samba.org>
11---
12 source3/libsmb/ntlmssp.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
16index 7e58990..446d02d 100644
17--- a/source3/libsmb/ntlmssp.c
18+++ b/source3/libsmb/ntlmssp.c
19@@ -206,7 +206,7 @@ void ntlmssp_want_feature_list(struct ntlmssp_state *ntlmssp_state, char *featur
20 * also add NTLMSSP_NEGOTIATE_SEAL here. JRA.
21 */
22 if (in_list("NTLMSSP_FEATURE_SESSION_KEY", feature_list, True)) {
23- ntlmssp_state->required_flags |= NTLMSSP_NEGOTIATE_SIGN;
24+ ntlmssp_state->neg_flags |= NTLMSSP_NEGOTIATE_SIGN;
25 }
26 if (in_list("NTLMSSP_FEATURE_SIGN", feature_list, True)) {
27 ntlmssp_state->required_flags |= NTLMSSP_NEGOTIATE_SIGN;
28@@ -231,7 +231,7 @@ void ntlmssp_want_feature(struct ntlmssp_state *ntlmssp_state, uint32_t feature)
29 {
30 /* As per JRA's comment above */
31 if (feature & NTLMSSP_FEATURE_SESSION_KEY) {
32- ntlmssp_state->required_flags |= NTLMSSP_NEGOTIATE_SIGN;
33+ ntlmssp_state->neg_flags |= NTLMSSP_NEGOTIATE_SIGN;
34 }
35 if (feature & NTLMSSP_FEATURE_SIGN) {
36 ntlmssp_state->required_flags |= NTLMSSP_NEGOTIATE_SIGN;
37--
382.10.1
39