Samba and Windows servers always sign the response to the sessionsetup SMB2 request. Although this is preferred, this is not mandatory. Some OEM SMB2 servers do not sign the SMB2 sessionsetup reply and so smbclient fails to connect. Found at the SNIA SDC plugfest. Fix is to only enforce this if signing is set as mandatory. Patch to follow. Jeremy.
Created attachment 9220 [details] git-am fix from master for 4.1.0 git cherry-pick -x af290a03cef63c3b08446c1980de064a3b1c8804 Metze - this still leaves an ugly error message such as: Bad SMB2 signature for message [0000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ [0000] 03 94 24 7C 88 6E 35 BC A9 AF 2E C1 1C 00 E5 00 ..$|.n5. ........ on every smbclient connection. Every OEM server except Samba and Windows behaves like this. Should we add an additional patch to only check the signature if the sessionsetup reply is signed ? Jeremy.
Created attachment 9225 [details] Additional git-am fix from master for 4.1.0
Created attachment 9226 [details] git-am fix from master for 4.1.0 Both patches as a git-am single patchset file. Equivalent to: git cherry-pick -x af290a03cef63c3b08446c1980de064a3b1c8804 git cherry-pick -x 4879d0810a2ad741e32ad174a7a14cd35521aeaf Jeremy.
Comment on attachment 9226 [details] git-am fix from master for 4.1.0 Metze already added a +1 on both patches individually, so it's safe to push the combined fix to 4.1.0. Thanks, Jeremy.
Pushed to autobuild-v4-1-test.
Pushed to v4-1-test. Closing out bug report. Thanks!