From: Pierangelo Masarati Date: Thu, 30 Sep 2010 12:51:15 +0000 (+0000) Subject: fix previous commit (ITS#6661) X-Git-Tag: MIGRATION_CVS2GIT~470 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3ae8934f84204d7a35f3f958a6938b5b6dfa9e58;p=openldap fix previous commit (ITS#6661) --- diff --git a/servers/slapd/back-ndb/bind.cpp b/servers/slapd/back-ndb/bind.cpp index f80902015e..814efb87dc 100644 --- a/servers/slapd/back-ndb/bind.cpp +++ b/servers/slapd/back-ndb/bind.cpp @@ -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; }