O'Reilly logo

Spring Security 3.x Cookbook by Anjana Mankale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Authenticating with ApacheDS with Spring Security and Struts 2 application

In this section, we will be storing the user credentials and role information in the Apache directory server. Spring Security has to locate the server and log in to the server. It should authenticate the user by comparing the credentials submitted by the user and the credentials and role information present in the Apache directory server.

Getting ready

  • Create a dynamic web project in Eclipse
  • The src/main/java folder and the WebContent Folder remain the same
  • Install Apache directory studio: 1.5.3
  • Install Apache directory server: 2.0
  • 10389 is the apache-ds port
  • Add LDAP-related security JARs to the WebContent Lib folder
  • spring-ldap-core-tiger-1.3.X release
  • spring-ldap-odm-1.3.X release ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required