Trying to use Spring LDAP for encoding
Download ApcheDS from the link below http://directory.apache.org/ or get the full phrase from here I used to work with Spring Security 3.0.5 with LDAP (Spring LDAP 1.3). At that time, I did not meet the requirements of ApacheDS. Check out Spring Secuirty, which may be dependent on ApacheDS.
If you are using Maven, this comes from the optional spring-security-ldap dependency.
Using apacheds-all is a bad idea because it contains many fairly common dependencies, such as slf4j and dom4j. You can easily run into problems with the bootloader.
Instead, you should look inside the pom version of spring-security-ldap that you are using for the additional dependencies apacheds and copy them to your pom without the <scope> and <optional> (unfortunately, there is no better way to handle optional dependencies with Maven )
For example, spring-security-ldap 4.2.2 , this will give:
<dependency> <groupId>org.apache.directory.server</groupId> <artifactId>apacheds-core</artifactId> <version>1.5.5</version> </dependency> <dependency> <groupId>org.apache.directory.server</groupId> <artifactId>apacheds-core-entry</artifactId> <version>1.5.5</version> </dependency> <dependency> <groupId>org.apache.directory.server</groupId> <artifactId>apacheds-protocol-ldap</artifactId> <version>1.5.5</version> </dependency> <dependency> <groupId>org.apache.directory.server</groupId> <artifactId>apacheds-protocol-shared</artifactId> <version>1.5.5</version> </dependency> <dependency> <groupId>org.apache.directory.server</groupId> <artifactId>apacheds-server-jndi</artifactId> <version>1.5.5</version> </dependency> (it looks like it hasn't changed since at least 3.2)