mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#4334 add test of invalid Binds
This commit is contained in:
parent
2ba87c6fe6
commit
9cf636a460
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user