I got AD LDAP to work on 1.1.4, and I got the mod_vcard_ldap to display users AD LDAP info.
I am using the Pandion client and when I do a vcard search. Sometimes it returns results for the vcard search and if I try the same search I get nothing.
My only thought is it's something to do with the mod below. Only other thought would be, I do not have vjud.mycompany.local in DNS.
Any help would would be great.
Thanks
joe
{mod_vcard_ldap, [
{auth_method, [ldap]},
{ldap_servers, ["mycompany.local"]},
{ldap_uidattr, "sAMAccountName"},
{ldap_base, "dc=mycompany,dc=local"},
{ldap_rootdn, "CN=ldapreader,CN=Users,dc=mycompany,dc=local"},
{ldap_password, "secret"},
{ldap_filter, "(memberOf=CN=Domain_InstantMessaging,ou=Groups,DC=mycompany,DC=local)"},
{ldap_vcard_map,[
{"NICKNAME", "%s %s", ["givenName", "sn"]},
{"GIVEN", "%s", ["givenName"]},
{"FAMILY", "%s", ["sn"]},
{"FN", "%s", ["displayName"]},
{"EMAIL", "%s", ["mail"]},
{"ORGNAME", "%s", ["company"]},
{"ORGUNIT", "%s", ["department"]},
{"TITLE", "%s", ["title"]},
{"DESC", "%s", ["description"]},
{"TEL", "%s", ["telephoneNumber"]}
]},
{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"},
{"Email", "EMAIL"}
]}
]},
Re: AD LDAP, mod_vcard_ldap issue on 1.1.4
Looks like you have two mod_vcard_* modules in the config file (likely mod_vcard and mod_vcard_ldap).
Re: AD LDAP, mod_vcard_ldap issue on 1.1.4
you where correct.
here is a snippet
{mod_disco, []},
{mod_stats, []},
{mod_vcard, []},%%********* I removed this line after your suggestion**********
{mod_vcard_ldap, [
{auth_method, ldap},
{ldap_servers, ["mycompany.local"]},
{ldap_uidattr, "sAMAccountName"},
looks like this worked.
Ok, it brings back all the results. but not in Alphabetical order.
Any idea how to get it to do that? or should that go in a different post?
Thanks again,
Joe
Re: AD LDAP, mod_vcard_ldap issue on 1.1.4
Ok, it brings back all the results. but not in Alphabetical order.
Any idea how to get it to do that?
ejabberd doesn't perform any sorting.