aboutsummaryrefslogtreecommitdiff
path: root/src/mod_shared_roster_ldap.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2011-06-15 20:06:32 +1000
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2011-06-15 20:06:32 +1000
commit6cc6c04c4a1a1ca4638141e86b12a0384c184cf6 (patch)
treec94d2bdad0bea50a50d56250d5f0f7f7aa64124c /src/mod_shared_roster_ldap.erl
parentClarify in mod_register_web example what host to put in the URL (diff)
Log an error when an LDAP filter is incorrect (EJAB-1395)
Diffstat (limited to 'src/mod_shared_roster_ldap.erl')
-rw-r--r--src/mod_shared_roster_ldap.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mod_shared_roster_ldap.erl b/src/mod_shared_roster_ldap.erl
index e2ae9bca9..613371922 100644
--- a/src/mod_shared_roster_ldap.erl
+++ b/src/mod_shared_roster_ldap.erl
@@ -619,7 +619,9 @@ parse_options(Host, Opts) ->
RF ->
RF
end,
-
+ lists:foreach(fun eldap_utils:check_filter/1,
+ [ConfigFilter, ConfigUserFilter,
+ ConfigGroupFilter, RosterFilter]),
SubFilter = "(&("++UIDAttr++"="++UIDAttrFormat++")("++GroupAttr++"=%g))",
UserSubFilter = case ConfigUserFilter of
undefined -> eldap_filter:do_sub(SubFilter, [{"%g", "*"}]);