]> git.sur5r.net Git - openldap/commitdiff
Test anonymous whoami
authorKurt Zeilenga <kurt@openldap.org>
Wed, 30 Oct 2002 00:17:36 +0000 (00:17 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 30 Oct 2002 00:17:36 +0000 (00:17 +0000)
tests/scripts/test014-whoami

index 6c42968276401e6cd88ffbf5dc974f046e88f538..b6aea511cc0b1b57f2269d2ea565daaaec0a9a62 100755 (executable)
@@ -46,9 +46,18 @@ for i in 0 1 2 3 4 5; do
        sleep 5
 done
 
-echo "Testing ldapwhoami ..."
-$LDAPWHOAMI -h $LOCALHOST -p $PORT \
-       -D "$MANAGERDN" -w $PASSWD
+echo "Testing ldapwhoami as anonymous..."
+$LDAPWHOAMI -h $LOCALHOST -p $PORT
+
+RC=$?
+if test $RC != 0 ; then
+       echo "ldapwhoami failed ($RC)!"
+       kill -HUP $PID
+       exit $RC
+fi
+
+echo "Testing ldapwhoami as ${MANAGERDN}..."
+$LDAPWHOAMI -h $LOCALHOST -p $PORT -D "$MANAGERDN" -w $PASSWD
 
 RC=$?
 if test $RC != 0 ; then