Skip to content

Instantly share code, notes, and snippets.

@sergiomichels
Created November 9, 2012 22:56
Show Gist options
  • Select an option

  • Save sergiomichels/4048867 to your computer and use it in GitHub Desktop.

Select an option

Save sergiomichels/4048867 to your computer and use it in GitHub Desktop.
How to make spring security ldap optional, and not validate in the database when activated.
//activate or deactivate the plugin
grails.plugins.springsecurity.ldap.active=true
if(grails.plugins.springsecurity.ldap.active) {
// specify this when you want to skip attempting to load from db and only use LDAP
grails.plugins.springsecurity.providerNames = ['ldapAuthProvider', 'anonymousAuthenticationProvider']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment