Ticket #2973 (new defect)

Opened 4 years ago

Last modified 2 years ago

ldap:// bug report (phil)

Reported by: weyrick Assigned to: anonymous
Priority: normal Milestone: 3.1.0 beta
Component: CURL Version: trunk
Severity: minor Keywords:
Cc:

Description (Last modified by weyrick)

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.

Change History

04/15/07 11:28:11 changed by weyrick

  • version set to trunk.
  • type set to defect.
  • description changed.
  • milestone set to 3.1.0 beta.