#29587 [Opn->Fbk]: ldap_read cannot read RootDSE

From: Date: Thu, 16 Sep 2004 08:44:35 +0000
Subject: #29587 [Opn->Fbk]: ldap_read cannot read RootDSE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66273@lists.php.net to get a copy of this message
ID: 29587 Updated by: sniper@php.net Reported By: DavidSmith at byu dot net -Status: Open +Status: Feedback Bug Type: LDAP related Operating System: Fedora Core 1 PHP Version: 4.3.8 New Comment: With what previous PHP version? And do you use the same openldap library version as you did with the previous PHP version? Previous Comments: ------------------------------------------------------------------------ [2004-08-09 16:31:47] DavidSmith at byu dot net Description: ------------ With PHP 4.3.8, I get a "No such object" error when attempting to read the LDAP RootDSE. The code works fine with previous versions of PHP. I tested with both OpenLDAP 2.1.22 and Novell eDirectory. phpLDAPadmin (all versions) relies on this functionality. Reproduce code: --------------- $ds = ldap_connect( "localhost" ); ldap_bind( $ds ); // Problem is here: $r = @ldap_read( $ds, '', 'objectClass=*', array('+') ); var_dump( $r ); var_dump( ldap_error( $ds ) ); Expected result: ---------------- resource(2) of type (ldap result) string(7) "Success" Actual result: -------------- bool(false) string(14) "No such object" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29587&edit=1

« previous php.bugs (#66273) next »