Created
November 9, 2012 22:56
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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