From: Pierangelo Masarati Date: Sat, 5 Apr 2003 11:31:54 +0000 (+0000) Subject: massage bound dn only if operating on authz backend X-Git-Tag: AUTOCONF_2_57~61 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4235da91d43251d532e26509a1f6f6a4d70bcf71;p=openldap massage bound dn only if operating on authz backend --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 43f7c0e15e..0212351faa 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -320,7 +320,8 @@ ldap_back_getconn(Operation *op, SlapReply *rs) } else { lc->cred.bv_len = 0; lc->cred.bv_val = NULL; - if ( op->o_conn->c_dn.bv_len != 0 ) { + if ( op->o_conn->c_dn.bv_len != 0 + && ( op->o_bd == op->o_conn->c_authz_backend ) ) { /* * Rewrite the bind dn if needed