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 ...

Get Practical Spring LDAP: Enterprise Java LDAP Development Made Easy 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.