From: Kurt Zeilenga Date: Wed, 30 Oct 2002 00:17:36 +0000 (+0000) Subject: Test anonymous whoami X-Git-Tag: NO_SLAP_OP_BLOCKS~823 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a77c0ce55c757be1daea31c96270e5bc9cacc186;p=openldap Test anonymous whoami --- 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