25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00
xmpp.chapril.org-ejabberd/src/mod_vcard_ldap_opt.erl

126 lines
4.7 KiB
Erlang
Raw Normal View History

2019-06-14 11:33:26 +02:00
%% Generated automatically
%% DO NOT EDIT: run `make options` instead
-module(mod_vcard_ldap_opt).
-export([ldap_backups/1]).
-export([ldap_base/1]).
-export([ldap_deref_aliases/1]).
-export([ldap_encrypt/1]).
-export([ldap_filter/1]).
-export([ldap_password/1]).
-export([ldap_port/1]).
-export([ldap_rootdn/1]).
-export([ldap_search_fields/1]).
-export([ldap_search_reported/1]).
-export([ldap_servers/1]).
-export([ldap_tls_cacertfile/1]).
-export([ldap_tls_certfile/1]).
-export([ldap_tls_depth/1]).
-export([ldap_tls_verify/1]).
-export([ldap_uids/1]).
-export([ldap_vcard_map/1]).
-spec ldap_backups(gen_mod:opts() | global | binary()) -> [binary()].
ldap_backups(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_backups, Opts);
ldap_backups(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_backups).
2019-06-14 11:33:26 +02:00
-spec ldap_base(gen_mod:opts() | global | binary()) -> binary().
ldap_base(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_base, Opts);
ldap_base(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_base).
2019-06-14 11:33:26 +02:00
-spec ldap_deref_aliases(gen_mod:opts() | global | binary()) -> 'always' | 'finding' | 'never' | 'searching'.
ldap_deref_aliases(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_deref_aliases, Opts);
ldap_deref_aliases(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_deref_aliases).
2019-06-14 11:33:26 +02:00
-spec ldap_encrypt(gen_mod:opts() | global | binary()) -> 'none' | 'starttls' | 'tls'.
ldap_encrypt(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_encrypt, Opts);
ldap_encrypt(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_encrypt).
2019-06-14 11:33:26 +02:00
-spec ldap_filter(gen_mod:opts() | global | binary()) -> binary().
ldap_filter(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_filter, Opts);
ldap_filter(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_filter).
2019-06-14 11:33:26 +02:00
-spec ldap_password(gen_mod:opts() | global | binary()) -> binary().
ldap_password(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_password, Opts);
ldap_password(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_password).
2019-06-14 11:33:26 +02:00
-spec ldap_port(gen_mod:opts() | global | binary()) -> 1..1114111.
ldap_port(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_port, Opts);
ldap_port(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_port).
2019-06-14 11:33:26 +02:00
-spec ldap_rootdn(gen_mod:opts() | global | binary()) -> binary().
ldap_rootdn(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_rootdn, Opts);
ldap_rootdn(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_rootdn).
2019-06-14 11:33:26 +02:00
-spec ldap_search_fields(gen_mod:opts() | global | binary()) -> [{binary(),binary()}].
ldap_search_fields(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_search_fields, Opts);
ldap_search_fields(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_search_fields).
2019-06-14 11:33:26 +02:00
-spec ldap_search_reported(gen_mod:opts() | global | binary()) -> [{binary(),binary()}].
ldap_search_reported(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_search_reported, Opts);
ldap_search_reported(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_search_reported).
2019-06-14 11:33:26 +02:00
-spec ldap_servers(gen_mod:opts() | global | binary()) -> [binary()].
ldap_servers(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_servers, Opts);
ldap_servers(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_servers).
2019-06-14 11:33:26 +02:00
-spec ldap_tls_cacertfile(gen_mod:opts() | global | binary()) -> binary().
ldap_tls_cacertfile(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_tls_cacertfile, Opts);
ldap_tls_cacertfile(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_tls_cacertfile).
2019-06-14 11:33:26 +02:00
-spec ldap_tls_certfile(gen_mod:opts() | global | binary()) -> binary().
ldap_tls_certfile(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_tls_certfile, Opts);
ldap_tls_certfile(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_tls_certfile).
2019-06-14 11:33:26 +02:00
-spec ldap_tls_depth(gen_mod:opts() | global | binary()) -> non_neg_integer().
ldap_tls_depth(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_tls_depth, Opts);
ldap_tls_depth(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_tls_depth).
2019-06-14 11:33:26 +02:00
-spec ldap_tls_verify(gen_mod:opts() | global | binary()) -> 'false' | 'hard' | 'soft'.
ldap_tls_verify(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_tls_verify, Opts);
ldap_tls_verify(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_tls_verify).
2019-06-14 11:33:26 +02:00
-spec ldap_uids(gen_mod:opts() | global | binary()) -> [{binary(),binary()}].
ldap_uids(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_uids, Opts);
ldap_uids(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_uids).
2019-06-14 11:33:26 +02:00
-spec ldap_vcard_map(gen_mod:opts() | global | binary()) -> [{binary(),[{binary(),[binary()]}]}].
ldap_vcard_map(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_vcard_map, Opts);
ldap_vcard_map(Host) ->
2020-08-21 17:34:46 +02:00
gen_mod:get_module_opt(Host, mod_vcard, ldap_vcard_map).
2019-06-14 11:33:26 +02:00