During the "Spring LDAP Essentials" session at The Spring Experience 2007, a PersonDaoImpl class written using plain JNDI was changed to instead use Spring LDAP. Attached is the demo code that was used in the session.
- Unzip
- cd spring-ldap-demo-1.0
- mvn eclipse:eclipse
- Import into Eclipse
Once in Eclipse, you can select src/test and Run As JUnit Test. In the se.jayway.demo.spring.ldap.dao.solution package, the steps during the presentation are available as subpackages. They were taken in the following order:
- extractmethod
- ldaptemplate
- dnandfilter
- attributesmapper
- dircontextadapter
- contextmapper


Reply With Quote