[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
What is the default of `-b`?
- To: openldap-technical@openldap.org
- Subject: What is the default of `-b`?
- From: Peng Yu <pengyu.ut@gmail.com>
- Date: Thu, 27 Mar 2014 15:17:03 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=NdMvmoa9YJSPzQdAWmp7qTdlbc7E5Sk4t7eglugXMeQ=; b=NNq9LWe2YyDudVEeT5gAIz9KbDN6wcVbxu4tVnCJqwqtF87pPAOLSkCDpf2ZQwS6pC WozL9Pp1zR1RIIM4hGknw4Xu5vKWm79Ze5RwkSfjKpi0nybBAKlqa6Lre4Io7VFaJbHx uPkpeS2M7MibJ8V45/ubLh30GRZreQ1Fw59Y8rIKFYbvCDgBQ7bM29m8TPmwAD1sJf7N Oaeg+MWdBrLbEOo1o6WPAGJnqDP2wwEOl+WmYcXi2sf7GtCV3g/BUuuu8guT7nT1JhAB UHNfc/cnMOJ/7tQodb/cIXPp0WUQU6PdOanvJTYSbuyvU6FNfzm2Lr8fKQKKqVGDOBXo zjTA==
Hi,
The man page says the following.
`-b` *searchbase*
: Use *searchbase* as the starting point for the search instead of
the default.
I'm wondering what is the default. If I don't specify -b, I will get
an error. Does anyone know how show all the contents from the
database? Thanks.
$ sudo ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config dn
dn: cn=config
dn: cn=module{0},cn=config
dn: cn=schema,cn=config
dn: cn={0}core,cn=schema,cn=config
dn: cn={1}cosine,cn=schema,cn=config
dn: cn={2}nis,cn=schema,cn=config
dn: cn={3}inetorgperson,cn=schema,cn=config
dn: olcBackend={0}hdb,cn=config
dn: olcDatabase={-1}frontend,cn=config
dn: olcDatabase={0}config,cn=config
dn: olcDatabase={1}hdb,cn=config
$ sudo ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// dn
No such object (32)
--
Regards,
Peng