O'Reilly logo

Practical Spring LDAP: Enterprise Java LDAP Development Made Easy by Balaji Varanasi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 10

image

Odds and Ends

In this chapter, you will learn

  • How to perform authentication using Spring LDAP
  • How to parse LDIF files
  • LDAP connection pooling

Authentication Using Spring LDAP

Authentication is a common operation performed against LDAP servers. This usually involves verifying a username and password against the information stored in the directory server.

One approach for implementing authentication using Spring LDAP is via the getContext method of the ContextSource class. Here is the getContext method API:

DirContext getContext(String  principal, String credentials) throws  NamingException

The principal parameter is the fully qualified ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required