Search w/ empty base dn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Glenn W. Bach wrote:
> I'm replacing an ldap server with Fedora Directory. The old one allows
> searches with the base dn empty. Is there a way to allow searches with a
> blank base dn in Fedora Directory?

It works for me, I do it all the time.  You may need to set the search
scope to "base" or you won't find anything.

$ ldapsearch -x -b '' -s base vendorVersion
# extended LDIF
#
# LDAPv3
# base <> with scope base
# filter: (objectclass=*)
# requesting: vendorVersion
#

#
dn:
vendorVersion: Fedora-Directory/1.0.1 B2005.342.165

This is using, just as an example, the ldapsearch command line tool
from the openldap-clients RPM.  Which LDAP client are you using?

Another useful search with a blank base DN is for namingContexts,
eg:

ldapsearch -x -b '' -s base namingContexts

-- 
Del




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux