]> git.sur5r.net Git - openldap/commitdiff
massage bound dn only if operating on authz backend
authorPierangelo Masarati <ando@openldap.org>
Sat, 5 Apr 2003 11:31:54 +0000 (11:31 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 5 Apr 2003 11:31:54 +0000 (11:31 +0000)
servers/slapd/back-ldap/bind.c

index 43f7c0e15eb1ebe5bba73d08da04f61bf2690c01..0212351faa8482c4966aaee511ddf8a489797a6e 100644 (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