On Sun, Jun 14, 2009 at 05:44:48PM +0200, Toni Mueller wrote:
> 
> Hi,
> 
> I'm having a problem with pure-ftpd-ldap on amd64.
> 
> Short story: When trying to authenticate, the child crashes.
> 
> 
> Slightly longer story:
> 
> I've had the same setup running for years on 32bit machines. The setup
> comprises OpenLDAP + TLS and pure-ftpd-ldap + TLS, authenticating
> against an OpenLDAP server on the same machine. I've now copied the
> same setup to four different machines:
> 
>  4.4/i386 -> works
>  4.5/i386 -> works (so it's not a 4.4/4.5 issue)
> 
> 2x 4.5/amd64 (different hardware) -> breaks (so it's not a hardware issue)
> 
> All machines in question have ECC memory, and the amd64 machines have
> different quad-core Xeon CPUs, one L5420, and one X3230. One of the i386
> machines has older dual-core Xeon CPUs, the other has a P3.
> 
> The last (only) thing I can see in the logs is this:
> Jun 14 17:19:11 bgp2a pure-ftpd[7398]: ([email protected]) [INFO] New connection 
> from 193.221.127.48
> Jun 14 17:19:11 bgp2a pure-ftpd[7398]: ([email protected]) [INFO] SSL/TLS: Enabled 
> TLSv1/SSLv3 with AES128-SHA, 128 secret bits cipher
> 
> The crash happens immediately after the ftp client tries to actually
> log in to the server.
> 
> 
> I've tried to disable SSL/TLS on the FTP server, but to no avail, so
> I'm inclined to suspect some 64bit issue. A little help to debug this
> would be most welcome!
> 

Update the port to -current or define LDAP_DEPRECATED in src/log_ldap_p.h
You can send your regards including all rants to the openldap mailing list
and their braindead model of deprecating the most used functions.
Took me a full afternoon to figure that out.

-- 
:wq Claudio

--- src/log_ldap_p.h.orig       Fri May  8 16:10:20 2009
+++ src/log_ldap_p.h    Fri May  8 16:11:10 2009
@@ -5,6 +5,8 @@
 #ifndef __LOG_LDAP_P_H__
 #define __LOG_LDAP_P_H__ 1
 
+/* LDAP handler is using deprecated functions */
+#define LDAP_DEPRECATED 1
 #include <lber.h>
 #include <ldap.h>
 

Reply via email to