]> git.sur5r.net Git - openldap/commitdiff
fix idassert "override"
authorPierangelo Masarati <ando@openldap.org>
Mon, 1 May 2006 22:54:07 +0000 (22:54 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 1 May 2006 22:54:07 +0000 (22:54 +0000)
servers/slapd/back-ldap/bind.c

index 61f69630b3d58f3fb45852d97ed09cad33fe88de..5eaa6f8d4f8d330ad6e8b2ff94f794e986555d82 100644 (file)
@@ -1227,7 +1227,10 @@ ldap_back_proxy_authz_bind( ldapconn_t *lc, Operation *op, SlapReply *rs, ldap_b
                goto done;
        }
 
-       if ( !BER_BVISNULL( &op->o_conn->c_ndn ) ) {
+       if ( op->o_tag == LDAP_REQ_BIND ) {
+               ndn = op->o_req_ndn;
+
+       } else if ( !BER_BVISNULL( &op->o_conn->c_ndn ) ) {
                ndn = op->o_conn->c_ndn;
 
        } else {