testsuite: don't give the testuser administrative rights globally.
authorMichael Adam <obnox@samba.org>
Tue, 17 Jun 2008 21:51:23 +0000 (23:51 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 17 Jun 2008 21:51:23 +0000 (23:51 +0200)
It breaks RPC-SAMBA3-GETUSERNAME for reasons I have not quite
understood yet. Somhow loosing rights fails when the user
belogns to BUILTIN\Administrators at some point.

Michael

source/script/tests/selftest.sh

index 5cec6d6d03e45549b095d6dbe4e18d9547628c69..15e48b00efbc466c09dc859357d7ba80de3f2945 100755 (executable)
@@ -293,15 +293,6 @@ 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