]> git.sur5r.net Git - openldap/commitdiff
make sure we're comparing the same database
authorPierangelo Masarati <ando@openldap.org>
Thu, 11 Nov 2004 13:12:34 +0000 (13:12 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 11 Nov 2004 13:12:34 +0000 (13:12 +0000)
servers/slapd/back-ldap/bind.c

index 0bd908f5b01b25951d022c5a5ffb4432eccbcb30..dd660a729567c46c58b27d5edf987613c5a6d251 100644 (file)
@@ -235,7 +235,9 @@ ldap_back_getconn(Operation *op, SlapReply *rs)
 
        /* Explicit binds must not be shared */
        if ( op->o_tag == LDAP_REQ_BIND
-               || ( op->o_conn && op->o_bd == op->o_conn->c_authz_backend ) ) {
+               || ( op->o_conn
+                       && op->o_conn->c_authz_backend
+                       && op->o_bd->be_private == op->o_conn->c_authz_backend->be_private ) ) {
                lc_curr.conn = op->o_conn;
 
        } else {