s3: torture: Add a comprehensive SMB1 DFS path torture tester.
commita8ed244148a98e3b1f49ea7de426e795b6a28e06
authorJeremy Allison <jra@samba.org>
Tue, 30 Aug 2022 22:26:12 +0000 (30 15:26 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 2 Sep 2022 16:42:34 +0000 (2 16:42 +0000)
tree8353287b113d76d484c918cfb589164518a275ef
parent3a37e4155c3cd82388652f89b611f2c46fee8525
s3: torture: Add a comprehensive SMB1 DFS path torture tester.

smbtorture3 test is: SMB1-DFS-PATHS

Tests open, and then all 4 methods of renaming/hardlinking
files:

1). SMBmv
2). SMBtrans2 SETPATHINFO
3). SMBtrans2 SETFILEINFO
4). SMBntrename

Also added a test for SMB1findfirst.

smbtorture3 test is: SMB1-DFS-SEARCH-PATHS.

What this shows is that Windows strips off the
SMB1findfirst mask *before* calling the DFS path
parser (smbd currently does not).

Added so we know how to fix the server code to match Windows
behavior in parsing DFS paths in different calls going forward.

Passes fully against Windows. Adds knownfails for smbd.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
selftest/knownfail.d/dfs_paths
source3/selftest/tests.py
source3/torture/proto.h
source3/torture/test_smb1_dfs.c [new file with mode: 0644]
source3/torture/torture.c
source3/torture/wscript_build