spring-ldap icon indicating copy to clipboard operation
spring-ldap copied to clipboard

the sample-plain can't run

Open buster2004 opened this issue 8 years ago • 5 comments
trafficstars

until spring-data-commons version change to 1.13.6.RELEASE,this problem is OK!

buster2004 avatar Sep 20 '17 03:09 buster2004

@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

Tw0l4nd avatar Sep 23 '17 19:09 Tw0l4nd

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 avatar Sep 27 '17 02:09 buster2004

@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 avatar Sep 28 '17 18:09 Tw0l4nd

@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

buster2004 avatar Sep 29 '17 03:09 buster2004

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>

Npscholar avatar Jun 08 '18 16:06 Npscholar