1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-16 20:23:50 +03:00

r25938: We don't need the CLDAP server unless we are a DC.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2007-11-13 22:26:24 +01:00
committed by Stefan Metzmacher
parent c6d959e52c
commit e8606bbcc6

View File

@@ -159,6 +159,18 @@ static void cldapd_task_init(struct task_server *task)
return;
}
switch (lp_server_role(global_loadparm)) {
case ROLE_STANDALONE:
task_server_terminate(task, "cldap_server: no CLDAP server required in standalone configuration");
return;
case ROLE_DOMAIN_MEMBER:
task_server_terminate(task, "cldap_server: no CLDAP server required in member server configuration");
return;
case ROLE_DOMAIN_CONTROLLER:
/* Yes, we want an CLDAP server */
break;
}
task_server_set_title(task, "task[cldapd]");
cldapd = talloc(task, struct cldapd_server);