Files
spring-ldap/samples/article
Mattias Arthursson bf2c3af0a2 Made sure integration tests for article sample automatically start in-process LDAP server.
DirContextAdapter#setDn() now throws IllegalStateException if setDn is called on an 
instance in update mode (this was previously silently ignored)
Fixed problem in LdapTreeBuilder caused by the new behaviour of DN in DirContextAdapter
(i.e. that the actual DN instance of the DirContextAdapter is no longer returned by 
getDn()).
2008-11-25 15:24:05 +00:00
..
2008-10-27 09:54:59 +00:00

Sample application demonstrating how to do the most basic stuff in Spring LDAP.
A very simple dao implementation is provided in
org.springframework.ldap.samples.article.dao.PersonDaoImpl
It demonstrates some basic operations using Spring LDAP. For reference purposes,
a corresponding implementation using ordinary Java LDAP/JNDI implementation is
available in TraditionalPersonDaoImpl.

How to use:
-----------
The project is in a Maven build structure. Make sure you have installed the samples-utils artifact, as this will be
needed for this project to work.

'mvn jetty:run' will start up a web server demonstrating the capabilities. The web application will be available
under http://localhost:8080/spring-ldap-person-article/

'mvn eclipse:eclipse' will construct an Eclipse project for you to use. Import that project into Eclipse using
File/Import/Existing Project, and select this directory.

'mvn test' will run some integration tests that require the LDAP server to be running. It's recommended to run
'mvn jetty:run' from another terminal window before 'mvn test'.