1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

sefltest: Add new regression test dfs with widelinks = yes

Adds a new test trying to cd into dfs path on share with
widelinks enabled, should generate an error (see BUG:)

Add a knownfail so CI continues

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

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Noel Power 2023-07-28 09:41:59 +01:00 committed by Jeremy Allison
parent b57cdfd7ef
commit 3d2e9db8b9
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1 @@
^samba3.blackbox.smbclient-bug15435.smbclient

View File

@ -0,0 +1,28 @@
#!/bin/sh
# regression test for dfs access with wide links enabled on dfs share
if [ $# -lt 5 ]; then
cat <<EOF
Usage: test_smbclient_basic.sh SERVER SERVER_IP DOMAIN USERNAME PASSWORD SMBCLIENT <smbclient arguments>
EOF
exit 1
fi
SERVER="$1"
SERVER_IP="$2"
USERNAME="$3"
PASSWORD="$4"
smbclient="$5"
CONFIGURATION="$6"
shift 6
ADDARGS="$@"
incdir=$(dirname $0)/../../../testprogs/blackbox
. $incdir/subunit.sh
. $incdir/common_test_fns.inc
# TEST
test_smbclient "smbclient as $DOMAIN\\$USERNAME" 'ls' "//$SERVER/msdfs-share-wl" -U$DOMAIN\\$USERNAME%$PASSWORD $ADDARGS -c 'cd msdfs-src1' || failed=$(expr $failed + 1)
exit $failed

View File

@ -1701,6 +1701,17 @@ plantestsuite("samba3.blackbox.smbclient-mget",
"$PASSWORD",
"valid_users"])
plantestsuite("samba3.blackbox.smbclient-bug15435",
"fileserver",
[os.path.join(samba3srcdir, "script/tests/test_bug15435_widelink_dfs.sh"),
"$SERVER",
"$SERVER_IP",
"$USERNAME",
"$PASSWORD",
smbclient3,
configuration])
if have_cluster_support:
t = "readdir-timestamp"
plantestsuite(