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

Spring Security with Groovy Grails LDAP authentication

Let's further explore the spring-security plugin with Groovy on Grails with LDAP authentication. In this recipe, I have used Apache DS with Apache Studio installed on my machine. I would be using this for authentication.

Burt Beckwith has written very nice blogs on it. You can view them at: http://burtbeckwith.com/blog/

Getting ready

  • Create a Grails app: grailssecurityldapexamplex.
  • Let's create a controller: SampleController.
  • Install the following plugins:
    • spring-security-core
    • spring-security-ldap
  • Edit the Config.groovy file.
  • We shall display the role and user details after successful authentication. In this recipe we are authenticating users against the email address and password.
  • We need to provide ...

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