mod_vcard_ldap

Hi all,

I have installed ejabberd-2.0.0 using the linux binary installer and also configured the server to authenticate users by using our Active Directory Server with LDAP authentication.

Actually LDAP authentication against AD works perfectly.

However no matter how i configure mod_vcard_ldap within configuration file i never seem to get search results. Within the debug logs (when i run server either with command: ejabberdctl live or using a log level of 5 within ejabberd.conf) i see the following error reports:

Error in process <0.334.0> on node 'ejabberd@mydomain.com' with exit value: {function_clause,[{eldap_utils, find_ldap_attrs,[[{"sAMAccountName"}],[{"displayName",[{Salespeople"]},{"mail",["salespeople@mydomain.com"]}]],
{mod_vcard_ldap,'-search_items/2-fun-2-',5}, {lists,flatmap,2},{mod_vcard_ldap,search_result...

The above log is exactly how its seen within my logs so i didnt cut/add anything to it.

Actually it seems that mod_vcard_ldap is really performing the searches but then for a reason it either does not return the match lists or there happens something i dont know...

Note that my mod_vcard_ldap configuration is just standart AD configuration shown in 2.0.0 documentation.

I just would like to ask the followings:

1- Is there anybody there who succeeded using mod_vcard_ldap with 2.0.0 version?
2- What could be the reason for mod_vcard_ldap not working while LDAP queries work for user authentication?
3- How should i proceed for further debugging/reporting my results? Note that im not perfect at erlang development.

Thank you for your helps in advance and hope someone out there may help.
Emre.
system eng.

Hi Emre, Quote: 1- Is there

Hi Emre,

Quote:

1- Is there anybody there who succeeded using mod_vcard_ldap with 2.0.0 version?

Yes, I have ejabberd 2.0.0 installed and have it both authenticating against the LDAP and using it for discovery.

Quote:

2- What could be the reason for mod_vcard_ldap not working while LDAP queries work for user authentication?

Make sure you configure the ejabberd.cfg file properly. When I first ran ejabberd i wasn't getting any returns on my searches either and this was because i didn't have the following: {ldap_uids, [{"UID","%u"}]}, in the mod_vcard_ldap configuration.

Quote:

3- How should i proceed for further debugging/reporting my results? Note that im not perfect at erlang development.

Just setup the mod_vcard_ldap with a minimum amount of fields to return. Make sure the fields exist in the LDAP then work on expanding once you get those working.

Andy

Syndicate content