drepl: Add partial attribute set in the case of repl secret
authorGarming Sam <garming@catalyst.net.nz>
Fri, 17 Mar 2017 03:09:06 +0000 (16:09 +1300)
committerGarming Sam <garming@samba.org>
Thu, 13 Apr 2017 05:29:17 +0000 (07:29 +0200)
Against Windows, the call will always fail without it.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/repl/drepl_out_helpers.c

index ac0b947aadb78c1674b772c083a61eb34d27a7a5..d526f4558a522c92ef7e96ae920f0597ed6f46c5 100644 (file)
@@ -498,7 +498,7 @@ static void dreplsrv_op_pull_source_get_changes_trigger(struct tevent_req *req)
                        return;
                }
                replica_flags &= ~DRSUAPI_DRS_WRIT_REP;
-       } else if (partition->rodc_replica) {
+       } else if (partition->rodc_replica || state->op->extended_op == DRSUAPI_EXOP_REPL_SECRET) {
                bool for_schema = false;
                if (ldb_dn_compare_base(schema_dn, partition->dn) == 0) {
                        for_schema = true;