]> git.sur5r.net Git - openldap/commitdiff
remove experimental code as per ITS#4962 discussion
authorPierangelo Masarati <ando@openldap.org>
Fri, 7 Sep 2007 12:33:21 +0000 (12:33 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 7 Sep 2007 12:33:21 +0000 (12:33 +0000)
servers/slapd/back-bdb/bind.c

index 3f6b37a908a9b02116471645c4afcebd982c2ddf..5072dbfcf63c1b0b652564d7d0340fd97753d4fd 100644 (file)
@@ -39,19 +39,6 @@ bdb_bind( Operation *op, SlapReply *rs )
                "==> " LDAP_XSTRING(bdb_bind) ": dn: %s\n",
                op->o_req_dn.bv_val, 0, 0);
 
-#ifdef LDAP_DEVEL
-       /* allow noauth binds */
-       switch ( be_rootdn_bind( op, rs ) ) {
-       case SLAP_CB_CONTINUE:
-               break;
-
-       default:
-               /* in case of success, frontend will send result;
-                * otherwise, be_rootdn_bind() did */
-               return rs->sr_err;
-       }
-
-#else /* traditional */
        /* allow noauth binds */
        switch ( be_rootdn_bind( op, NULL ) ) {
        case LDAP_SUCCESS:
@@ -60,9 +47,13 @@ bdb_bind( Operation *op, SlapReply *rs )
 
        default:
                /* give the database a chanche */
+               /* NOTE: this behavior departs from that of other backends,
+                * since the others, in case of password checking failure
+                * do not give the database a chance.  If an entry with
+                * rootdn's name does not exist in the database the result
+                * will be the same.  See ITS#4962 for discussion. */
                break;
        }
-#endif /* traditional */
 
        rs->sr_err = LOCK_ID(bdb->bi_dbenv, &locker);
        switch(rs->sr_err) {