Our First Search
Before you can search an LDAP directory, you need certain information:
Host name of the machine where the directory is installed
Port number of the directory server
Base DN of the directory tree managed by the server
Scope of the search
Search filter
Attributes to request
Optionally, search preferences
Host Name
The host name directs the search to the machine where the directory resides. This parameter is mandatory and is usually of the form machinename.domain—for example, dirhost.acme.com. If you are at the console on the machine that is running the LDAP server, you can use the host name "localhost" for your test server. You can specify the IP address of the host instead if you wish—for example, 127.0.0.1 for "localhost."
Port
The ...
Get LDAP Programming with Java™ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.