From: Andrew Bartlett Date: Mon, 18 Jul 2016 05:05:40 +0000 (+1200) Subject: drs: pass the forced-replication flag from DsReplicaSync to GetNCChanges X-Git-Tag: tdb-1.3.10~343 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b458a1a8ca517fc154c20ed9ee23a3d3f114ded;p=thirdparty%2Fsamba.git drs: pass the forced-replication flag from DsReplicaSync to GetNCChanges This ensures we and sync from a server with DISABLE_OUTBOUND_REPL set Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/source4/dsdb/repl/drepl_out_helpers.c b/source4/dsdb/repl/drepl_out_helpers.c index 64816ad2725..a2b9a02f49e 100644 --- a/source4/dsdb/repl/drepl_out_helpers.c +++ b/source4/dsdb/repl/drepl_out_helpers.c @@ -462,6 +462,10 @@ static void dreplsrv_op_pull_source_get_changes_trigger(struct tevent_req *req) replica_flags |= DRSUAPI_DRS_GET_ANC; } + if (state->op->options & DRSUAPI_DRS_SYNC_FORCED) { + replica_flags |= DRSUAPI_DRS_SYNC_FORCED; + } + if (partition->partial_replica) { status = dreplsrv_get_gc_partial_attribute_set(service, r, &pas); if (!NT_STATUS_IS_OK(status)) {