s3: smbtorture3: Add a new test SMB2-NON-DFS-SHARE.
authorJeremy Allison <jra@samba.org>
Thu, 8 Sep 2022 23:42:26 +0000 (16:42 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 14 Sep 2022 17:33:37 +0000 (17:33 +0000)
commit84e44cff39b58985f53d6440c508abb7dfb41fd7
tree3bdf418aa8d8f95d99af0cca2e8bff07ce094351
parent8ae0c38d54f065915e927bbfe1b656400a79eb13
s3: smbtorture3: Add a new test SMB2-NON-DFS-SHARE.

This one is tricky. It sends SMB2 DFS pathnames to a non-DFS
share, and sets the SMB2 flag FLAGS2_DFS_PATHNAMES in the SMB2
packet.

Windows will have non of it and (correctly) treats the pathnames
as local paths (they're going to a non-DFS share). Samba fails.

This proves the server looks as the share DFS capability to
override the flag in the SMB2 packet.

Passes against Windows. Added knownfail for Samba.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
selftest/knownfail.d/dfs_paths
selftest/target/Samba3.pm
source3/selftest/tests.py
source3/torture/proto.h
source3/torture/test_smb2.c
source3/torture/torture.c