ID:               16901
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         LDAP related
 Operating System: Solaris 8
 PHP Version:      4.2.0
 New Comment:

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 ?


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

[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

Reply via email to