How Do They Affect Me?

Options and constraints indicate to the SDK and the server how you want data and limits to be handled. For example, a search of an LDAP directory can result in the return of a referral rather than the actual entry meeting the search criteria. This referral names another host LDAP directory that holds the actual data. Instead of writing code to examine the results and follow referrals to additional servers, you can have the SDK follow referrals for you. If you set the option for automatic referral following, the SDK will connect to the referred-to server and obtain the data. This is just one example of how awareness of the available options can simplify your programming tasks.

For the most part within this chapter we will ...

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.