]>
Commit | Line | Data |
---|---|---|
1d13e637 AF |
1 | From ce2b7dad823e3af00884bc0c75851eec7445ec88 Mon Sep 17 00:00:00 2001 |
2 | From: Andreas Schneider <asn@samba.org> | |
3 | Date: Mon, 31 Oct 2016 12:25:35 +0100 | |
4 | Subject: [PATCH] s3-libsmb Allow SESSION KEY setup without signing | |
5 | ||
6 | This is not supported by NetApp or EMC NAS systems. They do not | |
7 | implement the protocol correctly. So work around their broken | |
8 | implementations. | |
9 | ||
10 | Signed-off-by: Andreas Schneider <asn@samba.org> | |
11 | --- | |
12 | source3/libsmb/ntlmssp.c | 4 ++-- | |
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | |
14 | ||
15 | diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c | |
16 | index 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 | -- | |
38 | 2.10.1 | |
39 |