mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:test_smbclient_s3.sh: pass the protocol (NT1) to the script
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
a4c1960a2d
commit
2c7ed6c283
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
# this runs the file serving tests that are expected to pass with samba3
|
# this runs the file serving tests that are expected to pass with samba3
|
||||||
|
|
||||||
if [ $# -lt 11 ]; then
|
if [ $# -lt 13 ]; then
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Usage: test_smbclient_s3.sh SERVER SERVER_IP DOMAIN USERNAME PASSWORD USERID LOCAL_PATH PREFIX SMBCLIENT WBINFO NET
|
Usage: test_smbclient_s3.sh SERVER SERVER_IP DOMAIN USERNAME PASSWORD USERID LOCAL_PATH PREFIX SMBCLIENT WBINFO NET CONFIGURATION PROTOCOL
|
||||||
EOF
|
EOF
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
@ -20,10 +20,13 @@ PREFIX="${8}"
|
|||||||
SMBCLIENT="${9}"
|
SMBCLIENT="${9}"
|
||||||
WBINFO="${10}"
|
WBINFO="${10}"
|
||||||
NET="${11}"
|
NET="${11}"
|
||||||
|
CONFIGURATION="${12}"
|
||||||
|
PROTOCOL="${13}"
|
||||||
SMBCLIENT="$VALGRIND ${SMBCLIENT}"
|
SMBCLIENT="$VALGRIND ${SMBCLIENT}"
|
||||||
WBINFO="$VALGRIND ${WBINFO}"
|
WBINFO="$VALGRIND ${WBINFO}"
|
||||||
shift 11
|
shift 13
|
||||||
ADDARGS="$*"
|
RAWARGS="${CONFIGURATION} -m${PROTOCOL}"
|
||||||
|
ADDARGS="${RAWARGS} $*"
|
||||||
|
|
||||||
incdir=`dirname $0`/../../../testprogs/blackbox
|
incdir=`dirname $0`/../../../testprogs/blackbox
|
||||||
. $incdir/subunit.sh
|
. $incdir/subunit.sh
|
||||||
@ -613,8 +616,7 @@ test_ccache_access()
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$SMBCLIENT //$SERVER_IP/tmp -C -U "${USERNAME}" \
|
$SMBCLIENT //$SERVER_IP/tmp -C -U "${USERNAME}" $ADDARGS -c quit 2>&1
|
||||||
-c quit 2>&1
|
|
||||||
ret=$?
|
ret=$?
|
||||||
|
|
||||||
if [ $ret != 0 ] ; then
|
if [ $ret != 0 ] ; then
|
||||||
@ -632,8 +634,7 @@ test_ccache_access()
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$SMBCLIENT //$SERVER_IP/tmp -C -U "${USERNAME}" \
|
$SMBCLIENT //$SERVER_IP/tmp -C -U "${USERNAME}" $ADDARGS -c quit 2>&1
|
||||||
-c quit 2>&1
|
|
||||||
ret=$?
|
ret=$?
|
||||||
|
|
||||||
if [ $ret -eq 0 ] ; then
|
if [ $ret -eq 0 ] ; then
|
||||||
@ -654,8 +655,7 @@ username=${USERNAME}
|
|||||||
password=${PASSWORD}
|
password=${PASSWORD}
|
||||||
domain=${DOMAIN}
|
domain=${DOMAIN}
|
||||||
EOF
|
EOF
|
||||||
$SMBCLIENT //$SERVER_IP/tmp --authentication-file=$tmpfile \
|
$SMBCLIENT //$SERVER_IP/tmp --authentication-file=$tmpfile $ADDARGS -c quit 2>&1
|
||||||
-c quit 2>&1
|
|
||||||
ret=$?
|
ret=$?
|
||||||
rm $tmpfile
|
rm $tmpfile
|
||||||
|
|
||||||
@ -670,8 +670,7 @@ username=${USERNAME}
|
|||||||
password=xxxx
|
password=xxxx
|
||||||
domain=${DOMAIN}
|
domain=${DOMAIN}
|
||||||
EOF
|
EOF
|
||||||
$SMBCLIENT //$SERVER_IP/tmp --authentication-file=$tmpfile\
|
$SMBCLIENT //$SERVER_IP/tmp --authentication-file=$tmpfile $ADDARGS -c quit 2>&1
|
||||||
-c quit 2>&1
|
|
||||||
ret=$?
|
ret=$?
|
||||||
rm $tmpfile
|
rm $tmpfile
|
||||||
|
|
||||||
@ -1258,8 +1257,8 @@ done
|
|||||||
LOGDIR=$(mktemp -d ${PREFIX}/${LOGDIR_PREFIX}_XXXXXX)
|
LOGDIR=$(mktemp -d ${PREFIX}/${LOGDIR_PREFIX}_XXXXXX)
|
||||||
|
|
||||||
|
|
||||||
testit "smbclient -L $SERVER_IP" $SMBCLIENT -L $SERVER_IP -N -p 139 || failed=`expr $failed + 1`
|
testit "smbclient -L $SERVER_IP" $SMBCLIENT -L $SERVER_IP -N -p 139 ${RAWARGS} || failed=`expr $failed + 1`
|
||||||
testit "smbclient -L $SERVER -I $SERVER_IP" $SMBCLIENT -L $SERVER -I $SERVER_IP -N -p 139 -c quit || failed=`expr $failed + 1`
|
testit "smbclient -L $SERVER -I $SERVER_IP" $SMBCLIENT -L $SERVER -I $SERVER_IP -N -p 139 ${RAWARGS} -c quit || failed=`expr $failed + 1`
|
||||||
|
|
||||||
testit "noninteractive smbclient does not prompt" \
|
testit "noninteractive smbclient does not prompt" \
|
||||||
test_noninteractive_no_prompt || \
|
test_noninteractive_no_prompt || \
|
||||||
|
@ -205,20 +205,20 @@ plantestsuite("samba3.blackbox.smbclient_ntlm.plain (%s)" % env, env, [os.path.j
|
|||||||
|
|
||||||
# plain
|
# plain
|
||||||
for env in ["nt4_dc"]:
|
for env in ["nt4_dc"]:
|
||||||
plantestsuite("samba3.blackbox.smbclient_s3.plain (%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3, wbinfo, net, configuration])
|
plantestsuite("samba3.blackbox.smbclient_s3.NT1.plain (%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3, wbinfo, net, configuration, "NT1"])
|
||||||
|
|
||||||
for env in ["nt4_member", "ad_member"]:
|
for env in ["nt4_member", "ad_member"]:
|
||||||
plantestsuite("samba3.blackbox.smbclient_s3.plain (%s) member creds" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$SERVER', '$SERVER/$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3, wbinfo, net, configuration])
|
plantestsuite("samba3.blackbox.smbclient_s3.NT1.plain (%s) member creds" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$SERVER', '$SERVER/$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3, wbinfo, net, configuration, "NT1"])
|
||||||
|
|
||||||
for env in ["nt4_dc"]:
|
for env in ["nt4_dc"]:
|
||||||
plantestsuite("samba3.blackbox.smbclient_s3.sign (%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3, wbinfo, net, configuration, "--signing=required"])
|
plantestsuite("samba3.blackbox.smbclient_s3.NT1.sign (%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3, wbinfo, net, configuration, "NT1", "--signing=required"])
|
||||||
|
|
||||||
for env in ["nt4_member", "ad_member"]:
|
for env in ["nt4_member", "ad_member"]:
|
||||||
plantestsuite("samba3.blackbox.smbclient_s3.sign (%s) member creds" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$SERVER', '$SERVER/$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3, wbinfo, net, configuration, "--signing=required"])
|
plantestsuite("samba3.blackbox.smbclient_s3.NT1.sign (%s) member creds" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$SERVER', '$SERVER/$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3, wbinfo, net, configuration, "NT1", "--signing=required"])
|
||||||
|
|
||||||
for env in ["nt4_dc"]:
|
for env in ["nt4_dc"]:
|
||||||
# encrypted
|
# encrypted
|
||||||
plantestsuite("samba3.blackbox.smbclient_s3.crypt (%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3, wbinfo, net, configuration, "-e"])
|
plantestsuite("samba3.blackbox.smbclient_s3.NT1.crypt (%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3, wbinfo, net, configuration, "NT1", "-e"])
|
||||||
|
|
||||||
for env in ["fileserver"]:
|
for env in ["fileserver"]:
|
||||||
plantestsuite("samba3.blackbox.preserve_case (%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_preserve_case.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3])
|
plantestsuite("samba3.blackbox.preserve_case (%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_preserve_case.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3])
|
||||||
|
Loading…
Reference in New Issue
Block a user