mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix returning value from mod_vcard_ldap's search() callback
Fixes #2335
This commit is contained in:
parent
f3b3bffec0
commit
ea9c3fd8f7
@ -143,7 +143,7 @@ search_items(Entries, State) ->
|
||||
#eldap_entry{attributes = Attrs} = E, Attrs
|
||||
end,
|
||||
Entries),
|
||||
lists:flatmap(
|
||||
lists:filtermap(
|
||||
fun(Attrs) ->
|
||||
case eldap_utils:find_ldap_attrs(UIDs, Attrs) of
|
||||
{U, UIDAttrFormat} ->
|
||||
@ -163,15 +163,15 @@ search_items(Entries, State) ->
|
||||
end,
|
||||
SearchReported),
|
||||
J = <<Username/binary, $@, LServer/binary>>,
|
||||
[{<<"jid">>, J} | RFields];
|
||||
{true, [{<<"jid">>, J} | RFields]};
|
||||
_ ->
|
||||
[]
|
||||
false
|
||||
end;
|
||||
_ ->
|
||||
[]
|
||||
false
|
||||
end;
|
||||
<<"">> ->
|
||||
[]
|
||||
false
|
||||
end
|
||||
end, Attributes).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user