From 1838e16f34544c824615481f618c89ed6e062013 Mon Sep 17 00:00:00 2001 From: Dave Craft Date: Tue, 5 Jul 2011 21:39:05 -0500 Subject: Add intrasite code test switch kcc_service struct gets a intrasite_code boolean that is filled in via parametric parameter kccsrv:intrasite = [true/false] in smb.conf. This will allow us to continue to utilize old simple KCC topology as continuing default while newer intra-site topology matures further. Signed-off-by: Andrew Tridgell Autobuild-User: Andrew Tridgell Autobuild-Date: Thu Jul 14 00:19:12 CEST 2011 on sn-devel-104 --- source4/dsdb/kcc/kcc_service.c | 6 ++++++ source4/dsdb/kcc/kcc_service.h | 3 +++ 2 files changed, 9 insertions(+) (limited to 'source4') diff --git a/source4/dsdb/kcc/kcc_service.c b/source4/dsdb/kcc/kcc_service.c index b2360d81cd..5f7b537d14 100644 --- a/source4/dsdb/kcc/kcc_service.c +++ b/source4/dsdb/kcc/kcc_service.c @@ -235,6 +235,12 @@ static void kccsrv_task_init(struct task_server *task) return; } + /* (kccsrv:intrasite=true) will run newer intrasite replication + * topology code. + */ + service->intrasite_code = lpcfg_parm_bool(task->lp_ctx, NULL, "kccsrv", + "intrasite", false); + irpc_add_name(task->msg_ctx, "kccsrv"); IRPC_REGISTER(task->msg_ctx, drsuapi, DRSUAPI_DSEXECUTEKCC, kccsrv_execute_kcc, service); diff --git a/source4/dsdb/kcc/kcc_service.h b/source4/dsdb/kcc/kcc_service.h index f56488560a..1404a9a3cd 100644 --- a/source4/dsdb/kcc/kcc_service.h +++ b/source4/dsdb/kcc/kcc_service.h @@ -82,6 +82,9 @@ struct kccsrv_service { time_t last_deleted_check; bool am_rodc; + + /* run new intra-site topology code */ + bool intrasite_code; }; struct kcc_connection_list; -- cgit