{
int manageDSAit;
int be_manageDSAit;
+ BackendDB *bd = op->o_bd;
manageDSAit = get_manageDSAit( op );
if (!rs->sr_ref) rs->sr_ref = default_referral;
rs->sr_err = LDAP_REFERRAL;
- op->o_bd = frontendDB;
+ op->o_bd = bd;
send_ldap_result( op, rs );
- op->o_bd = NULL;
if (rs->sr_ref != default_referral)
ber_bvarray_free( rs->sr_ref );
/* check restrictions */
if( backend_check_restrictions( op, rs, NULL ) != LDAP_SUCCESS ) {
+ op->o_bd = bd;
send_ldap_result( op, rs );
goto return_results;
}
/* else limits_check() sends error */
} else {
+ op->o_bd = bd;
send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
"operation not supported within namingContext" );
}
return_results:;
+ op->o_bd = bd;
return rs->sr_err;
}