1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

testsuite: give the testuser administrative rights in selftest.sh

(by adding him to builtin\administrators)

Michael
(This used to be commit baea061500)
This commit is contained in:
Michael Adam 2008-04-04 18:29:44 +02:00
parent 447df4dc85
commit e7fa8e2700

View File

@ -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