krams::: Spring Security - MVC: Using an Embedded LDAP Server
How do we embed an LDAP server using Spring Security?18.3.1 Using an Embedded Test Server
The <ldap-server> element can also be used to create an embedded server, which can be very useful for testing and demonstrations. In this case you use it without the url attribute:
<ldap-server root="dc=springframework,dc=org"/>
Here we've specified that the root DIT of the directory should be "dc=springframework,dc=org", which is the default. Used this way, the namespace parser will create an embedded Apache Directory server and scan the classpath for any LDIF files, which it will attempt to load into the server. You can customize this behaviour using the ldif attribute, which defines an LDIF resource to be loaded:
<ldap-server ldif="classpath:users.ldif" />
Read full article from krams::: Spring Security - MVC: Using an Embedded LDAP Server
No comments:
Post a Comment