1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source4
Stefan Metzmacher 3b1b2e6046 s4:torture/smb2: make smb2.lock.replay_broken_windows more obvious
This test checks the SMB 2.1.0 behaviour of lock sequence checking,
which is only turned on for resilient handles.

Even Windows Server 2019 only implements lock sequence checking only
for resilient and persistent handles as a server.
While its client side uses lock sequence checking if it negotiated
multichannel with the server.

Hopefully this will be fixed in future Windows versions.

Make it clear that this test is supposed to pass against the legacy
Windows servers which violate the specification:

  [MS-SMB2] 3.3.5.14 Receiving an SMB2 LOCK Request

  ...

  ... if Open.IsResilient or Open.IsDurable or Open.IsPersistent is
  TRUE or if Connection.Dialect belongs to the SMB 3.x dialect family
  and Connection.ServerCapabilities includes
  SMB2_GLOBAL_CAP_MULTI_CHANNEL bit, the server SHOULD<314>
  perform lock sequence verification ...

  ...

  <314> Section 3.3.5.14: Windows 7 and Windows Server 2008 R2 perform
  lock sequence verification only when Open.IsResilient is TRUE.
  Windows 8 through Windows 10 v1909 and Windows Server 2012 through
  Windows Server v1909 perform lock sequence verification only when
  Open.IsResilient or Open.IsPersistent is TRUE.

Note <314> also applies to all versions (at least) up to Windows Server v2004.

Hopefully this will be fixed in future Windows versions and they
will avoid Note <314>.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2020-06-27 04:20:38 +00:00
..
auth pyauth: add python binding for auth_session_info_set_unix() 2020-06-05 10:32:31 +00:00
build/pasn1
cldap_server source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
client Fix clang 9 missing-field-initializer warnings 2020-05-08 09:31:31 +00:00
cluster
dns_server s4/rpc_server/dnsserver: Allow parsing of dnsProperty to fail gracefully 2020-05-15 07:29:16 +00:00
dsdb replmd: slightly clarify a comment 2020-06-13 06:50:11 +00:00
echo_server s4 echo_server: Enable prefork process model 2019-07-16 08:13:12 +00:00
heimdal heimdal: apply disallow-forwardable on server in TGS request 2020-06-12 20:42:38 +00:00
heimdal_build heimdal_build: Remove bashism from --address-sanitizer build rule 2020-01-18 12:25:16 +00:00
include
kdc db-glue.c: set forwardable flag on cross-realm tgt tickets 2020-06-12 22:10:34 +00:00
ldap_server s4 ldap_server: modernize debug calls 2020-05-06 21:15:42 +00:00
lib s3:lib:tls: Use better priority lists for modern GnuTLS 2020-06-17 17:42:02 +00:00
libcli source4/libcli: Use NT_STATUS_PENDING instead of STATUS_PENDING 2020-06-22 12:07:38 +00:00
libnet smbdes: convert E_old_pw_hash to use gnutls 2019-12-10 00:30:31 +00:00
librpc Fix clang 9 missing-field-initializer warnings 2020-05-08 09:31:31 +00:00
nbt_server smbdotconf: mark "wins hook" with substitution="1" 2019-11-27 10:25:36 +00:00
ntp_signd lib/crypto: move gnutls error wrapper to own subsystem 2019-06-27 12:54:22 +00:00
ntvfs ntvfs: Use NT_STATUS_NOTIFY_ENUM_DIR instead of STATUS_NOTIFY_ENUM_DIR 2020-06-22 12:07:38 +00:00
param Add python binding for DATADIR build path 2020-06-23 16:32:30 +00:00
rpc_server librpc: core: Move the s4 handles implementation to the RPC server core 2020-05-24 23:55:36 +00:00
script PY3: change shebang to python3 in source4/dsdb dir 2018-12-14 14:40:20 +01:00
scripting gpo: Run Group Policy Scripts 2020-06-23 16:32:30 +00:00
selftest selftest: test forwardable flag in cross-realm with s4u2proxy 2020-06-12 20:42:38 +00:00
setup provision: Remove final code for the LDAP backend 2020-04-23 06:12:20 +00:00
smb_server source4/smb_server: Use NT_STATUS_PENDING instead of STATUS_PENDING 2020-06-22 12:07:38 +00:00
smbd lib/messaging: Move messages_dgm out of source3 2020-05-06 00:06:40 +00:00
torture s4:torture/smb2: make smb2.lock.replay_broken_windows more obvious 2020-06-27 04:20:38 +00:00
utils Fix clang 9 missing-field-initializer warnings 2020-05-08 09:31:31 +00:00
winbind s4/winbind: clang: Fixes 'Value stored during its initialization is never read' 2019-09-26 18:41:26 +00:00
wrepl_server source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
.clang_complete
.valgrind_suppressions
wscript_build