ID:               29587
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to