Is He Really Who He Says He Is?

Another very common use for directories is authentication.

Suppose you wrote a Web application for betting on college basketball scores. This application is intended to be used (officially, of course) as a company team-building exercise. To ensure that each player is responsible for his or her bets (and is not making bets for someone else), you set up a small database of users and passwords. When the user directs a browser to the betting home page, the user is prompted to enter a user name and password.

At first, this system works just fine. But the idea becomes quite popular, and a colleague, Jim, decides to publish another Web application on his own Web server. This application takes bets on the number of irate ...

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.