[ejabberd] Interesting VCard Issue

Adam Hubscher webmaster at x-zen.cx
Thu Aug 21 06:05:08 MSD 2008


Hey Guys,

Here is my mod_vcard_ldap setup;

  {mod_vcard_ldap,
         [
                 {ldap_uids, [{"uid","%u"}]},
                 {ldap_vcard_map,
                 [
                         {"NICKNAME", "%s", ["displayName"]},
                         {"GIVEN", "%s", ["givenName"]},
                         {"MIDDLE", "%s", ["initials"]},
                         {"FAMILY", "%s", ["sn"]},
                         {"FN", "%s", ["displayName"]},
                         {"EMAIL", "%s", ["mail"]}
                 ]},

                 {ldap_search_fields,
                 [
                         {"User", "uid"},
                         {"Name", "displayName"},
                         {"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"}
                 ]}

  ]},


Now....

Here is the interesting thing.

With Adium, this works. Everything works. The vcard populates fine.

On at least 4 different clients - Psi, Gaim, iChat, and Spark (I  
haven't tested others), the functionality is different.

The user is displayed with their user name in ldap (uid), NOT the  
nickname or full name as we would prefer. In other words...

first.last

instead of

First Last

Adium displays it as

First Last

Any ideas?

Thanks,

Adam


More information about the ejabberd mailing list