mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s4-drepl: switch drepl over to using the generic DRS options flags
WSPP uses a single set of flags for all these DRS operations.
This commit is contained in:
parent
60c5a5f39f
commit
88ec10b757
@ -110,9 +110,9 @@ static void dreplsrv_op_notify_replica_sync_trigger(struct tevent_req *req)
|
||||
r->in.req.req1.naming_context = &partition->nc;
|
||||
r->in.req.req1.source_dsa_guid = state->op->service->ntds_guid;
|
||||
r->in.req.req1.options =
|
||||
DRSUAPI_DS_REPLICA_SYNC_ASYNCHRONOUS_OPERATION |
|
||||
DRSUAPI_DS_REPLICA_SYNC_WRITEABLE |
|
||||
DRSUAPI_DS_REPLICA_SYNC_ALL_SOURCES;
|
||||
DRSUAPI_DRS_ASYNC_OP |
|
||||
DRSUAPI_DRS_UPDATE_NOTIFICATION |
|
||||
DRSUAPI_DRS_WRIT_REP;
|
||||
|
||||
rreq = dcerpc_drsuapi_DsReplicaSync_send(drsuapi->pipe, r, r);
|
||||
if (tevent_req_nomem(rreq, req)) {
|
||||
|
@ -547,11 +547,9 @@ static void dreplsrv_update_refs_trigger(struct tevent_req *req)
|
||||
r->in.req.req1.naming_context = &partition->nc;
|
||||
r->in.req.req1.dest_dsa_dns_name = ntds_dns_name;
|
||||
r->in.req.req1.dest_dsa_guid = service->ntds_guid;
|
||||
r->in.req.req1.options =
|
||||
DRSUAPI_DS_REPLICA_UPDATE_ADD_REFERENCE |
|
||||
DRSUAPI_DS_REPLICA_UPDATE_DELETE_REFERENCE;
|
||||
r->in.req.req1.options = DRSUAPI_DRS_ADD_REF | DRSUAPI_DRS_DEL_REF;
|
||||
if (!samdb_rodc(service->task->lp_ctx)) {
|
||||
r->in.req.req1.options |= DRSUAPI_DS_REPLICA_UPDATE_WRITEABLE;
|
||||
r->in.req.req1.options |= DRSUAPI_DRS_WRIT_REP;
|
||||
}
|
||||
|
||||
rreq = dcerpc_drsuapi_DsReplicaUpdateRefs_send(drsuapi->pipe, r, r);
|
||||
|
Loading…
x
Reference in New Issue
Block a user