aboutsummaryrefslogtreecommitdiff
path: root/src/mod_vcard_ldap_opt.erl
blob: 2d2af6f2b45766ebb121a788514d7db2ab561a1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
%% 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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_backups).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_base).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_deref_aliases).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_encrypt).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_filter).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_password).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_port).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_rootdn).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_search_fields).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_search_reported).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_servers).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_tls_cacertfile).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_tls_certfile).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_tls_depth).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_tls_verify).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_uids).

-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) ->
    gen_mod:get_module_opt(Host, mod_vcard, ldap_vcard_map).