ID:               26409
 Comment by:       mete0 at op dot pl
 Reported By:      pyrox_pro at hotmail dot com
 Status:           Bogus
 Bug Type:         LDAP related
 Operating System: RedHat Linux 7.3
 PHP Version:      4.3.4
 New Comment:

OK, I've found out that my problem lies in openssl-0.9.7c libraries.

Making ldap:// connection (with PHP's ldap_bind () or OpenLDAP's
ldapsearch) worked perfectly, but since I'm trying to authenticate
users via binding them to the server with username/password, ldaps://
is required (for quite obvious reasons). And here ldap_bind (as well as
ldapsearch) segfaults.

So I'm going to try rebuilding php / openldap with older openssl libs
(it worked with openssl-0.9.6k).


Previous Comments:
------------------------------------------------------------------------

[2004-02-06 03:19:44] mete0 at op dot pl

I got similar error -- on ldap_bind () my php script segfaults...

I have two machines, both with OpenLDAP 2.0.27 and PHP 4.3.4  with ldap
support (--with-ldap=/usr)

LDAP Support    enabled
RCS Version     $Id: ldap.c,v 1.130.2.9 2003/10/07 00:36:27 iliaa Exp $
Total Links     0/unlimited
API Version     2004
Vendor Name     OpenLDAP
Vendor Version  20026

two running the same ldap authentication function, on first machine it
gets segfault, on second server function works perfectly...

PTW ldapsearch (from OpenLDAP 2.0.27) gets segfault on both machines...

------------------------------------------------------------------------

[2003-12-09 06:55:38] [EMAIL PROTECTED]

It's still not PHP bug, but do try this:

1) Remove all (and I mean ALL) openldap related header files and
libraries.
2) Install the latest openldap from sources (!) using this configure
line: ./configure --prefix=/opt/openldap 
3) Get fresh PHP sources, and compile it with this configure line: 
# ./configure --disable-all --disable-cgi --enable-debug
--with-ldap=/opt/openldap

If you can reproduce this crash with the created sapi/cli/php binary
reopen this bug report.


------------------------------------------------------------------------

[2003-12-01 12:49:37] pyrox_pro at hotmail dot com

FYI I am trying to connect to Active Directory not an LDAP server, if
that makes any difference or if you can test against and AD server as
well.

------------------------------------------------------------------------

[2003-12-01 12:40:48] pyrox_pro at hotmail dot com

What version of openldap are you using with that and on what OS?

------------------------------------------------------------------------

[2003-12-01 11:55:46] [EMAIL PROTECTED]

Reopen IF openldap folks tell this isn't bug in their stuff.
(FYI: I can NOT reproduce this with PHP 4.3.4 and latest Openldap)

And btw. You need to always delete config.cache before reconfigure..


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/26409

-- 
Edit this bug report at http://bugs.php.net/?id=26409&edit=1

Reply via email to