From: Kurt Zeilenga Date: Fri, 1 Nov 2002 18:18:14 +0000 (+0000) Subject: Update whoami test X-Git-Tag: OPENLDAP_REL_ENG_2_1_9~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f4bc72d7eb059734e4acbb5118c1004fba679ae;p=openldap Update whoami test --- diff --git a/CHANGES b/CHANGES index 7e7b2bc756..d2ca1c9200 100644 --- a/CHANGES +++ b/CHANGES @@ -7,6 +7,7 @@ OpenLDAP 2.1.9 Engineering Added "allow update_anon" feature (ITS#2155) Build Environment Add subordinate referral test + Updated whoami test Fix configure shtool no bold handling OpenLDAP 2.1.8 Release 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