summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-07-29 13:50:06 +0200
committerStefan Metzmacher <metze@samba.org>2014-04-17 14:56:05 +0200
commit363f76c30504ca18cbce56f5b2ed5bcb2ce41412 (patch)
treee29019a2fd59a3fd555d1e1cc645fe8d8672c0ec /testprogs
parent77b7dfd37b4833cd7a5a953744decf406ac94db0 (diff)
downloadsamba-363f76c30504ca18cbce56f5b2ed5bcb2ce41412.tar.gz
testprogs: Fix tests calling smbpasswd.
smbpasswd has a check that it is root so make sure we start with uid_wrapper being root! Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/test_passwords.sh3
-rwxr-xr-xtestprogs/blackbox/test_pdbtest.sh3
2 files changed, 6 insertions, 0 deletions
diff --git a/testprogs/blackbox/test_passwords.sh b/testprogs/blackbox/test_passwords.sh
index bc3447b1b5a..ab546a63084 100755
--- a/testprogs/blackbox/test_passwords.sh
+++ b/testprogs/blackbox/test_passwords.sh
@@ -46,6 +46,9 @@ test_smbclient() {
return $status
}
+UID_WRAPPER_ROOT=1
+export UID_WRAPPER_ROOT
+
CONFIG="--configfile=$PREFIX/dc/etc/smb.conf"
export CONFIG
diff --git a/testprogs/blackbox/test_pdbtest.sh b/testprogs/blackbox/test_pdbtest.sh
index 1e33a0b9fd8..af822f9cc70 100755
--- a/testprogs/blackbox/test_pdbtest.sh
+++ b/testprogs/blackbox/test_pdbtest.sh
@@ -42,6 +42,9 @@ test_smbclient() {
return $status
}
+UID_WRAPPER_ROOT=1
+export UID_WRAPPER_ROOT
+
testit "pdbtest" $BINDIR/pdbtest -u pdbtest || failed=`expr $failed + 1`
NEWUSERPASS=testPaSS@01%