From dd367a2b780db0eea2c8b5b17e8605bc84569b84 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 11 Nov 2004 13:12:34 +0000 Subject: [PATCH] make sure we're comparing the same database --- servers/slapd/back-ldap/bind.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 0bd908f5b0..dd660a7295 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -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 {