mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
fix referral rewriting (ITS#4548)
This commit is contained in:
parent
044df1432f
commit
b0c304f759
1 changed files with 4 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue