]> git.sur5r.net Git - openldap/commitdiff
ITS#4310 seems to affect also back-ldbm
authorPierangelo Masarati <ando@openldap.org>
Fri, 6 Jan 2006 17:44:19 +0000 (17:44 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 6 Jan 2006 17:44:19 +0000 (17:44 +0000)
servers/slapd/back-ldbm/referral.c

index 756f99d9e8b36f83efca7751a43bc1a223a295d8..ba3e5fb2ec68c91940337e4cf5c230b4bb9deaa5 100644 (file)
@@ -63,7 +63,7 @@ ldbm_back_referrals(
 
                        cache_return_entry_r( &li->li_cache, matched );
 
-               } else if ( default_referral != NULL ) {
+               } else if ( !be_issuffix( op->o_bd, &op->o_req_ndn ) && default_referral != NULL ) {
                        rc = rs->sr_err = LDAP_OTHER;
                        rs->sr_ref = referral_rewrite( default_referral,
                                NULL, &op->o_req_dn, LDAP_SCOPE_DEFAULT );