From: Pierangelo Masarati Date: Tue, 27 Apr 2004 22:47:41 +0000 (+0000) Subject: more whoami tests X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~416 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35643b0425b19b721c90859d166d8282002c7dad;p=openldap more whoami tests --- diff --git a/tests/scripts/test014-whoami b/tests/scripts/test014-whoami index fb194244fc..ae9fd28191 100755 --- a/tests/scripts/test014-whoami +++ b/tests/scripts/test014-whoami @@ -374,6 +374,20 @@ if test $RC != 1 ; then exit $RC fi +BINDDN="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" +BINDPW=bjorn +AUTHZID="dn:cn=Should Fail,dc=example,dc=com" +echo "Testing ldapwhoami as ${BINDDN} for ${AUTHZID} (URI; should fail)..." +$LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "$BINDDN" -w $BINDPW \ + -e \!authzid="$AUTHZID" + +RC=$? +if test $RC != 1 ; then + echo "ldapwhoami failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi + test $KILLSERVERS != no && kill -HUP $KILLPIDS echo ">>>>> Test succeeded"