![Netscape NETSCAPE DIRECTORY SERVER 6.02 Administrator'S Manual Download Page 508](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-02/netscape-directory-server-6-02_administrators-manual_1674673508.webp)
Using ldapsearch
508
Netscape Directory Server Administrator’s Guide • May 2002
•
You have configured your directory to support anonymous access for search
and read. You do not have to specify any bind information in order to perform
the search. For more information on anonymous access, see “Defining User
Access - userdn Keyword,” on page 208.
•
The server is located on hostname
mozilla
.
•
The server uses port number
389
. Since this is the default port, you do not have
to identify the port number on the search request.
•
SSL is enabled for the server on port
636
(the default SSL port number).
•
The suffix under which all data is stored is
dc=example,dc=com
.
Returning All Entries
Given the previous information, the following call will return all entries in the
directory:
ldapsearch -h mozilla -b "dc=example,dc=com" -s sub "objectclass=*"
“
objectclass=*
” is a search filter that matches any entry in the directory.
Specifying Search Filters on the Command Line
You can specify a search filter directly on the command line. If you do this, be sure
to enclose your filter in quotation marks (“filter”)
.
Also, do not specify the
-f
option. For example:
ldapsearch -h mozilla -b "dc=example,dc=com" "cn=babs jensen"
Searching the Root DSE Entry
The root DSE, is a special entry that contains a list of all the suffixes supported by
the local directory server. You can search this entry by supplying a search base of
“”. You must also specify a search scope of
base
and a filter of
"objectclass=*"
.
For example:
ldapsearch -h mozilla -b "" -s base "objectclass=*"
Searching the Schema Entry
Directory Server stores all directory server schema in the special
cn=schema
entry.
This entry contains information on every object class and attribute defined for your
directory server.
You can examine the contents of this entry as follows:
ldapsearch -h mozilla -b "cn=schema" -s base "objectclass=*"
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.02
Page 1: ...Administrator s Guide Netscape Directory Server Version6 02 May 2002 ...
Page 16: ...16 Netscape Directory Server Administrator s Guide May 2002 ...
Page 20: ...20 Netscape Directory Server Administrator s Guide May 2002 ...
Page 74: ...Maintaining Referential Integrity 74 Netscape Directory Server Administrator s Guide May 2002 ...
Page 138: ...Using Referrals 138 Netscape Directory Server Administrator s Guide May 2002 ...
Page 432: ...Miscellaneous Tuning Tips 432 Netscape Directory Server Administrator s Guide May 2002 ...
Page 434: ...434 Netscape Directory Server Administrator s Guide May 2002 ...
Page 468: ...PTA Plug In Syntax Examples 468 Netscape Directory Server Administrator s Guide May 2002 ...
Page 488: ...488 Netscape Directory Server Administrator s Guide May 2002 ...
Page 528: ...Examples of LDAP URLs 528 Netscape Directory Server Administrator s Guide May 2002 ...