[ejabberd] Vcard issues

PnoT Shane.Waldrop at caltrol.com
Thu Sep 3 00:13:40 MSD 2009


After a lot of looking around i finally came up with these settings and they
seem to work because in the log i can see it doing an LDAP lookup on the
user and finding all the data but when it goes to display the vcard it seems
like it's not matching up the fields.

{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"}
]}

]},
----------------------
This is the debug log:

=INFO REPORT==== 2009-08-31 12:28:06 ===
D(<0.384.0>:eldap:636) : {searchRequest,
{'SearchRequest',"dc=domain,dc=com",wholeSubtree,
neverDerefAliases,0,0,false,
{equalityMatch,
{'AttributeValueAssertion',"uid","steve.tribe"}},
["displayName","givenName","initials","mail","sn",
"uid"]}}

=INFO REPORT==== 2009-08-31 12:28:07 ===
D(<0.384.0>:eldap:697) : {searchResRef,
["ldaps://ForestDnsZones.caltrol.com/DC=ForestDnsZones,DC=domain,DC=com"]}

=INFO REPORT==== 2009-08-31 12:28:07 ===
D(<0.384.0>:eldap:697) : {searchResRef,
["ldaps://DomainDnsZones.caltrol.com/DC=DomainDnsZones,DC=domain,DC=com"]}

=INFO REPORT==== 2009-08-31 12:28:07 ===
D(<0.384.0>:eldap:697) : {searchResRef,
["ldaps://caltrol.com/CN=Configuration,DC=domain,DC=com"]}

=INFO REPORT==== 2009-08-31 12:28:07 ===
D(<0.384.0>:eldap:697) : {searchResDone,
{'LDAPResult',success,[],[],asn1_NOVALUE}}

------------
Any ideas on what's going on?
-- 
View this message in context: http://www.nabble.com/Vcard-issues-tp25229278p25229278.html
Sent from the ejabberd mailing list archive at Nabble.com.



More information about the ejabberd mailing list