diff options
author | Noel Power <noel.power@suse.com> | 2020-07-02 11:44:36 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2020-07-07 21:40:33 +0000 |
commit | 449259f6e1fbfb41a03d502a277b5f1fccd2182b (patch) | |
tree | e70bfa2eefa7f3eab3481547d06ca4886bb8fa0c /selftest | |
parent | 3dced6a436beee0de8d38b295a6711b3b7bc20e6 (diff) | |
download | samba-449259f6e1fbfb41a03d502a277b5f1fccd2182b.tar.gz |
selftest: run smbcacls test against a share with a DFS link
The commit creates a dfs link in existing 'fileserver' env
share msdfs_share. Additionally we create a new dfs target in
a new share (with associated directory)
Additionally add a known fail as smbcacls doesn't not yet navigate DFS links.
A subsequent commit will fix smcacls to handle DFS (and remove the
knownfail)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/knownfail.d/smbcacls | 1 | ||||
-rwxr-xr-x | selftest/target/Samba3.pm | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/selftest/knownfail.d/smbcacls b/selftest/knownfail.d/smbcacls new file mode 100644 index 00000000000..bcd78ce7b33 --- /dev/null +++ b/selftest/knownfail.d/smbcacls @@ -0,0 +1 @@ +^samba.tests.blackbox.smbcacls_basic\(DFS\) diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 1b7098e00aa..2e2f74efb79 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -1991,6 +1991,9 @@ sub provision($$) my $msdfs_deeppath="$msdfs_shrdir/deeppath"; push(@dirs,$msdfs_deeppath); + my $smbcacls_sharedir_dfs="$shrdir/smbcacls_sharedir_dfs"; + push(@dirs,$smbcacls_sharedir_dfs); + my $badnames_shrdir="$shrdir/badnames"; push(@dirs,$badnames_shrdir); @@ -2072,6 +2075,8 @@ sub provision($$) symlink "msdfs:$server_ip\\ro-tmp,$server_ipv6\\ro-tmp", "$msdfs_shrdir/msdfs-src1"; symlink "msdfs:$server_ipv6\\ro-tmp", "$msdfs_shrdir/deeppath/msdfs-src2"; + symlink "msdfs:$server_ip\\smbcacls_sharedir_dfs,$server_ipv6\\smbcacls_sharedir_dfs", + "$msdfs_shrdir/smbcacls_sharedir_dfs"; ## ## create bad names in $badnames_shrdir @@ -2316,6 +2321,9 @@ sub provision($$) } print CONF " +[smbcacls_sharedir_dfs] + path = $smbcacls_sharedir_dfs + comment = smb username is [%U] [tmp] path = $shrdir comment = smb username is [%U] |