mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4-drs: put the GCSPN flag into the repsTo if requested
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
87f67d3369
commit
75a542a1d9
@ -1589,6 +1589,12 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_
|
||||
ureq.options = DRSUAPI_DRS_ADD_REF |
|
||||
DRSUAPI_DRS_ASYNC_OP |
|
||||
DRSUAPI_DRS_GETCHG_CHECK;
|
||||
|
||||
/* we also need to pass through the
|
||||
DRSUAPI_DRS_REF_GCSPN bit so that repsTo gets flagged
|
||||
to send notifies using the GC SPN */
|
||||
ureq.options |= (req10->replica_flags & DRSUAPI_DRS_REF_GCSPN);
|
||||
|
||||
werr = drsuapi_UpdateRefs(b_state, mem_ctx, &ureq);
|
||||
if (!W_ERROR_IS_OK(werr)) {
|
||||
DEBUG(0,(__location__ ": Failed UpdateRefs in DsGetNCChanges - %s\n",
|
||||
|
@ -66,6 +66,8 @@ static WERROR uref_add_dest(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx,
|
||||
ZERO_STRUCT(reps.r[reps.count]);
|
||||
reps.r[reps.count].version = 1;
|
||||
reps.r[reps.count].ctr.ctr1 = *dest;
|
||||
/* add the GCSPN flag if the client asked for it */
|
||||
reps.r[reps.count].ctr.ctr1.replica_flags |= (options & DRSUAPI_DRS_REF_GCSPN);
|
||||
reps.count++;
|
||||
|
||||
werr = dsdb_savereps(sam_ctx, mem_ctx, dn, "repsTo", reps.r, reps.count);
|
||||
|
Loading…
Reference in New Issue
Block a user