From: Pierangelo Masarati Date: Tue, 16 May 2006 00:57:46 +0000 (+0000) Subject: fix referral rewriting (ITS#4548) X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b0c304f75902fad981ba79331ada8cec94601095;p=openldap fix referral rewriting (ITS#4548) --- diff --git a/servers/slapd/back-bdb/referral.c b/servers/slapd/back-bdb/referral.c index 97305f9f54..168da4677d 100644 --- a/servers/slapd/back-bdb/referral.c +++ b/servers/slapd/back-bdb/referral.c @@ -91,8 +91,11 @@ dn2entry_retry: (long) op->o_tag, op->o_req_dn.bv_val, e->e_name.bv_val ); if( is_entry_referral( e ) ) { + BerVarray ref = get_entry_referrals( op, e ); rc = LDAP_OTHER; - rs->sr_ref = get_entry_referrals( op, e ); + rs->sr_ref = referral_rewrite( ref, NULL, + &op->o_req_dn, LDAP_SCOPE_DEFAULT ); + ber_bvarray_free( ref ); if ( rs->sr_ref ) { rs->sr_matched = ber_strdup_x( e->e_name.bv_val, op->o_tmpmemctx );