summaryrefslogtreecommitdiff
path: root/source4/dsdb/kcc/kcc_service.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-15 19:36:16 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-16 14:10:42 +1100
commit5bfeed89da6177adf9dfa49471adcbc25c7d0e7a (patch)
treee8d79664ecff7d4d172a82b88ff916917b3c33e5 /source4/dsdb/kcc/kcc_service.c
parent22d92157e35240b8b2f653a688dffd68a4b0e330 (diff)
downloadsamba-5bfeed89da6177adf9dfa49471adcbc25c7d0e7a.tar.gz
samba-5bfeed89da6177adf9dfa49471adcbc25c7d0e7a.tar.bz2
samba-5bfeed89da6177adf9dfa49471adcbc25c7d0e7a.zip
s4-drs: framework for DsGetReplInfo(), includes the DS_REPL_INFO_NEIGHBORS infoType.
This patch includes the framework for the implementation of all infoTypes of the DsGetReplInfo() call, and includes the implementation for the first one, the DS_REPL_INFO_NEIGHBORS. Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/dsdb/kcc/kcc_service.c')
-rw-r--r--source4/dsdb/kcc/kcc_service.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/dsdb/kcc/kcc_service.c b/source4/dsdb/kcc/kcc_service.c
index 4196eb840c..a076d20368 100644
--- a/source4/dsdb/kcc/kcc_service.c
+++ b/source4/dsdb/kcc/kcc_service.c
@@ -136,8 +136,7 @@ static WERROR kccsrv_load_partitions(struct kccsrv_service *s)
return WERR_OK;
}
-static NTSTATUS kccsrv_execute_kcc(struct irpc_message *msg,
- struct drsuapi_DsExecuteKCC *r)
+static NTSTATUS kccsrv_execute_kcc(struct irpc_message *msg, struct drsuapi_DsExecuteKCC *r)
{
TALLOC_CTX *mem_ctx;
NTSTATUS status;
@@ -156,6 +155,11 @@ static NTSTATUS kccsrv_execute_kcc(struct irpc_message *msg,
return NT_STATUS_OK;
}
+static NTSTATUS kccsrv_replica_get_info(struct irpc_message *msg, struct drsuapi_DsReplicaGetInfo *r)
+{
+ return kccdrs_replica_get_info(msg, r);
+}
+
/*
startup the kcc service task
*/
@@ -227,7 +231,9 @@ static void kccsrv_task_init(struct task_server *task)
}
irpc_add_name(task->msg_ctx, "kccsrv");
+
IRPC_REGISTER(task->msg_ctx, drsuapi, DRSUAPI_DSEXECUTEKCC, kccsrv_execute_kcc, service);
+ IRPC_REGISTER(task->msg_ctx, drsuapi, DRSUAPI_DSREPLICAGETINFO, kccsrv_replica_get_info, service);
}
/*