mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix incorrect bind error (ITS#4129)
This commit is contained in:
parent
e725c8488a
commit
e60d7c7f24
@ -184,7 +184,9 @@ meta_back_bind( Operation *op, SlapReply *rs )
|
||||
rs->sr_err = lerr;
|
||||
candidates[ i ].sr_tag = META_NOT_CANDIDATE;
|
||||
|
||||
if ( META_BACK_ONERR_STOP( mi ) ) {
|
||||
if ( lerr == LDAP_INVALID_CREDENTIALS
|
||||
|| META_BACK_ONERR_STOP( mi ) )
|
||||
{
|
||||
rc = rs->sr_err;
|
||||
break;
|
||||
}
|
||||
|
@ -545,6 +545,29 @@ case $RC in
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Binding with incorrect password to database \"$BASEDN\"..."
|
||||
$LDAPWHOAMI -h $LOCALHOST -p $PORT3 \
|
||||
-D "cn=Added User,ou=Same as above,ou=Meta,$BASEDN" \
|
||||
-w bogus >> $TESTOUT 2>&1
|
||||
RC=$?
|
||||
#if test $RC != 0 ; then
|
||||
# echo "WhoAmI failed ($RC)!"
|
||||
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
# exit $RC
|
||||
#fi
|
||||
case $RC in
|
||||
0)
|
||||
echo "WhoAmI should have failed ($RC)!"
|
||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
exit -1
|
||||
;;
|
||||
51)
|
||||
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Comparing to database \"$BASEDN\"..."
|
||||
$LDAPCOMPARE -h $LOCALHOST -p $PORT3 \
|
||||
"cn=Another Added Group,ou=Groups,$BASEDN" \
|
||||
|
Loading…
Reference in New Issue
Block a user