Unable to retrieve vcard information in ejabberd 2.1.4 if mod_vcard_ldap is used and user has jpegPhoto attribute in the LDAP
fragment of my configuration file:
{mod_vcard_ldap,[
{ldap_rootdn, ""},
{ldap_password, ""},
{ldap_base, "dc=st"},
{ldap_uidattr, "uid"},
{ldap_uidattr_format, "%u"},
{ldap_vcard_map,
[{"NICKNAME", "%s %s", ["sn", "givenName"]},
{"FN", "%s", ["cn"]},
{"GIVEN", "%s", ["givenName"]},
{"FAMILY", "%s", ["sn"]},
{"EMAIL", "%s", ["mail"]},
{"ORGUNIT", "%s", ["ou"]},
{"ROLE", "%s", ["title"]},
{"TEL", "%s", ["telephoneNumber"]},
{"BDAY", "%s", ["birthDay"]},
{"PHOTO", "%s", ["jpegPhoto"]}
]},
%% Search form
{ldap_search_fields,
[{"User", "%u"},
{"Name", "givenName"},
{"Family Name", "sn"},
{"Organization Unit", "ou"}]},
%% vCard fields to be reported
%% Note that JID is always returned with search results
{ldap_search_reported,
[{"Full Name", "FN"},
{"Nickname", "NICKNAME"},
{"Organization Unit", "ORGUNIT"},
{"Birthday", "BDAY"}]}]},
In XML Console of PSI jabber client I can see following
[request]
<iq type="get" to="user1@myjabberhost" id="aacba" >
<query xmlns="jabber:iq:last"/>
</iq>
<iq type="get" to="user1@myjabberhost" id="aacca" >
<vCard xmlns="vcard-temp" version="2.0" prodid="-//HandGen//NONSGML vGen v1.0//EN" />
</iq>
[response]
<iq from="user1@myjabberhost" type="error" to="user2@myjabberhost/Psi" id="aacba" >
<query xmlns="jabber:iq:last"/>
<error type="cancel" code="405" >
<not-allowed xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq>
<iq from="user1@myjabberhost" type="error" to="user2@myjabberhost/Psi" id="aacca" >
<vCard xmlns="vcard-temp" version="2.0" prodid="-//HandGen//NONSGML vGen v1.0//EN" />
<error type="wait" code="500" >
<internal-server-error xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq>
Everything is fine in ejabberd version 2.1.3
For reference: problem also
For reference: problem also reported inhttps://support.process-one.net/browse/EJAB-1258
Do you have any related error text in ejabberd.log or erlang.log?
fragment of my ejabberd.log
fragment of my ejabberd.log in debug mode:
Same happens to us. Upgrading
Same happens to us. Upgrading to Debian ejabberd_2.1.5-2~bpo50+1_i386 helped.