From 5bfeed89da6177adf9dfa49471adcbc25c7d0e7a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Jan 2010 19:36:16 +1100 Subject: 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 --- source4/dsdb/kcc/kcc_service.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source4/dsdb/kcc/kcc_service.c') 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); } /* -- cgit