Dashboard > Penrose > Common Errors > Wrong Search Base
Wrong Search Base
Added by Jim Yang, last edited by Jim Yang on Oct 08, 2007  (view change)
Labels: 
(None)


If a search request is missing the -b option for specifying the search base, then, by default, Penrose is searching the LDAP server's root DSE instead of Penrose's virtual LDAP tree.

  
    ldapsearch -h localhost -p 10389 "cn=John Doe" cn

Searching the root DSE requires you to specify "-s base" for base scope, otherwise it's rejected by the underlying LDAP library.

The correct search request should be:

  
    ldapsearch -h localhost -p 10389 -b "dc=Example,dc=com" "(cn=John Doe)" cn

Site running on a free Atlassian Confluence Open Source Project License granted to Safehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators