From: Howard Chu Date: Thu, 12 Jan 2006 15:52:48 +0000 (+0000) Subject: ITS#4334 add test of invalid Binds X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~336 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9cf636a460c0325a5ae1be0ac4a250d817ce1daa;p=openldap ITS#4334 add test of invalid Binds --- diff --git a/tests/scripts/test034-translucent b/tests/scripts/test034-translucent index 6963a55013..8e52e4a4b8 100755 --- a/tests/scripts/test034-translucent +++ b/tests/scripts/test034-translucent @@ -720,6 +720,27 @@ if test $RC != 19 ; then exit 1 fi +echo "Testing invalid Bind request..." +$LDAPWHOAMI -D "$TRANSLUCENTDN" -H $URI2 -w Wrong"$TRANSLUCENTPASSWD" > \ + $TESTOUT 2>&1 +RC=$? +if test $RC != 49 ; then + echo "ldapwhoami failed ($RC), expected INVALID CREDENTIALS!" + grep "$FAILURE" $TESTOUT + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit 1 +fi + +$LDAPWHOAMI -D "$TRANSLUCENTDN" -H $URI2 -w "$TRANSLUCENTPASSWD" > \ + $TESTOUT 2>&1 +RC=$? +if test $RC != 0 ; then + echo "ldapwhoami failed ($RC), expected SUCCESS!" + grep "$FAILURE" $TESTOUT + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit 1 +fi + test $KILLSERVERS != no && kill -HUP $KILLPIDS echo ">>>>> Test succeeded"