简体   繁体   中英

A Basic Spring 3.1 LDAP Example

I've been looking for a very basic example of using LDAP authentication in Spring 3.1. In the docs for the security download I found a page similar to this one

http://static.springsource.org/spring-security/site/docs/3.0.x/reference/sample-apps.html

3.3 LDAP Sample

The LDAP sample application provides a basic configuration and sets up both a namespace configuration and an equivalent configuration using traditional beans, both in the same application context file. This means there are actually two identical authentication providers configured in this application.

Trouble is, it is not there in the distribution or I am having a brain fart. Can anyone tell where I can find it or another modern Spring LDAP sample?

Thanks in advance

Steve

It's only in svn. You can find it in this URL . Take a look to /samples/samples-utils/ directory.

As it says at the start of the Spring Security samples chapter that you refer to:

To avoid an overly large download, only the "tutorial" and "contacts" samples are included in the distribution zip file. The others can be built directly from the source which you can obtain as described in the introduction .

So you need to use git to clone the repository and build the samples to get the LDAP authentication sample.

Not that Spring LDAP is a different project from Spring Security. Spring Security uses Spring LDAP for LDAP integration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM