]> git.sur5r.net Git - openldap/commitdiff
fix previous commit (ITS#6661)
authorPierangelo Masarati <ando@openldap.org>
Thu, 30 Sep 2010 12:51:15 +0000 (12:51 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 30 Sep 2010 12:51:15 +0000 (12:51 +0000)
servers/slapd/back-ndb/bind.cpp

index f80902015e0544f2787e3f03b3f2e48ce062020f..814efb87dc45aab5db0adf9f05b4e97302347242 100644 (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;
        }