1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/source3/librpc/idl
Stefan Metzmacher 52dd57d4b3 smbXsrv_client: notify a different node to drop a connection by client guid.
If a client disconnected all its interfaces and reconnects when
the come back, it will likely start from any ip address returned
dns, which means it can try to connect to a different ctdb node.
The old node may not have noticed the disconnect and still holds
the client_guid based smbd.

Up unil now the new node returned NT_STATUS_NOT_SUPPORTED to
the SMB2 Negotiate request, as messaging_send_iov[_from]() will
return -1/ENOSYS if a file descriptor os passed to a process on
a different node.

Now we tell the other node to teardown all client connections
belonging to the client-guid.

Note that this is not authenticated, but if an attacker can
capture the client-guid, he can also inject TCP resets anyway,
to get the same effect.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Sep  2 20:59:15 UTC 2022 on sn-devel-184

(cherry picked from commit 8591d94243)
2022-10-18 08:34:17 +00:00
..
IDL_LICENSE.txt
leases_db.idl smbd: Make "current_state" show up first in the blob 2019-09-17 22:49:36 +00:00
libnet_join.idl s3-libnet_join: add request_offline_join flag 2021-07-14 16:49:30 +00:00
libnetapi.idl s3-libnetapi: add NetRequestOfflineDomainJoin to IDL 2021-07-14 16:49:30 +00:00
open_files.idl smbd: Remove "have_share_modes" from "struct share_mode_data" 2020-12-04 22:32:38 +00:00
perfcount.idl idl: Fix a typo 2014-10-07 17:03:42 +02:00
rpc_host.idl idl: Define messages sent between samba-dcerpcd and rpcd's 2021-12-10 14:02:30 +00:00
secrets.idl idl: secrets_domain_info1_change is not a recursive structure 2021-06-29 03:07:17 +00:00
smbXsrv.idl smbXsrv_client: notify a different node to drop a connection by client guid. 2022-10-18 08:34:17 +00:00
wscript_build idl: Define messages sent between samba-dcerpcd and rpcd's 2021-12-10 14:02:30 +00:00