spring-ldap
spring-ldap copied to clipboard
the sample-plain can't run
until spring-data-commons version change to 1.13.6.RELEASE,this problem is OK!
@buster2004 Many thanks! How did you find that?
Did you succeeded to run the example user-admin?
After version change I got Started Jetty Server, but with errors. Output
Thanks for your reply When I run it,Error with Maven dependency,There's a problem at the lower version of spring,until spring-data-commons version change to 1.13.6.RELEASE,this problem is OK!
@buster2004 Did you succeeded to run the example user-admin? Maybe you can help with it...
P.S. Maybe you have experience how to connect to Active Directory from Spring LDAP? I can not get authorized.
@Tw0l4nd sorry,I just succeeded to run the example PLAIN ,not the example user-admin,the example user-admin Always reported wrong,Debugged for a long time, No success either…… about how to connect to Active Directory from Spring LDAP? If you do not use the connection pool,just like this Is ok https://docs.spring.io/spring-ldap/docs/1.3.x/reference/html/user-authentication.html Be careful If you use the connection pool, you can not do user-authentication with context-source I don't know if it's Bug
The suggestion to change the spring-data-commons dependency to a higher version got the sample user-admin project to start as well. It starts but is not able to create the bean userRepo as @buster2004 mentioned in his stack trace above.
Here's the addition to the necessary to the pom to get around the java.lang.ClassNotFoundException: org.springframework.beans.factory.config.EmbeddedValueResolver
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>1.13.6.RELEASE</version>
<scope>compile</scope>
</dependency>