[ejabberd] Cannot publish vCard, both mod_vcard and mod_vcard_ldap

Lionel Dricot zeploum at gmail.com
Mon Aug 11 19:29:31 MSD 2008


In fact, it seems that vcard retrieving is not working either (it was cached
in psi).

So, it's very likely that my virtual host setup is wrong for mod_vcard. Any
idea of what should I do ?


domain 1:
>
> {host_config, "domain1", [{auth_method,ldap},
>  {ldap_servers,
>  ....
>   {{add, modules}, [
>   {mod_vcard_ldap,      [
>  %% We use the same server and port, but want to bind anonymously because
>     %% our LDAP server accepts anonymous requests to
>     %% "ou=AddressBook,dc=example,dc=org" subtree.
>     {ldap_rootdn, ""},
>     {ldap_password, ""},
>     %% define the addressbook's base
>     {ldap_base, "ou=Users,dc=example,dc=org"},
>     %% uidattr: user's part of JID is located in the "mail" attribute
>     %% uidattr_format: common format for our emails
>     {ldap_uids, [{"mail", "%u at domain1"}]},
>     %% We have to define empty filter here, because entries in addressbook
> does not
>     %% belong to shadowAccount object class
>     {ldap_filter, ""},
>     %% Now we want to define vCard pattern
>     {ldap_vcard_map,
>      [{"NICKNAME", "%u", []}, % just use user's part of JID as his nickname
>       {"GIVEN", "%s", ["givenName"]},
>       {"FAMILY", "%s", ["sn"]},
>       {"FN", "%s, %s", ["sn", "givenName"]}, % example: "Smith, John"
>       {"EMAIL", "%s", ["mail"]},
>       {"PHOTO", "%s", ["jpegPhoto"]},
>       {"BDAY", "%s", ["birthDay"]}]},
>     %% Search form
>     {ldap_search_fields,
>      [{"User", "%u"},
>       {"Name", "givenName"},
>       {"Family Name", "sn"},
>       {"Email", "mail"},
>       {"Birthday", "birthDay"}]},
>     %% vCard fields to be reported
>     %% Note that JID is always returned with search results
>     {ldap_search_reported,
>      [{"Full Name", "FN"},
>       {"Nickname", "NICKNAME"},
>       {"Birthday", "BDAY"}]}
>      %% end of mod_vcard_ldap
>    ]},
> ]}]}.
>
>
>
> domain 2:
>
> {host_config, "domain1", [{auth_method, internal},
> {{add, modules}, [
>   {mod_vcard, []}
> ]}
> ]}.
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20080811/c0935fd5/attachment.html>


More information about the ejabberd mailing list