13. Spring LDAP
“Makes it easier to build Spring-based
applications that use the Lightweight Directory
Access Protocol”
14. Spring LDAP
“Makes it easier to build Spring-based
applications that use the Lightweight Directory
Access Protocol”
15. Spring LDAP
• Rich set of features
–
Template and utility classes
–
Search Filters
–
ODM
–
LDIF Parsing
–
Transaction Management
–
Connection Pooling
–
Unchecked exception hierarchy
• Currently 1.3.2
• 2.0.0 in works
21. Integration Testing LDAP Code
• Integration Testing requirements
• Ability to spin up LDAP servers programmatically
• Programmatically start and stop servers
• We need to load data for each set of tests
• Embedded Servers
• Lightweight in nature
• Quick startup time
• Ease of configuration
• OpenDJ/OpenDS, ApacheDS, UnboundID
22. LdapUnit
• Simplifies LDAP Testing
• Supports three embedded servers
• Provides abstraction for other servers to be plugged in
• Puts LDAP Server in a known state
• Works with Spring LDAP or standalone Java code
• Version 0.6.0
•
Code on GitHub: https://github.com/bava/ldapunit