From 4235da91d43251d532e26509a1f6f6a4d70bcf71 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 5 Apr 2003 11:31:54 +0000 Subject: [PATCH] massage bound dn only if operating on authz backend --- servers/slapd/back-ldap/bind.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5