1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

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 <tridge@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Jul 14 00:19:12 CEST 2011 on sn-devel-104
This commit is contained in:
Dave Craft 2011-07-05 21:39:05 -05:00 committed by Andrew Tridgell
parent c8413b3420
commit 1838e16f34
2 changed files with 9 additions and 0 deletions

View File

@ -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);

View File

@ -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;