I'm using pam authentication and I have ejabberd with the jwchat client working together perfectly. I'd like to add mod_vcard_ldap to allow searching of our users through ldap. Is this possible? I had read some documentation that the ldap authentication is not required unless I misunderstood it. We have an anonymous bind ldap instance that I'd like to use for the vcard search.
However, to clarify everything....Is this module what I would use to have jwchat perform the searching through the "Open Search" button? When I click on the button, I am given a drop-down box that states, "vCard User Search" and I going with the assumption that mod_vcard_ldap works with this feature, is this correct?
So far I've tried to configure mod_vcard_ldap and I'm not getting any errors but I'm also not getting anything back.
Here is what my log file states: What does this mean?
registered_name: 'ejabberd_mod_vcard_ldap_chat.ourdomain.com'
error_info: {function_clause,
[{lists,foreach,[#Fun,undefined]},
{mod_vcard_ldap,init,1},
{gen_server,init_it,6},
{proc_lib,init_p,5}]}
initial_call: {gen,
init_it,
[gen_server,
<0.234.0>,
<0.234.0>,
{local,'ejabberd_mod_vcard_ldap_chat.ourdomain.com'},
mod_vcard_ldap,
["chat.ourdomain.com",
[{ldap_server,ldapdir.ourdomain.com""},
{ldap_rootdn,[]},
{ldap_password,[]},
{ldap_base,"ou=people,dc=ourdomain,dc=com"},
{ldap_uids,[{"uid","%u"}]},
{ldap_filter,"objectclass=*"},
{ldap_vcard_map,
[{"NICKNAME","%u",["uid"]},
{"FIRST","%s",["givenName"]},
{"LAST","%s",["sn"]},
{"FN","%s, %s",["sn","givenName"]},
{"EMAIL","%s",["mail"]}]},
{ldap_search_fields,
[{"User","%u"},
{"Name","givenName"},
{"Family Name","sn"},
{"Email","mail"}]}]],
[]]}
Check configuration syntax
I had read some documentation that the ldap authentication is not required unless I misunderstood it.
Right, the ejabberd Guide says: "This behaviour is implemented in the mod_vcard_ldap module. This module does not depend on the authentication method (see 3.2.5)."
I am given a drop-down box that states, "vCard User Search" and I going with the assumption that mod_vcard_ldap works with this feature, is this correct?
Yes, vcard search is implemented in mod_vcard for internal, and mod_vcard_ldap for LDAP.
So far I've tried to configure mod_vcard_ldap and I'm not getting any errors but I'm also not getting anything back.
Here is what my log file states: What does this mean?
That error message indicates that something goes wrong in the LDAP.
Did you configure this option inside mod_vcard_ldap?
That syntax is not correct. The correct seems:
When do you get this error message: when starting ejabberd, or when performing a search?
Is that the first error message you get, or is there any other before that (which may provide more information about the reason of the problem)?