Add reload handler to ejabberd_auth_ldap
This will restart ldap process with new options, and should made it recognize new values. This fixes issue #3181
This commit is contained in:
parent
151b818af4
commit
b39a1e2d74
|
@ -37,7 +37,8 @@
|
||||||
-export([start/1, stop/1, start_link/1, set_password/3,
|
-export([start/1, stop/1, start_link/1, set_password/3,
|
||||||
check_password/4, user_exists/2,
|
check_password/4, user_exists/2,
|
||||||
get_users/2, count_users/2,
|
get_users/2, count_users/2,
|
||||||
store_type/1, plain_password_required/1]).
|
store_type/1, plain_password_required/1,
|
||||||
|
reload/1]).
|
||||||
|
|
||||||
-include("logger.hrl").
|
-include("logger.hrl").
|
||||||
|
|
||||||
|
@ -109,6 +110,10 @@ init(Host) ->
|
||||||
State#state.password, State#state.tls_options),
|
State#state.password, State#state.tls_options),
|
||||||
{ok, State}.
|
{ok, State}.
|
||||||
|
|
||||||
|
reload(Host) ->
|
||||||
|
stop(Host),
|
||||||
|
start(Host).
|
||||||
|
|
||||||
plain_password_required(_) -> true.
|
plain_password_required(_) -> true.
|
||||||
|
|
||||||
store_type(_) -> external.
|
store_type(_) -> external.
|
||||||
|
|
Loading…
Reference in New Issue