ejabberd - Comments for "LDAPS - SSL Secured LDAP" https://www.ejabberd.im/ldaps en Patch updated to SVN trunk. https://www.ejabberd.im/ldaps#comment-52375 <div class="quote-msg"> <div class="quote-author"><em>fox</em> wrote:</div> <p>does not work against latest svn (1313 revision) (it doesn't need, but you may be interesting it :-))</p></div> <p>I've updated the patch to work with ejabberd trunk SVN r1321. It is published with all the others, in the <noindex><a href="http://www.jabber.ru/bugzilla/show_bug.cgi?id=255" rel="nofollow" >Bugzilla page</a></noindex>.</p> Mon, 12 May 2008 08:42:17 +0000 mfoss comment 52375 at https://www.ejabberd.im Most likely the eldap.erl https://www.ejabberd.im/ldaps#comment-52316 <p>Most likely the eldap.erl and ejabberd_auth_ldap.erl files were changed from ejabberd-2.0.0. This is why you are getting the offset when trying to apply patch.</p> Wed, 30 Apr 2008 22:42:27 +0000 Anonymous comment 52316 at https://www.ejabberd.im OK, this patch work against https://www.ejabberd.im/ldaps#comment-52314 <p>OK, this patch works against ejabberd-2.0.0:</p> <p>$ fox@black ~/temp/tmp/ejabberd-2.0.0/src $ patch -p2 &lt; ldaps-2.0.0.diff<br /> patching file eldap/eldap.erl<br /> patching file ejabberd_auth_ldap.erl<br /> patching file mod_vcard_ldap.erl</p> <p>But, does not work against latest svn (1313 revision) (it doesn't need, but you may be interesting it :-)):</p> <p>fox@black ~/svn/ejabberd_trunk/trunk $ fox@black ~/svn/ejabberd_trunk/trunk/src $ patch -p2 &lt; ldaps-2.0.0.diff<br /> patching file eldap/eldap.erl<br /> Hunk #1 FAILED at 35.<br /> Hunk #2 FAILED at 82.<br /> Hunk #3 FAILED at 105.<br /> Hunk #4 FAILED at 396.<br /> Hunk #5 succeeded at 510 with fuzz 2 (offset 15 lines).<br /> Hunk #6 FAILED at 560.<br /> Hunk #7 FAILED at 578.<br /> Hunk #8 FAILED at 591.<br /> Hunk #9 FAILED at 602.<br /> Hunk #10 FAILED at 658.<br /> Hunk #11 FAILED at 909.<br /> Hunk #12 succeeded at 1020 with fuzz 2 (offset 86 lines).<br /> Hunk #13 FAILED at 1034.<br /> 11 out of 13 hunks FAILED -- saving rejects to file eldap/eldap.erl.rej<br /> patching file ejabberd_auth_ldap.erl<br /> Hunk #2 succeeded at 363 (offset 9 lines).<br /> patching file mod_vcard_ldap.erl</p> <p>So, I can't to complete test for correctly ldaps working right now. I will do it at monday, 5 may 2008. </p> <p>I'm waiting for official ldaps supporting too. :-)</p> Wed, 30 Apr 2008 17:56:28 +0000 fox comment 52314 at https://www.ejabberd.im Ok; try with the updated patch https://www.ejabberd.im/ldaps#comment-52312 <p>It seems the patch had some file format problem. In my system, 'patch' applies it correctly but reports some warnings. It seems in your system, 'patch' refused completely to apply it.</p> <p>I've modified the file format and submitted to Bugzilla:<br /> Working ejabberd-2.0.0 LDAPS patch, without CR</p> <p>Let's hope this time you can apply it correctly.</p> <p>BTW, if you try the patch, it would be nice if you comment here your results: does it work correctly? did you find any problem with it?</p> Wed, 30 Apr 2008 11:33:11 +0000 mfoss comment 52312 at https://www.ejabberd.im I downloaded and applied https://www.ejabberd.im/ldaps#comment-52280 <p>I downloaded and applied this: <noindex><a href="http://www.jabber.ru/bugzilla/attachment.cgi?id=259" title="http://www.jabber.ru/bugzilla/attachment.cgi?id=259" rel="nofollow" >http://www.jabber.ru/bugzilla/attachment.cgi?id=259</a></noindex> (Working ejabberd-2.0.0 LDAPS patch). I reviewed link in my download manager</p> Wed, 30 Apr 2008 08:51:46 +0000 fox comment 52280 at https://www.ejabberd.im You applied the patch for 1.1.2. Check with detail Bugzilla https://www.ejabberd.im/ldaps#comment-52279 <div class="quote-msg"> <div class="quote-author"><em>fox</em> wrote:</div> <p>I tried to apply this patch against stable ejabberd-2.0.0 </p></div> <p>The patch is available in two versions: for ejabberd 1.1.2 and for 2.0.0. Check the Bugzilla:</p> <ul> <li>Revised TLS patch against 1.1.2, including auth and vcard modules </li><li>Working ejabberd-2.0.0 LDAPS patch </li></ul> <p>Obviously, you must apply the patch for 2.0.0. It applies correctly.</p> <p>You applied the 1.1.2 patch in ejabberd 2.0.0, which generates the error messages that you indicated.</p> Wed, 30 Apr 2008 07:17:55 +0000 mfoss comment 52279 at https://www.ejabberd.im Patch does not apply against stable ejabberd 2.0.0 https://www.ejabberd.im/ldaps#comment-52278 <p>I tried to apply this patch against stable ejabberd-2.0.0 (from here <noindex><a href="http://www.process-one.net/downloads/ejabberd/2.0.0/ejabberd-2.0.0.tar.gz" title="http://www.process-one.net/downloads/ejabberd/2.0.0/ejabberd-2.0.0.tar.gz" rel="nofollow" >http://www.process-one.net/downloads/ejabberd/2.0.0/ejabberd-2.0.0.tar.gz</a></noindex>) and got these errors:</p> <p>patching file eldap/eldap.erl<br /> Hunk #1 FAILED at 35.<br /> Hunk #2 FAILED at 82.<br /> Hunk #3 FAILED at 105.<br /> Hunk #4 FAILED at 396.<br /> Hunk #5 FAILED at 495.<br /> Hunk #6 FAILED at 545.<br /> Hunk #7 FAILED at 563.<br /> Hunk #8 FAILED at 576.<br /> Hunk #9 FAILED at 587.<br /> Hunk #10 FAILED at 643.<br /> Hunk #11 FAILED at 894.<br /> Hunk #12 FAILED at 934.<br /> Hunk #13 FAILED at 948.<br /> 13 out of 13 hunks FAILED -- saving rejects to file eldap/eldap.erl.rej<br /> patching file ejabberd_auth_ldap.erl<br /> Hunk #1 FAILED at 24.<br /> Hunk #2 FAILED at 354.<br /> 2 out of 2 hunks FAILED -- saving rejects to file ejabberd_auth_ldap.erl.rej<br /> patching file mod_vcard_ldap.erl<br /> Hunk #1 FAILED at 24.<br /> Hunk #2 FAILED at 677.<br /> 2 out of 2 hunks FAILED -- saving rejects to file mod_vcard_ldap.erl.rej</p> <p>Does it work with this version?<br /> Thanks.</p> Wed, 30 Apr 2008 06:09:31 +0000 fox comment 52278 at https://www.ejabberd.im Got working,I posted new https://www.ejabberd.im/ldaps#comment-52273 <p>Got working,<br /> I posted new patch on <noindex><a href="http://www.jabber.ru/bugzilla/show_bug.cgi?id=255" title="http://www.jabber.ru/bugzilla/show_bug.cgi?id=255" rel="nofollow" >http://www.jabber.ru/bugzilla/show_bug.cgi?id=255</a></noindex></p> <p>Andy</p> Mon, 28 Apr 2008 18:20:10 +0000 Anonymous comment 52273 at https://www.ejabberd.im Having a problem with the https://www.ejabberd.im/ldaps#comment-52132 <p>Having a problem with the new patch for version 2.0.0. If I dont use the {ldap_encrypt,tls}. in the ejabberd.cfg everything runs fine but the connection between the ldap and ejabberd server isn't encrypted. If i do however use it i get the following error output:</p> <p>=ERROR REPORT==== 2008-04-07 11:38:40 ===<br /> ** State machine 'eldap_#Ref&lt;0.0.0.8684&gt;' terminating<br /> ** Last event in was timeout<br /> ** When State == connecting<br /> ** Data == {eldap,3,<br /> ["dir.test.com"],<br /> null,<br /> 636,<br /> null,<br /> [],<br /> [],<br /> 0,<br /> #Fun,<br /> undefined,<br /> {dict,0,<br /> 16,<br /> 16,<br /> 8,<br /> 80,<br /> 48,<br /> {[],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> []},<br /> {{[],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> [],<br /> []}}},<br /> undefined,<br /> 0,<br /> true,<br /> false}<br /> ** Reason for termination =<br /> ** {{badmatch,<br /> {error,<br /> {asn1,<br /> {'Type not compatible with table constraint',<br /> {{component,'Type'},{value,{3,&lt;&lt;6,64&gt;&gt;}}}}}}},<br /> [{ssl_pkix,transform,1},<br /> {lists,map,2},<br /> {lists,map,2},<br /> {ssl_pkix,transform,1},<br /> {ssl_pkix,transform,1},<br /> {ssl_pkix,decode_cert,2},<br /> {eldap,do_connect,3},<br /> {eldap,connect_bind,1}]}</p> <p>If anyone has this problem and has resolved it or knows why i may be getting this please let me know. </p> <p>Thanks<br /> Andy</p> Mon, 07 Apr 2008 18:41:59 +0000 Anonymous comment 52132 at https://www.ejabberd.im Updated 2.0.0 version uploaded. https://www.ejabberd.im/ldaps#comment-52127 <p>I just went through and updated the 1.1.2 patch to work with 2.0.0. I haven't done any work with the patch in over a year, and my test environment has gone away, so any debugging assistance is appreciated. You can download the patch from the bugzilla page.</p> <p>--<br /> -Thomas<br /> They're taking their dog to get its two shots before it's too late. You're taking your dog there too, right?</p> Mon, 07 Apr 2008 05:11:57 +0000 roo comment 52127 at https://www.ejabberd.im Has anyone tried this with https://www.ejabberd.im/ldaps#comment-51931 <p>Has anyone tried this with ejabberd-2.0.0? Also is there any other way to do this without having to recompile? For some reason I couldn't compile ejabberd and had to install it using the binary installation. If anyone has a workaround or an example of an external authentication script it would be greatly appreciated.</p> <p>Andy</p> Tue, 04 Mar 2008 22:16:37 +0000 Anonymous comment 51931 at https://www.ejabberd.im LDAPs does not work for me https://www.ejabberd.im/ldaps#comment-51735 <p>&gt; LDAP depends heavily on making your configuration right with your LDAP schema.</p> <p>Sorry, I do not understand what do you mean. I do not have any problem with LDAP. ejabberd worked with the local LDAP server, and it works with stunneled LDAP now. This ldap server is used by pam, nss, apache, and i-forget-what-else. It is TLS support in ejabberd for LDAP that does not work. Moreover, it does not work and, at the same time, it fails to tell me what is the problem by showing erlang trace instead of human-readable message. How do you propose to solve this problem by tuning LDAP schema (which is OK, I'm sure). May be, I've missed something in your message?</p> Mon, 04 Feb 2008 14:02:06 +0000 Alexandra Kossovsky comment 51735 at https://www.ejabberd.im LDAP https://www.ejabberd.im/ldaps#comment-51719 <p>LDAP is better in version 1.1.4. You should upgrade to this one.</p> <p>It is probably not related to your problem. LDAP depends heavily on making your configuration right with your LDAP schema.</p> <p>--<br /> Mickaël Rémond<br /> <noindex><a href="http://www.process-one.net/" rel="nofollow" >Process-one</a></noindex></p> Fri, 01 Feb 2008 08:17:17 +0000 mremond comment 51719 at https://www.ejabberd.im LDAPs does not work for me https://www.ejabberd.im/ldaps#comment-51717 <p>I get following error when trying to enable ldaps:<br /> ** Reason for termination =<br /> ** {{badmatch,{error,{asn1,{'Type not compatible with table constraint',<br /> {{component,'Type'},<br /> {value,<br /> {22,&lt;&lt;"OpenSSL Generated Certificate"&gt;&gt;}}}}}<br /> }},<br /> [{ssl_pkix,transform,1},<br /> {lists,map,2},<br /> {lists,map,2},<br /> {ssl_pkix,transform,1},<br /> {ssl_pkix,transform,1},<br /> {ssl_pkix,decode_cert,2},<br /> {eldap,do_connect,3},<br /> {eldap,connect_bind,1}]}</p> <p>In LDAP server logs, I see that ejabberd is connected on 636 port; "TLS established tls_ssf=256 ssf=256"; "closed (connection lost)".</p> <p>Can anybody give me any hints?<br /> ejabberd=1.1.2 with the patch from bugzilla;<br /> erlang=11.b.2</p> Thu, 31 Jan 2008 13:24:04 +0000 Alexandra Kossovsky comment 51717 at https://www.ejabberd.im Error using this patch https://www.ejabberd.im/ldaps#comment-25079 <p>I got the following error message when trying to use this patch:<br /> ** {{badmatch,<br /> {error,<br /> {asn1,<br /> {'Type not compatible with table constraint',<br /> {{component,'Type'},{value,{3,&lt;&lt;6,192&gt;&gt;}}}}}}},<br /> [{ssl_pkix,transform,1},<br /> {lists,map,2},<br /> {lists,map,2},<br /> {ssl_pkix,transform,1},<br /> {ssl_pkix,transform,1},<br /> {ssl_pkix,decode_cert,2},<br /> {eldap,do_connect,3},<br /> {eldap,connect_bind,1}]}</p> <p>According to strace, the program tries to read /etc/pki/tls/cert.pem, which seems to be a default value hardcoded somewhere I couldn't find. Even putting there a real certificate doesn't help, I still have this error which seems to be related to ASN encoding, not with certificate validation.</p> Fri, 29 Jun 2007 15:40:08 +0000 guillomovitch comment 25079 at https://www.ejabberd.im