mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
r25938: We don't need the CLDAP server unless we are a DC.
Andrew Bartlett
(This used to be commit e8606bbcc6
)
This commit is contained in:
parent
6c41194961
commit
5294e82e21
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user