]> git.sur5r.net Git - openldap/commitdiff
allow addiion of suffix entry when default referral is defined (ITS#4310)
authorPierangelo Masarati <ando@openldap.org>
Fri, 6 Jan 2006 14:50:43 +0000 (14:50 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 6 Jan 2006 14:50:43 +0000 (14:50 +0000)
servers/slapd/back-bdb/referral.c

index 2e602ddd6aa006f8e16e311ee379503dc24ca3f0..dde3aa43d9a0890f2345306f598081193266c823 100644 (file)
@@ -101,7 +101,7 @@ dn2entry_retry:
 
                        bdb_cache_return_entry_r (bdb->bi_dbenv, &bdb->bi_cache, e, &lock);
                        e = NULL;
-               } else if ( default_referral != NULL ) {
+               } else if ( !be_issuffix( op->o_bd, &op->o_req_ndn) && default_referral != NULL ) {
                        rc = LDAP_OTHER;
                        rs->sr_ref = referral_rewrite( default_referral,
                                NULL, &op->o_req_dn, LDAP_SCOPE_DEFAULT );