smb2_server: fallback global session lookup if the session belongs to a different...
authorStefan Metzmacher <metze@samba.org>
Thu, 25 Feb 2021 16:58:48 +0000 (17:58 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 17 Mar 2021 00:49:32 +0000 (00:49 +0000)
commitb8ccd2391afcc50ca109e328a523b233fcb91a90
tree77231083f4efd1d82413eca5c2a4b2ca98736c7a
parent3242a0b091899068943072b9c509452931042542
smb2_server: fallback global session lookup if the session belongs to a different client

The key is that we need to have the signing key in order to pass the
signing checks and give the correct session bind error status.

This should fix the MultipleChannel_Negative_SMB2002 testcase
of the Windows Protocol Test Suite (FileServer).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14512

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reported-by: Jones Syue <jonessyue@qnap.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail.d/smb2.session
source3/smbd/globals.h
source3/smbd/smb2_server.c
source3/smbd/smb2_sesssetup.c
source3/smbd/smbXsrv_session.c