allow addiion of suffix entry when default referral is defined (ITS#4310)

This commit is contained in:
Pierangelo Masarati 2006-01-06 14:50:43 +00:00
parent d1693d4a07
commit d384ab5ad9

View 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 );