ITS#9262 check referral

This commit is contained in:
Howard Chu 2020-06-21 00:45:45 +01:00
parent 479745365d
commit 2346dfd2a0

View File

@ -977,6 +977,9 @@ ldap_chain_response( Operation *op, SlapReply *rs )
if ( rs->sr_err != LDAP_REFERRAL && rs->sr_type != REP_SEARCHREF ) { if ( rs->sr_err != LDAP_REFERRAL && rs->sr_type != REP_SEARCHREF ) {
return SLAP_CB_CONTINUE; return SLAP_CB_CONTINUE;
} }
if ( !rs->sr_ref ) {
return SLAP_CB_CONTINUE;
}
#ifdef LDAP_CONTROL_X_CHAINING_BEHAVIOR #ifdef LDAP_CONTROL_X_CHAINING_BEHAVIOR
if ( rs->sr_err == LDAP_REFERRAL && get_chaining( op ) > SLAP_CONTROL_IGNORED ) { if ( rs->sr_err == LDAP_REFERRAL && get_chaining( op ) > SLAP_CONTROL_IGNORED ) {