This crashes using the cURL in the :current release:
/curl "ldap://localhost:389/??base?(objectClass=*)"
But these work:
/curl "ldap://localhost:389/??one?(objectClass=*)"
/curl "ldap://localhost:389/??sub?(objectClass=*)"
LDAP should be able to support "base" scope search on an empty baseDN
(search-base). The scope "one" level below, or the full subtree "sub" depth
work fine. The identical URL works fine using the ldapsearch command with
OpenLDAP, Sun/Netscape, etc.:
ldapsearch -H "ldap://localhost:389/??base?(objectClass=*)"
NOTE: A crash occurs and results in a SEGV if this URL is compiled in using
something like:
$result = file_get_contents( ldap://localhost:389/??base?(objectClass=*));
All other URL cases work, since it's using the curl library.
p.s. - if you don't have an ldap server locally, you can try Novell's. Just
substitute localhost with www.nldap.com.