From a77c0ce55c757be1daea31c96270e5bc9cacc186 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 30 Oct 2002 00:17:36 +0000 Subject: [PATCH] Test anonymous whoami --- tests/scripts/test014-whoami | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tests/scripts/test014-whoami b/tests/scripts/test014-whoami index 6c42968276..b6aea511cc 100755 --- a/tests/scripts/test014-whoami +++ b/tests/scripts/test014-whoami @@ -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 -- 2.39.5