this sets DSDB_REPL_FLAG_PARTIAL_REPLICA when replicating a RODC
partition, which tells the replication code to map instanceType to
remove the INSTANCE_TYPE_WRITE bit
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
return;
}
replica_flags &= ~DRSUAPI_DRS_WRIT_REP;
- } else if (service->am_rodc) {
+ } else if (partition->rodc_replica) {
bool for_schema = false;
if (ldb_dn_compare_base(ldb_get_schema_basedn(service->samdb), partition->dn) == 0) {
for_schema = true;
}
}
- if (partition->partial_replica) {
+ if (partition->partial_replica || partition->rodc_replica) {
dsdb_repl_flags |= DSDB_REPL_FLAG_PARTIAL_REPLICA;
}
if (state->op->options & DRSUAPI_DRS_FULL_SYNC_IN_PROGRESS) {