summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2010-02-13 04:57:28 +0200
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>2010-02-24 14:14:07 +0200
commit99db858b155a9a12bcbaae631d34d12062206e12 (patch)
tree03e24dc380316a10f0254ab249b347c8d9d072af /source4/dsdb
parent8747e695fe4ff732537f6fc822f4c24f3cfd9d39 (diff)
downloadsamba-99db858b155a9a12bcbaae631d34d12062206e12.tar.gz
samba-99db858b155a9a12bcbaae631d34d12062206e12.tar.bz2
samba-99db858b155a9a12bcbaae631d34d12062206e12.zip
s4/drs: Propagate drsuapi_DsReplicaSync changes in source base
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/repl/drepl_notify.c12
-rw-r--r--source4/dsdb/repl/drepl_service.c2
2 files changed, 9 insertions, 5 deletions
diff --git a/source4/dsdb/repl/drepl_notify.c b/source4/dsdb/repl/drepl_notify.c
index dd4c554447..eecb4442c7 100644
--- a/source4/dsdb/repl/drepl_notify.c
+++ b/source4/dsdb/repl/drepl_notify.c
@@ -105,17 +105,21 @@ static void dreplsrv_op_notify_replica_sync_trigger(struct tevent_req *req)
if (tevent_req_nomem(r, req)) {
return;
}
+ r->in.req = talloc_zero(r, union drsuapi_DsReplicaSyncRequest);
+ if (tevent_req_nomem(r, req)) {
+ return;
+ }
r->in.bind_handle = &drsuapi->bind_handle;
r->in.level = 1;
- 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 =
+ 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_DRS_ASYNC_OP |
DRSUAPI_DRS_UPDATE_NOTIFICATION |
DRSUAPI_DRS_WRIT_REP;
if (state->op->is_urgent) {
- r->in.req.req1.options |= DRSUAPI_DRS_SYNC_URGENT;
+ r->in.req->req1.options |= DRSUAPI_DRS_SYNC_URGENT;
}
rreq = dcerpc_drsuapi_DsReplicaSync_send(drsuapi->pipe, r, r);
diff --git a/source4/dsdb/repl/drepl_service.c b/source4/dsdb/repl/drepl_service.c
index 28d4334627..3ed588566f 100644
--- a/source4/dsdb/repl/drepl_service.c
+++ b/source4/dsdb/repl/drepl_service.c
@@ -110,7 +110,7 @@ static NTSTATUS drepl_replica_sync(struct irpc_message *msg,
{
struct dreplsrv_service *service = talloc_get_type(msg->private_data,
struct dreplsrv_service);
- struct GUID *guid = &r->in.req.req1.naming_context->guid;
+ struct GUID *guid = &r->in.req->req1.naming_context->guid;
r->out.result = dreplsrv_schedule_partition_pull_by_guid(service, msg, guid);
if (W_ERROR_IS_OK(r->out.result)) {