Thursday, December 22, 2016

How to setup embedded Apache DS with Spring boot

follow this url
https://spring.io/guides/gs/authenticating-ldap/#scratch


if you are getting error in ldif file not getting loaded
Error is  getting error Caused by: java.lang.RuntimeException: Failed to import LDIF file(s)

.ldapAuthentication().userDnPatterns("uid={0},ou=people").groupSearchBase("ou=groups").
.contextSource().ldif("classpath:test-server.ldif");

try

.ldif("file:test-server.ldif")