From:             DavidSmith at byu dot net
Operating system: Fedora Core 1
PHP version:      4.3.8
PHP Bug Type:     LDAP related
Bug description:  ldap_read cannot read RootDSE

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 bug report at http://bugs.php.net/?id=29587&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29587&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29587&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29587&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29587&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29587&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29587&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29587&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29587&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29587&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29587&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29587&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29587&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29587&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29587&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29587&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29587&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29587&r=float

Reply via email to