Spring LDAP security – BeanCreationException

Spring LDAP security – BeanCreationException

I ran into a similar problem and tried various things to get rid of the error. I guess you also followed the example given here:

https://spring.io/guides/gs/authenticating-ldap/

Since the spring boot version that I am using is newer than the example, there isnt a straightforward matching.

Eventually after many tries of adding and removing dependencies… I found the missing dependency is (for gradle):

implementation org.springframework.security:spring-security-ldap

So in Maven, it should be something like:

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-ldap</artifactId>
</dependency>

Spring LDAP security – BeanCreationException

Leave a Reply

Your email address will not be published. Required fields are marked *