ejabberd - Comments for "Problems with LDAP Authentification" https://www.ejabberd.im/node/3184 en port config was wrong, now it works fine https://www.ejabberd.im/node/3184#comment-53640 <p>Geeesus! Could it be? Me tripping over myselfe? Ok, I should have rtfm, it's the only value NOT written within q-marks.<br /> Tankx for the hint, badlop. :-)</p> <p>Followup question: </p> <p>I guess the format of the config-items is due to Erlang constrictions, i.e. :<br /> - the ldap server is set in brackets and quotation marks<br /> - the port is put in there completely without<br /> - the ldap_rootdn has to be set in quotation marks only<br /> - ...</p> <p>Is there any way of "harmonizing" this? (Feature request?)</p> <p>EDIT:</p> <p>Different problem, common solution</p> <p><noindex><a href="https://support.process-one.net/browse/EJAB-51" title="https://support.process-one.net/browse/EJAB-51" rel="nofollow" >https://support.process-one.net/browse/EJAB-51</a></noindex><br /> (see comment "Badlop - 24/Aug/07 01:50 AM")</p> Fri, 10 Oct 2008 11:45:49 +0000 ckone comment 53640 at https://www.ejabberd.im Config of ldap doesn't change in ejabberd 2.0.x https://www.ejabberd.im/node/3184#comment-53636 <div class="quote-msg"> <div class="quote-author"><em>ckone</em> wrote:</div> <p>I configured it along the documentation, which is written for 2.0.1. May that be the cause? Has anything changed from .1 to .2_2, concerning the configuration features? </p></div> <p>The configuration of ldap should be valid for all 2.0.x versions.</p> <div class="quote-msg"> <div class="quote-author"><em>ckone</em> wrote:</div> <p>** Reason for termination =<br /> ** {function_clause,[{inet_tcp,getserv,[["389"]]}, </p></div> <p>Umm, looking at the error message, could it be that you configured this incorrectly?</p> <pre> {ldap_port, "389"}. </pre><p> The correct option is this:</p> <pre> {ldap_port, 389}. </pre> Wed, 08 Oct 2008 11:26:39 +0000 mfoss comment 53636 at https://www.ejabberd.im similar problem https://www.ejabberd.im/node/3184#comment-53621 <p>I've got a similar problem:</p> <p>ejd 2.0.2_2 -&gt; stunnel form localhost:389 to ldap-server:636 -&gt; ldap-server (is a NDS)</p> <p>anonymous search works that way with an ldapsearch, but bind does not in ejd. Also, non-anonymous bind doesn't work.</p> <p>The ldap-part crashes with a timeout at server startup (I guess, that'S, where the bind ishappening), the server otherwise, and as far as I can see 'till now, is running fine.</p> <pre> =ERROR REPORT==== 2008-10-02 13:06:32 === ** State machine 'eldap_#Ref&lt;0.0.0.8723&gt;' terminating ** Last event in was timeout ** When State == connecting ** Data == {eldap,3, ["localhost"], null, ["389"], null,[],[],0,undefined, {dict,0,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[], []}, {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[], []}}}, {[],[]}} ** Reason for termination = ** {function_clause,[{inet_tcp,getserv,[["389"]]}, {gen_tcp,connect1,4}, {gen_tcp,connect,4}, {eldap,connect_bind,1}, {eldap,connecting,2}, {gen_fsm,handle_msg,7}, {proc_lib,init_p,5}]} </pre><p> The stunnel logfile doesn't show any entry concerning ejd, so I guess, stunnel wasn't even contacted.</p> <p>I configured it along the documentation, which is written for 2.0.1. May that be the cause? Has anything changed from .1 to .2_2, concerning the configuration features?</p> <p>Also, I had the mechanism working in 2.0.0-trunk (got it sometime before March 20th 2008, don't know what REV).</p> <p>Any new or changed config items?</p> <p>ckone</p> Thu, 02 Oct 2008 12:26:26 +0000 ckone comment 53621 at https://www.ejabberd.im