summaryrefslogtreecommitdiff
path: root/source3/script/tests
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-04 18:29:44 +0200
committerMichael Adam <obnox@samba.org>2008-05-06 12:26:14 +0200
commite7fa8e2700b888548d49472f8a22c16724cafa7f (patch)
tree40e52fe040ed60b706018af12f2ce6c43e97a47d /source3/script/tests
parent447df4dc853d3876bc74effe42a1243dc0f5cba4 (diff)
downloadsamba-e7fa8e2700b888548d49472f8a22c16724cafa7f.tar.gz
samba-e7fa8e2700b888548d49472f8a22c16724cafa7f.tar.bz2
samba-e7fa8e2700b888548d49472f8a22c16724cafa7f.zip
testsuite: give the testuser administrative rights in selftest.sh
(by adding him to builtin\administrators) Michael (This used to be commit baea0615003cc2db8b27872e87064364f2deb079)
Diffstat (limited to 'source3/script/tests')
-rwxr-xr-xsource3/script/tests/selftest.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/script/tests/selftest.sh b/source3/script/tests/selftest.sh
index 26dd0cbbee..5cec6d6d03 100755
--- a/source3/script/tests/selftest.sh
+++ b/source3/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