mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* src/mod_vcard_ldap.erl: Bugfix (thanks to Mickael Remond)
SVN Revision: 329
This commit is contained in:
parent
8e9628b9ed
commit
4f9497d358
@ -1,3 +1,7 @@
|
|||||||
|
2005-04-26 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
|
* src/mod_vcard_ldap.erl: Bugfix (thanks to Mickael Remond)
|
||||||
|
|
||||||
2005-04-24 Alexey Shchepin <alexey@sevcom.net>
|
2005-04-24 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
* src/web/ejabberd_web_admin.erl: Added translation to submit
|
* src/web/ejabberd_web_admin.erl: Added translation to submit
|
||||||
|
@ -401,7 +401,7 @@ search_result(Lang, JID, Data) ->
|
|||||||
?LFIELD("Organization Unit", "orgunit")
|
?LFIELD("Organization Unit", "orgunit")
|
||||||
]}] ++ lists:map(fun(E) ->
|
]}] ++ lists:map(fun(E) ->
|
||||||
record_to_item(E#eldap_entry.attributes)
|
record_to_item(E#eldap_entry.attributes)
|
||||||
end, search(Data)).
|
end, search(JID#jid.lserver, Data)).
|
||||||
|
|
||||||
-define(FIELD(Var, Val),
|
-define(FIELD(Var, Val),
|
||||||
{xmlelement, "field", [{"var", Var}],
|
{xmlelement, "field", [{"var", Var}],
|
||||||
@ -489,7 +489,7 @@ record_to_item(Attributes) ->
|
|||||||
FList = [X || X <- List, X /= none],
|
FList = [X || X <- List, X /= none],
|
||||||
{xmlelement, "item", [],FList}.
|
{xmlelement, "item", [],FList}.
|
||||||
|
|
||||||
search(Data) ->
|
search(LServer, Data) ->
|
||||||
Filter = make_filter(Data),
|
Filter = make_filter(Data),
|
||||||
Base = ejabberd_config:get_local_option(ldap_base),
|
Base = ejabberd_config:get_local_option(ldap_base),
|
||||||
UIDAttr = ejabberd_config:get_local_option(ldap_uidattr),
|
UIDAttr = ejabberd_config:get_local_option(ldap_uidattr),
|
||||||
@ -497,7 +497,9 @@ search(Data) ->
|
|||||||
{filter, Filter},
|
{filter, Filter},
|
||||||
{attributes, []}]) of
|
{attributes, []}]) of
|
||||||
#eldap_search_result{entries = E} ->
|
#eldap_search_result{entries = E} ->
|
||||||
[X || X <- E, ejabberd_auth:is_user_exists(ldap_get_value(X,UIDAttr)) ];
|
[X || X <- E,
|
||||||
|
ejabberd_auth:is_user_exists(
|
||||||
|
ldap_get_value(X, UIDAttr), LServer)];
|
||||||
_ ->
|
_ ->
|
||||||
?ERROR_MSG("~p", ["Bad search"])
|
?ERROR_MSG("~p", ["Bad search"])
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user