variantEntry_info *vei;
int rc;
- /* Replication always uses the rootdn */
- if ( ov->passReplication && SLAPD_SYNC_IS_SYNCCONN(op->o_connid) &&
- be_isroot( op ) ) {
+ if ( ov->passReplication && be_shadow_update( op ) ) {
return SLAP_CB_CONTINUE;
}
regmatch_t pmatch[10];
int rc, nmatch = sizeof(pmatch) / sizeof(regmatch_t);
- /* Replication always uses the rootdn */
- if ( ov->passReplication && SLAPD_SYNC_IS_SYNCCONN(op->o_connid) &&
- be_isroot( op ) ) {
+ if ( ov->passReplication && be_shadow_update( op ) ) {
return SLAP_CB_CONTINUE;
}
int rc = 0;
char *msg = NULL;
- if (get_relax(op) || SLAPD_SYNC_IS_SYNCCONN( op->o_connid )) {
+ if ( get_relax(op) || be_shadow_update( op ) ) {
return SLAP_CB_CONTINUE;
}
char *msg = NULL;
int is_v;
- if (get_relax(op) || SLAPD_SYNC_IS_SYNCCONN( op->o_connid )) {
+ if ( get_relax(op) || be_shadow_update( op ) ) {
return SLAP_CB_CONTINUE;
}
return rs->sr_err;
/* If this is a replica, assume the provider checked everything */
- if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) )
+ if ( be_shadow_update( op ) )
return SLAP_CB_CONTINUE;
ppolicy_get( op, op->ora_e, &pp );
/* If this is a replica, we may need to tweak some of the
* provider's modifications. Otherwise, just pass it through.
*/
- if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) ) {
+ if ( be_shadow_update( op ) ) {
Modifications **prev;
Attribute *a_grace, *a_lock, *a_fail, *a_success;
Debug(LDAP_DEBUG_TRACE, "==> unique_add <%s>\n",
op->o_req_dn.bv_val );
- if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) || (
+ if ( be_shadow_update( op ) || (
get_relax(op) > SLAP_CONTROL_IGNORED
&& access_allowed( op, op->ora_e,
slap_schema.si_ad_entry, NULL,
return rc;
}
- if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) ) {
+ if ( be_shadow_update( op ) ) {
return rc;
}
if ( get_relax(op) > SLAP_CONTROL_IGNORED
Debug(LDAP_DEBUG_TRACE, "==> unique_modrdn <%s> <%s>\n",
op->o_req_dn.bv_val, op->orr_newrdn.bv_val );
- if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) ) {
+ if ( be_shadow_update( op ) ) {
return rc;
}
if ( get_relax(op) > SLAP_CONTROL_IGNORED