Spring LDAP

Makes it easier to build Spring-based applications that use the Lightweight Directory Access Protocol.

Quick Start
Fork me on GitHub

Spring LDAP is a Java library for simplifying LDAP operations, based on the pattern of Spring's JdbcTemplate. The framework relieves the user of common chores, such as looking up and closing contexts, looping through results, encoding/decoding values and filters, and more.


  • Provides LDAP template which eliminates the need to worry about creating and closing LdapContext and looping through NamingEnumeration
  • Comprehensive unchecked Exception hierarchy built on Spring's DataAccessException
  • Contains classes for dynamically building LDAP filters and Distinguished Names (DNs)
  • Client-side LDAP transaction management
  • Much moreā€¦

Quick Start


The recommended way to get started using spring-ldap in your project is with a dependency management system – the snippet below can be copied and pasted into your build. Need help? See our getting started guides on building with Maven and Gradle.