Plugins You can find out about all the publicly available Grails plugins.

LDAP Plugin

  • Tags: ldap
  • Latest: 0.8.2
  • Last Updated: 28 May 2009
  • Grails version: 1.1 > *
  • Authors: Luke Daley
7 votes
compile "org.grails.plugins:ldap:0.8.2"




grails install-plugin ldap


The Grails LDAP Plugin uses the Gldapo library to provide an easy to use, object oriented, interface to LDAP enabled directories.


The Gldapo site contains the current documentation for Gldapo. Please refer to that, but beware that initialization/config is a little different in the Grails context.


To configure gldapo for use with your Grails app, you follow the same regular config script initialization process, except that you put the config under the key ldap in your Grails application config. The most common way to do this is to use the grails-app/conf/Config.groovy file ...

log4j {

ldap { directories { directory1 { url = "ldap://" base = "ou=example,dc=com" userDn = "uid=someuser,ou=example,dc=com" password = "password" searchControls { countLimit = 40 timeLimit = 600 searchScope = "subtree" } } directory2 { urls = [ "ldap://", "ldap://", ] base = "ou=example2,dc=com" } }

typemappings = [ ] }

Schema Classes

The grails-ldap plugin adds the grails-app/ldap directory to your project. You should put your schema classes in this directory to have them found by the plugin and automatically registered into your config.

The ‘gldapo’ bean

The grails-ldap plugin also adds a bean called gldapo to your application context. This bean is the instance of gldapo.Gldapo created from the config.