aboutsummaryrefslogtreecommitdiff
path: root/src/mod_vcard_ldap.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2016-11-22 16:23:02 +0100
committerChristophe Romain <christophe.romain@process-one.net>2016-11-22 16:23:02 +0100
commit24ef90c5567c4bf6c60e2963dcdd59ab91a9570f (patch)
tree36c0755569c443a64636ef12dfde75b1a49fa2a0 /src/mod_vcard_ldap.erl
parentAdd missing export (diff)
Fix vcard_ldap exports
Diffstat (limited to 'src/mod_vcard_ldap.erl')
-rw-r--r--src/mod_vcard_ldap.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mod_vcard_ldap.erl b/src/mod_vcard_ldap.erl
index c9e19690f..47504c39d 100644
--- a/src/mod_vcard_ldap.erl
+++ b/src/mod_vcard_ldap.erl
@@ -8,6 +8,8 @@
%%%-------------------------------------------------------------------
-module(mod_vcard_ldap).
+-behaviour(ejabberd_config).
+
-behaviour(gen_server).
-behaviour(mod_vcard).
@@ -16,6 +18,7 @@
-export([init/2, stop/1, get_vcard/2, set_vcard/4, search/4,
remove_user/2, import/3, search_fields/1, search_reported/1,
mod_opt_type/1, opt_type/1]).
+-export([is_search_supported/1]).
%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
@@ -70,6 +73,9 @@ stop(Host) ->
supervisor:terminate_child(ejabberd_sup, Proc),
supervisor:delete_child(ejabberd_sup, Proc).
+is_search_supported(_LServer) ->
+ true.
+
get_vcard(LUser, LServer) ->
{ok, State} = eldap_utils:get_state(LServer, ?PROCNAME),
VCardMap = State#state.vcard_map,