[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap_set_option/ldap_bind_s segfaults

On Dec 29, 2007, at 16:27 , Pierangelo Masarati wrote:

Johan Ström wrote:
Hi list

Im trying to run pure-ftpd 1.0.21 on a FreeBSD 7.0-amd64

Since your arch is 64 bit, and that piece of code is using a lot of function calls whose declaration in ldap.h is hidden behind LDAP_DEPRECATED (ldap_init(), ldap_bind_s()), you should declare that macro (e.g. manually add -DLDAP_DEPRECATED=1 in the Makefile where LDAP-related code is built) when building the client, so the function declarations become visible.

Hi, thanks for your answer!

That would only solve any compile time problems, right? And I got no problems with compiling.. Altough I tried to add


right before the ldap.h/lber.h includes just to test, but no difference.. Still segfaults.
I could try to change the ldap_bind_s to ldap_sasl_bind, but that wouldnt help since it crashes on the ldap_set_version, and that call isn't depricated, right?
I have tried with 3, 2, and 1 as versions just to test, no difference at all.. Always crashes.

Thanks for your help.