Let's now enable JBCP Pets to support LDAP-based authentication. Fortunately, this is a relatively simple exercise, using the embedded LDAP server and a sample LDIF file. For this exercise, we will be using an LDIF file created for this book, intended to capture many of the common configuration scenarios with LDAP and Spring Security. We have included several more sample LDIF files, some from Apache DS 1.5, and one from the Spring Security unit tests, which you may choose to experiment with as well.
The first step is to declare the embedded LDAP server reference in the
dogstore-security.xml file. The LDAP server declaration occurs outside of the
<http> element, at the same level ...