The Samba-Bugzilla – Attachment 13597 Details for
Bug 13009
Can't connect to NetApp with SMB3.1.1 due to strict interpretation of encryption flag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for v4-7-test
tmp47.diff.txt (text/plain), 1.55 KB, created by
Stefan Metzmacher
on 2017-09-14 15:17:49 UTC
(
hide
)
Description:
Patch for v4-7-test
Filename:
MIME Type:
Creator:
Stefan Metzmacher
Created:
2017-09-14 15:17:49 UTC
Size:
1.55 KB
patch
obsolete
>From 9508c6c3e15a184ba046d61d3195714d9023f370 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Mon, 11 Sep 2017 16:36:47 -0700 >Subject: [PATCH] libcli: SMB2: NetApps negotiate SMB3_11 but also set the > SMB2_CAP_ENCRYPTION flag. > >This is a SHOULD not, not a MUST not. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=13009 > >Signed-off-by: Jeremy Allison <jra@samba.org> >Reviewed-by: Steve French <sfrench@samba.org> > >Autobuild-User(master): Jeremy Allison <jra@samba.org> >Autobuild-Date(master): Thu Sep 14 14:48:20 CEST 2017 on sn-devel-144 > >(cherry picked from commit f0a90a1287a8f4c4114919a32afaff52e3c69a9b) >--- > libcli/smb/smbXcli_base.c | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > >diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c >index bf21656..7322380 100644 >--- a/libcli/smb/smbXcli_base.c >+++ b/libcli/smb/smbXcli_base.c >@@ -4921,10 +4921,19 @@ static void smbXcli_negprot_smb2_done(struct tevent_req *subreq) > return; > } > >+ /* >+ * Here we are now at SMB3_11, so encryption should be >+ * negotiated via context, not capabilities. >+ */ >+ > if (conn->smb2.server.capabilities & SMB2_CAP_ENCRYPTION) { >- tevent_req_nterror(req, >- NT_STATUS_INVALID_NETWORK_RESPONSE); >- return; >+ /* >+ * Server set SMB2_CAP_ENCRYPTION capability, >+ * but *SHOULD* not, not *MUST* not. Just mask it off. >+ * NetApp seems to do this: >+ * BUG: https://bugzilla.samba.org/show_bug.cgi?id=13009 >+ */ >+ conn->smb2.server.capabilities &= ~SMB2_CAP_ENCRYPTION; > } > > negotiate_context_offset = IVAL(body, 60); >-- >1.9.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
jra
:
review+
vl
:
review+
Actions:
View
Attachments on
bug 13009
:
13574
|
13575
|
13584
| 13597