From: Pierangelo Masarati Date: Fri, 6 Jan 2006 14:50:43 +0000 (+0000) Subject: allow addiion of suffix entry when default referral is defined (ITS#4310) X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~447 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d384ab5ad95b695057fac2280d1621bab2ccb87c;p=openldap allow addiion of suffix entry when default referral is defined (ITS#4310) --- diff --git a/servers/slapd/back-bdb/referral.c b/servers/slapd/back-bdb/referral.c index 2e602ddd6a..dde3aa43d9 100644 --- a/servers/slapd/back-bdb/referral.c +++ b/servers/slapd/back-bdb/referral.c @@ -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 );