diff options
author | ethoms <euan@potensol.com> | 2020-12-31 17:19:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 10:19:43 +0100 |
commit | cdb286d1d1360c8b8caa58fc27381db9a06775a2 (patch) | |
tree | d782816b1666eaba382d78f222b09ad62a95a30d /src/mod_shared_roster_ldap_opt.erl | |
parent | JWT enhancement (#3460) (diff) |
Add multi-domain support (and flexibility) to LDAP shared roster (rev2). (#3461)
Diffstat (limited to '')
-rw-r--r-- | src/mod_shared_roster_ldap_opt.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mod_shared_roster_ldap_opt.erl b/src/mod_shared_roster_ldap_opt.erl index 5703ed0b0..3833f24f2 100644 --- a/src/mod_shared_roster_ldap_opt.erl +++ b/src/mod_shared_roster_ldap_opt.erl @@ -30,6 +30,7 @@ -export([ldap_ufilter/1]). -export([ldap_uids/1]). -export([ldap_userdesc/1]). +-export([ldap_userjidattr/1]). -export([ldap_useruid/1]). -export([use_cache/1]). @@ -195,6 +196,12 @@ ldap_userdesc(Opts) when is_map(Opts) -> ldap_userdesc(Host) -> gen_mod:get_module_opt(Host, mod_shared_roster_ldap, ldap_userdesc). +-spec ldap_userjidattr(gen_mod:opts() | global | binary()) -> binary(). +ldap_userjidattr(Opts) when is_map(Opts) -> + gen_mod:get_opt(ldap_userjidattr, Opts); +ldap_userjidattr(Host) -> + gen_mod:get_module_opt(Host, mod_shared_roster_ldap, ldap_userjidattr). + -spec ldap_useruid(gen_mod:opts() | global | binary()) -> binary(). ldap_useruid(Opts) when is_map(Opts) -> gen_mod:get_opt(ldap_useruid, Opts); |