Chapter 5. Searching with the SDK

As you may recall from Chapter 1, the major feature of an LDAP directory is its ability to return search results on queries rapidly. The SDK provides many flexible methods for obtaining and handling search results from the directory. We will focus in this chapter on building queries using the SDK to retrieve the information we need.

The result set from a search can easily be parsed to return the entry's name and all or a subset of its attributes and values. In our discussion of searches, we will take an example-based approach. Most of the examples here can be run directly from the command-line interface with the java command. It is assumed that you have installed or have access to a directory server and have ...

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.