]> git.sur5r.net Git - openldap/commitdiff
line up with back-bdb/hdb (ITS#6661)
authorPierangelo Masarati <ando@openldap.org>
Thu, 30 Sep 2010 14:27:26 +0000 (14:27 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 30 Sep 2010 14:27:26 +0000 (14:27 +0000)
servers/slapd/back-ndb/bind.cpp

index 814efb87dc45aab5db0adf9f05b4e97302347242..8b517f4346cadad59882b74ccaa070638f791507 100644 (file)
@@ -42,18 +42,14 @@ ndb_back_bind( Operation *op, SlapReply *rs )
                op->o_req_dn.bv_val, 0, 0);
 
        /* allow noauth binds */
-       rs->sr_err = be_rootdn_bind( op, NULL );
-       switch ( rs->sr_err ) {
-       case SLAP_CB_CONTINUE:
-               break;
-
-       case LDAP_INVALID_CREDENTIALS:
-               send_ldap_result( op, rs );
-               /* fallthru */
-
+       switch ( be_rootdn_bind( op, NULL ) ) {
        case LDAP_SUCCESS:
                /* frontend will send result */
-               return rs->sr_err;
+               return rs->sr_err = LDAP_SUCCESS;
+
+       default:
+               /* give the database a chance */
+               break;
        }
 
        /* Get our NDB handle */