Java FreeMarker HTML Python XSLT CSS
Latest commit 5de8c8e Jun 17, 2016 @eddumelendez eddumelendez committed with rwinch Upgrade gradle version (#408)
Failed to load latest commit information.
core-tiger Move test to assertj (#401) Apr 15, 2016
core Move test to assertj (#401) Apr 15, 2016
etc LDAP-56: Server setup script for EC2 OpenLDAP server and keystore for… Nov 22, 2013
gradle Upgrade gradle version (#408) Jun 17, 2016
ldif Move test to assertj (#401) Apr 15, 2016
lib Moved everything from mvn-build to trunk root. Oct 12, 2008
odm Move test to assertj (#401) Apr 15, 2016
parent LDAP-251: Some additional tweaks to the gradle build Aug 16, 2013
samples Release version 2.1.0.RELEASE May 16, 2016
sandbox Move test to assertj (#401) Apr 15, 2016
src Update What's new for 2.1 May 16, 2016
test-support LDAP-337 - Enable Java 8 build. Aug 3, 2015
test Move test to assertj (#401) Apr 15, 2016
.gitignore LDAP-279: Initial version of complete user admin application. Nov 7, 2013
.travis.yml Add Travis Build Mar 18, 2016
CODE_OF_CONDUCT.adoc LDAP-344: Add Contributor Code of Conduct Feb 1, 2016 Update to CLA tooling Jun 9, 2016
build.gradle Update to Sonarqube Plugin Mar 4, 2016
changelog.txt LDAP-181: Changed log level to debug for missing 'returnObjFlag'. Aug 27, 2012 Next development version May 16, 2016
gradlew Upgrade gradle version (#408) Jun 17, 2016
gradlew.bat Upgrade gradle version (#408) Jun 17, 2016
license.txt Updated copyright notice. Aug 16, 2013
notice.txt Moved everything from mvn-build to trunk root. Oct 12, 2008 Add missing ) to Gitter Mar 28, 2016
settings.gradle LDAP-279: Configuration tweaks. Removed simple-odm sample. Nov 8, 2013 Changed to new property skipTests. Nov 30, 2010

Spring LDAP

Join the chat at

Build Status

Code of Conduct

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to


Spring LDAP is a library to simplify LDAP programming in Java, built on the same principles as Spring Jdbc.

The LdapTemplate class encapsulates all the plumbing work involved in traditional LDAP programming, such as creating, looping through NamingEnumerations, handling Exceptions and cleaning up resources. This leaves the programmer to handle the important stuff - where to find data (DNs and Filters) and what do do with it (map to and from domain objects, bind, modify, unbind, etc.), in the same way that JdbcTemplate relieves the programmer of all but the actual SQL and how the data maps to the domain model.

In addition to this, Spring LDAP provides Exception translation from NamingExceptions to an unchecked exception hirearchy, as well as several utilities for working with filters, LDAP paths and Attributes.

For detailed information on the project, please refer to the reference documentation and javadocs. See the changelog for detailed information on changes in the latest version.


All major releases of this library are available in the central Maven repository. The following components are available:

  • spring-ldap-core - the core Spring LDAP library
  • spring-ldap-core-tiger - the Spring LDAP Java 5 support library
  • spring-ldap-test - support classes that helps LDAP with integration testing
  • spring-ldap-ldif-core - the Spring LDAP LDIF parsing library
  • spring-ldap-ldif-batch - the Spring Batch integration layer for the LDIF parsing library
  • spring-ldap-odm - The Object-Directory Mapping (ODM) framework

To include e.g. the spring-ldap-core component in your project, use the following dependency tag:


Milestone releases (such as release candidates) are available from the Spring framework milestone repo:

  <name>Spring Portfolio Milestone Repository</name>

Snapshot builds produced by the CI builds are available from the Spring framework snapshot repo:

  <name>Spring Portfolio Milestone Repository</name>

In order to e.g. try out the latest build snapshot of the core module, include the repository above and use the following dependency tag:


Note that while all milestone and snapshot builds have passed the (quite extensive) test suite, the artifacts here are obviously still work in progress. Feel free to use them for trying out new functionality and bug fixes for an upcoming version. Please report any problems or bugs in the issue tracker.