s4: torture: Add a new test - samba3.smb2.durable-open.stat-open.
authorJeremy Allison <jra@samba.org>
Wed, 27 Apr 2022 19:50:59 +0000 (12:50 -0700)
committerJule Anger <janger@samba.org>
Mon, 9 May 2022 07:21:13 +0000 (07:21 +0000)
commitc7e2b4c3e90ca90be265ea6ee518e980ea6a4364
tree2b59310190ccd84444be9badcbc4e05523821465
parent43a4e018ff0bf5a9ec75a5d2c23da5c51250e7a9
s4: torture: Add a new test - samba3.smb2.durable-open.stat-open.

Passes against Windows. Shows that Windows allows a durable handle
on a leased open for READ_ATTRUBUTES only (a stat open).

Mark as knownfail for now.

NB. Not sure why we are testing smb2.durable-open against ad_dc
as that provisioning has "smb2 leases = no" which precludes
granting durable handles. Not changing for this bug but this
should be looked at in future.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit bb329d4de505d2c01ba45a06311c9dc6d87f8dec)
selftest/knownfail
selftest/knownfail.d/durable-stat-open [new file with mode: 0644]
source4/torture/smb2/durable_open.c