summaryrefslogtreecommitdiff
path: root/src/ejabberd_auth_ldap.erl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2020-03-04 13:19:41 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2020-03-04 13:19:41 +0100
commitb39a1e2d74cd4d400a7f062e31056057573298e8 (patch)
treeb903d4a7cf700dbde63f950e9c681b5f2c768db2 /src/ejabberd_auth_ldap.erl
parentUse compilation flags used during build to compile modules in ext_mod (diff)
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
Diffstat (limited to 'src/ejabberd_auth_ldap.erl')
-rw-r--r--src/ejabberd_auth_ldap.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ejabberd_auth_ldap.erl b/src/ejabberd_auth_ldap.erl
index b52d24cd..360dbf05 100644
--- a/src/ejabberd_auth_ldap.erl
+++ b/src/ejabberd_auth_ldap.erl
@@ -37,7 +37,8 @@
-export([start/1, stop/1, start_link/1, set_password/3,
check_password/4, user_exists/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").
@@ -109,6 +110,10 @@ init(Host) ->
State#state.password, State#state.tls_options),
{ok, State}.
+reload(Host) ->
+ stop(Host),
+ start(Host).
+
plain_password_required(_) -> true.
store_type(_) -> external.