fix previous commit (ITS#6661)

This commit is contained in:
Pierangelo Masarati 2010-09-30 12:51:15 +00:00
parent e04ff8fbf1
commit 3ae8934f84

View file

@ -43,7 +43,16 @@ ndb_back_bind( Operation *op, SlapReply *rs )
/* allow noauth binds */
rs->sr_err = be_rootdn_bind( op, NULL );
if ( rs->sr_err != SLAP_CB_CONTINUE ) {
switch ( rs->sr_err ) {
case SLAP_CB_CONTINUE:
break;
case LDAP_INVALID_CREDENTIALS:
send_ldap_result( op, rs );
/* fallthru */
case LDAP_SUCCESS:
/* frontend will send result */
return rs->sr_err;
}