Download Sun Java System Directory Server 5.2 Administration Guide 2005Q1
Transcript
Searching the Directory For detailed information on all ldapsearch utility options, refer to the Directory Server Resource Kit Tools Reference. ldapsearch Examples In the next set of examples, the following assumptions are made: • You want to perform a search of all entries in the directory. • The server is located on hostname myServer. • The server uses port number 5201. • You are binding to the directory as Directory Manager, with a password of password. • 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 myServer -p 5201 -D "cn=directory manager" -w password -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 myServer -p 5201 -D "cn=directory manager" -w password -b "dc=example,dc=com" "(cn=Charlene Daniels)" Searching the Root DSE Entry The root DSE is a special entry that contains information related to the current server instance, such as a list of supported suffixes, available authentication mechanisms, and so forth. 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=*)". Chapter 2 Managing Directory Entries 115
Related documents
Sun ONE Directory Server 5.2 Administration Guide
Sun Java System Messaging Server 6 2005Q1 MTA Developer`s
User Authentication with NetScape Directory Server 4.12
Synology Directory Server User`s Guide
iPECS Attendant user guide - MBC
Sun Fire X4100 and Sun Fire X4200 Servers Product Notes
Sun Microsystems 8190994 Server User Manual
Red Hat 8.1 User's Manual
Red Hat NETSCAPE DIRECTORY SERVER 7.0 - DEPLOYMENT Service manual
Red Hat NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN System information
Sun Java Enterprise System 2005Q1
Inspection Manager 1.0