diff options
author | Michael Adam <obnox@samba.org> | 2008-04-04 18:29:44 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-06-23 14:18:30 +0200 |
commit | fdd6c691c7eec6354326b9cacb1f525d1f9c8716 (patch) | |
tree | b7ac7f2b8dd32a692b28908b32b972ff4807787e | |
parent | a680400b24e9a9f9a195cfabb8b7a31b2dabbbc9 (diff) | |
download | samba-fdd6c691c7eec6354326b9cacb1f525d1f9c8716.tar.gz |
testsuite: give the testuser administrative rights in selftest.sh
(by adding him to builtin\administrators)
Michael
(cherry picked from commit baea0615003cc2db8b27872e87064364f2deb079)
(cherry picked from commit 5d564b25e946e3a57fa251271711937e938cd22d)
-rwxr-xr-x | source/script/tests/selftest.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/script/tests/selftest.sh b/source/script/tests/selftest.sh index 26dd0cbbee9..5cec6d6d03e 100755 --- a/source/script/tests/selftest.sh +++ b/source/script/tests/selftest.sh @@ -254,6 +254,7 @@ SOCKET_WRAPPER_DEFAULT_IFACE=2 export SOCKET_WRAPPER_DEFAULT_IFACE samba3_check_or_start + # ensure any one smbtorture call doesn't run too long # and smbtorture will use 127.0.0.6 as source address by default SOCKET_WRAPPER_DEFAULT_IFACE=6 @@ -292,6 +293,15 @@ START=`date` bin/smbclient $CONFIGURATION -L $SERVER_IP -U% -p 139 | head -2 MAKE_TEST_BINARY="" + MAKE_TEST_BINARY="bin/net" + printf "%s" "GIVING USER ${USERNAME} ADMINISTRATIVE RIGHTS..." + bin/net -s $SERVERCONFFILE sam createbuiltingroup \ + Administrators > /dev/null 2>&1 || exit 1 + bin/net -s $SERVERCONFFILE sam addmem \ + BUILTIN\\Administrators $USERNAME > /dev/null 2>&1 || exit 1 + echo "DONE" + MAKE_TEST_BINARY="" + failed=0 . $SCRIPTDIR/tests_$SUBTESTS.sh |