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

From: Date: Thu, 23 Sep 2004 23:00:05 +0000
Subject: #29587 [Fbk->NoF]: ldap_read cannot read RootDSE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66616@lists.php.net to get a copy of this message
ID: 29587 Updated by: php-bugs@lists.php.net Reported By: DavidSmith at byu dot net -Status: Feedback +Status: No Feedback Bug Type: LDAP related Operating System: Fedora Core 1 PHP Version: 4.3.8 New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2004-09-16 10:44:33] sniper@php.net With what previous PHP version? And do you use the same openldap library version as you did with the previous PHP version? ------------------------------------------------------------------------ [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 (#66616) next »