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:

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...


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

[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..


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

[2003-12-01 11:51:11] pyrox_pro at hotmail dot com

I am using a conf script I have used since 4.1, that has not changed
other than the addition of GD last month.

Everything has worked fine with this build, up until 4.3.4

At the point of failur NOTHING had changed. 

Here is exactly what happened:

step 1) download 4.3.4 tar gz
step 2) run build script (unchanged from 4.3.2-RC build )
step 3) make install
step 4) restart apache
step 5) check php scripts and info.php
step 6) write down SEG FAULT problems
step 7) cd back to 4.3.2-RC
step 8) run the same build script
step 9) make install ; restart apache
step 10) test ldap php script, everything works
step 11) report bug to bugs.php.net
step 12) ...

You see, I can go back and forth between the 2 versions, and always get
the same result, using the same build script, and nothing else changes
at all on the system.

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

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