[ejabberd] Import picture from ldap to Empathy XMPP client

Boudjoudad Abdelkader boujoudad at gmail.com
Tue Mar 12 22:09:10 MSK 2019


Hello,
We are trying to add import user picture from LDAP to Empathy XMPP client
via ejabberd server, we did:
1- Install and configure ejabberd server as this
<https://www.dalemacartney.com/2012/07/05/configuring-ejabberd-to-authenticate-freeipa-users-using-ldap-group-memberships/>
document.
2- Add a  picture to ldap (freeipa) user as this
<https://www.dalemacartney.com/2013/12/05/adding-display-picturesavatars-red-hat-idmfreeipa/>
document.
3- The authentication to from Empathy to ldap via ejabberd server works
fine but the user picture isn't loaded.
- Below our configuration:
  mod_vcard:
    search: false
  mod_vcard_ldap:
    search: true
    matches: 10
    ldap_uids: {"uid": "%u"}
##    db_type: ldap
    ldap_rootdn: "uid=ejabberd,cn=sysaccounts,cn=etc,dc=example,dc=com"
    ldap_password: "abc.123"
    ldap_base: "dc=example,dc=com"
##    ldap_uids:{"uid"}
    ldap_vcard_map:
      "NICKNAME": {"%u": ["cn"]}
      "GIVEN": {"%s": ["givenName"]}
      "MIDDLE": {"%s": ["initials"]}
      "FAMILY": {"%s": ["sn"]}
      "FN": {"%s": ["cn"]}
      "EMAIL": {"%s": ["mail"]}
      "ORGNAME": {"%s": ["company"]}
      "ORGUNIT": {"%s": ["department"]}
      "CTRY": {"%s": ["c"]}
      "LOCALITY": {"%s": ["l"]}
      "STREET": {"%s": ["streetAddress"]}
      "REGION": {"%s": ["st"]}
      "PCODE": {"%s": ["postalCode"]}
      "TITLE": {"%s": ["title"]}
      "URL": {"%s": ["wWWHomePage"]}
      "DESC": {"%s": ["description"]}
      "PHOTO": {"%s": ["jpegPhoto"]}
  ldap_search_fields:
      "User": "%u"
      "Name": "givenName"
      "Family Name": "sn"
      "Email": "mail"
      "Company": "company"
      "Department": "department"
      "Role": "title"
      "Description": "description"
      "Phone": "telephoneNumber"
ldap_search_reported:
      "Full Name": "FN"
      "Nickname": "NICKNAME"
      "Email": "EMAIL"
      "PHOTO": "PHOTO"
mod_version: {}

Can someone help please !

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20190312/94f3790b/attachment.html>


More information about the ejabberd mailing list