25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Start the LDAP server before ejabberd application

This commit is contained in:
Evgeniy Khramtsov 2013-06-26 03:05:37 +10:00
parent c05edabe58
commit 1b0c02cb2e

View File

@ -91,6 +91,7 @@ init_per_suite(Config) ->
application:set_env(ejabberd, log_path, LogPath),
application:set_env(sasl, sasl_error_logger, {file, SASLPath}),
application:set_env(mnesia, dir, MnesiaDir),
{ok, _} = ldap_srv:start(LDIFFile),
ok = application:start(ejabberd),
[{server_port, 5222},
{server_host, "localhost"},
@ -134,7 +135,6 @@ init_per_group(pgsql, Config) ->
{skip, {pgsql_not_available, Err}}
end;
init_per_group(ldap, Config) ->
{ok, _} = ldap_srv:start(?config(ldif_file, Config)),
set_opt(server, ?LDAP_VHOST, Config);
init_per_group(_GroupName, Config) ->
Pid = start_event_relay(),