ejabberd - Comments for "Another mod_vcard_ldap question" https://www.ejabberd.im/node/3431 en Check configuration syntax https://www.ejabberd.im/node/3431#comment-54090 <div class="quote-msg"> <div class="quote-author"><em>mccordl</em> wrote:</div> <p>I had read some documentation that the ldap authentication is not required unless I misunderstood it. </p></div> <p>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)."</p> <div class="quote-msg"> <div class="quote-author"><em>mccordl</em> wrote:</div> <p>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? </p></div> <p>Yes, vcard search is implemented in mod_vcard for internal, and mod_vcard_ldap for LDAP.</p> <div class="quote-msg"> <div class="quote-author"><em>mccordl</em> wrote:</div> <p>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.</p> <p>Here is what my log file states: What does this mean?</p> <pre> 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, &lt;0.234.0&gt;, &lt;0.234.0&gt;, {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"}]}]], []]} </pre></div> <p>That error message indicates that something goes wrong in the LDAP.</p> <p>Did you configure this option inside mod_vcard_ldap?</p> <pre> {ldap_server,ldapdir.ourdomain.com""} </pre><p>That syntax is not correct. The correct seems:</p> <pre> {ldap_servers, ["ldapdir.ourdomain.com"]} </pre><p> When do you get this error message: when starting ejabberd, or when performing a search?</p> <p>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)?</p> Fri, 20 Mar 2009 01:38:36 +0000 mfoss comment 54090 at https://www.ejabberd.im