1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/smb_server
Noel Power e30607aff3 s4/smb_server: Fix handling of SMB2 messages after Netbios session setup
On receiving a special NBT packet (e.g. session setup) the samba daemon
effectively sets up SMB1 as the negotiated protocol (in terms of
software handling of the messages) even though no SMB protocol
has yet been negotiated. If the next message after the nbt session setup
is a SMB2 message it will be handled by the SMB1 callbacks and will be
rejected. This is evident when using smbclient (with -p 139) option
in an env where SMB1 cannot be negotiated [*]

This change doesn't set up the SMB1 callbacks on receipt of NBT special
messages but lets the generic callback in place. Once either SMB1 (or)
SMB2 is established (by receipt of a 'real' SMB or >=SMB2 message) then
the proper callbacks will be set as normal.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Dec  5 18:44:40 UTC 2019 on sn-devel-184
2019-12-05 18:44:40 +00:00
..
smb s4/smb_server/smb: cppcheck: Fix uninitvar & uninitStructMember errors 2019-06-04 22:13:07 +00:00
smb2 libsmb: Rename InfoType from [MS-SMB2] according to the spec 2019-04-01 17:58:16 +00:00
blob.c s4/ntvfs: support FS_SECTOR_SIZE_INFORMATION query-info 2015-03-18 18:57:21 +01:00
handle.c
management.c
service_smb.c source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
session.c spelling of associated 2019-02-13 04:15:14 +01:00
smb_server.c s4/smb_server: Fix handling of SMB2 messages after Netbios session setup 2019-12-05 18:44:40 +00:00
smb_server.h source4/smbd: refactor the process model for prefork 2017-10-19 05:33:09 +02:00
tcon.c
wscript_build build: Build less of Samba when building --without-ntvfs-fileserver 2016-06-02 16:36:15 +02:00