ejabberd - Comments for "mod_vcard_ldap question" https://www.ejabberd.im/node/3421 en Thank you, that blasted comma https://www.ejabberd.im/node/3421#comment-54077 <p>Thank you, that blasted comma was the "buG"</p> Tue, 17 Mar 2009 13:15:55 +0000 kriks comment 54077 at https://www.ejabberd.im Syntax mistake, remove comma at the end https://www.ejabberd.im/node/3421#comment-54071 <div class="quote-msg"> <div class="quote-author"><em>kriks</em> wrote:</div> <p>None of those work, ejabberd wont start and in sasl.log :</p> <div class="codeblock"><code>=CRASH REPORT==== 10-Mar-2009::09:37:06 ===<br />&nbsp; crasher:<br />&nbsp;&nbsp;&nbsp; pid: &lt;0.285.0&gt;<br />&nbsp;&nbsp;&nbsp; registered_name: []<br />&nbsp;&nbsp;&nbsp; exception exit: {bad_return,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {{ejabberd_app,start,[normal,[]]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&#039;EXIT&#039;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [47,101,116,99,47,101,106,97,98,98,101,114,100,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 47,101,106,97,98,98,101,114,100,46,99,102,103,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 58,32,&quot;588&quot;,58,32,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;syntax error before: &quot;,&quot;&#039;.&#039;&quot;]]}}}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in function&nbsp; application_master:init/4<br />&nbsp;&nbsp;&nbsp; initial call: application_master:init(&lt;0.254.0&gt;,&lt;0.284.0&gt;,<br />&nbsp;&nbsp; ...</code></div> <p>Have i misconfigured something? </p></div> <p>Yes, ejabberd refuses to start because there is a syntax error in the configuration file. The error message does not exactly indicate where the problem is, but I think I found it.</p> <p>ejabberd.cfg explains in the beginning:</p> <blockquote><p> A list can have as many elements as you want, and is enclosed in [], for example: [http_poll, web_admin, tls] </p></blockquote> <p>In your case, you have something like:</p> <pre> {modules, [ {mod_adhoc, []}, {mod_announce, [{access, announce}]}, % requires mod_adhoc {mod_caps, []}, ... {mod_vcard_ldap, [ {ldap_base, "OU=ejabberd,OU=testusers,OU=users,DC=domain,DC=com"}, ... {ldap_search_reported, [ {"Perekonnanimi", "FAMILY"}, {"Eesnimi", "GIVEN"} ] } ] }, %%% That comma must not exist, delete it! This line is the end of a list, should only have: } ] }. </pre> Thu, 12 Mar 2009 20:43:28 +0000 mfoss comment 54071 at https://www.ejabberd.im