User full name in roster

Hi all,

I am using mod_vcard_ldap with Microsoft Active Directory.
I would like to configure ejabberd to display the user "displayname" ldap field in the roster instead of the jid.
In the mod_vcard_ldap configuration I mapped the NICKNAME to the displayname in the AD.
When I add an account in the roster, I can resolve the displayname correctly but the user being added receives my JID instead of my NICKNAME.

Does anybody knows how can I make this work the way I need ?

PS: I am not using mod_shared_roster.

Thanks in advance,
Jannuzzi

Same problem for me

I'm also using mod_vcard_ldap, and by default users are displayed in rosters with the user part of their jid (the uid). Is it possible to configure the module to be able to display another field by default?

SOLUTION: map displayName to

SOLUTION: map displayName to NICKNAME in mod_vcard_ldap
Example:

{mod_vcard_ldap, [
{ldap_base, "OU=users,OU=BOTM,DC=botm,DC=local"},
{ldap_vcard_map,
       [
   %%{"NICKNAME", "%u", []},
   {"NICKNAME", "%s", ["displayName"]}, %% <------------------- HERE
        {"GIVEN", "%s", ["givenName"]},
        {"FAMILY", "%s", ["sn"]},
        {"FN", "%s", ["displayName"]},
{"EMAIL", "%s", ["mail"]}
]},
    {ldap_search_fields,
       [{"User", "%u"},
        {"Name", "givenName"},
        {"Family Name", "sn"},
{"Email", "mail"}
]},
    {ldap_search_reported, [
{"Full Name", "FN"},
{"Email", "EMAIL"}
]}
    ]},
Syndicate content