mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +03:00
bcd9794d64
shfmt -f source4/setup/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
32 lines
1.1 KiB
Bash
Executable File
32 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $# -lt 1 ]; then
|
|
cat <<EOF
|
|
Usage: blackbox_group.sh PREFIX
|
|
EOF
|
|
exit 1
|
|
fi
|
|
|
|
PREFIX="$1"
|
|
shift 1
|
|
|
|
. $(dirname $0)/../../../testprogs/blackbox/subunit.sh
|
|
|
|
samba_tool="./bin/samba-tool"
|
|
|
|
CONFIG="--configfile=$PREFIX/etc/smb.conf"
|
|
|
|
#creation of two test subjects
|
|
testit "addspn" $PYTHON $samba_tool spn add FOO/bar Administrator $CONFIG
|
|
testit "delspn" $PYTHON $samba_tool spn delete FOO/bar $CONFIG
|
|
testit "readdspn" $PYTHON $samba_tool spn add FOO/bar Administrator $CONFIG
|
|
testit_expect_failure "failexistingspn" $PYTHON $samba_tool spn add FOO/bar Guest $CONFIG
|
|
testit_expect_failure "faildelspnnotgooduser" $PYTHON $samba_tool spn delete FOO/bar krbtgt $CONFIG
|
|
testit "deluserspn" $PYTHON $samba_tool spn delete FOO/bar $CONFIG
|
|
testit "readd_spn_guest" $PYTHON $samba_tool spn add FOO/bar Guest $CONFIG
|
|
testit "deluserspn_guest" $PYTHON $samba_tool spn delete FOO/bar Guest $CONFIG
|
|
testit_expect_failure "faildelspn" $PYTHON $samba_tool spn delete FOO/bar $CONFIG
|
|
testit_expect_failure "failaddspn" $PYTHON $samba_tool spn add FOO/bar nonexistinguser $CONFIG
|
|
|
|
exit $failed
|