From d384ab5ad95b695057fac2280d1621bab2ccb87c Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 6 Jan 2006 14:50:43 +0000 Subject: [PATCH] allow addiion of suffix entry when default referral is defined (ITS#4310) --- servers/slapd/back-bdb/referral.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5