ID: 16901
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Feedback
+Status: Open
Bug Type: LDAP related
Operating System: Solaris 8
PHP Version: 4.2.0
New Comment:
Ok : I tried again with Autoconf 2.13 but the issue
persists !
Previous Comments:
------------------------------------------------------------------------
[2002-04-29 09:07:55] [EMAIL PROTECTED]
You have to to use autoconf >2.13< . It's all about that autoconf 2.52
with which the original ./configure script was built seems to be buggy
(or some bug in configure.in, whatever)
------------------------------------------------------------------------
[2002-04-29 09:03:57] [EMAIL PROTECTED]
I remove the configure script and rebuild it with builconf
:
buildconf: checking installation...
buildconf: autoconf version 2.52 (ok)
buildconf: automake version 1.5 (ok)
buildconf: libtool version 1.4.2 (ok)
rebuilding configure
rebuilding main/php_config.h.in
I rebuilt and reinstalled by I keep on getting the same
error.
------------------------------------------------------------------------
[2002-04-29 08:27:15] [EMAIL PROTECTED]
And exactly the same script works with 4.1.2 ?
If so, this _may_ be related to an autoconf bug we had also with mysql
in the 4.2.0 release, though I'm not sure.
Can you try deleting the ./configure script in php-4.2.0 and rerun
./buildconf with autoconf 2.13 ?
------------------------------------------------------------------------
[2002-04-29 08:23:50] [EMAIL PROTECTED]
After have upgrade my PHP distribution from versin 4.1.2 to
version 4.2.0, the ldap_bind function no longer works :
My script is :
<?php
define("LDAP_HOSTNAME", "ldapserver.in2p3.fr");
define("LDAP_BASEDN", "o=in2p3, c=fr");
$cid = ldap_connect(LDAP_HOSTNAME);
ldap_bind($cid);
echo ldap_search($cid, LDAP_BASEDN, "(objectclass=*)");
?>
It perfacly works whith php 4.1.2.
With 4.2.0 I get the following error :
Warning: LDAP: Unable to bind to server: Can't contact LDAP
server in /sites/webtest/htdocs/ldap/test.php on line 13
(which is the line number of ldap_bind instruction).
Obviously I didn't change anything in the OpenLDAP release
I use nor in the compiler (Sun cc).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16901&edit=1