From:             [EMAIL PROTECTED]
Operating system: Solaris 8
PHP version:      4.2.0
PHP Bug Type:     LDAP related
Bug description:  ldap_bind no longer works

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 bug report at http://bugs.php.net/?id=16901&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16901&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16901&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16901&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16901&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16901&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16901&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16901&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16901&r=submittedtwice

Reply via email to