massage bound dn only if operating on authz backend

This commit is contained in:
Pierangelo Masarati 2003-04-05 11:31:54 +00:00
parent 4022ee7b43
commit 4235da91d4

View file

@ -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