java - Disable Spring Security (ldap auth) Temporarily -


i have simple web application, username , password (entered in login page) authenticated against ldap using spring security.

almost configuration here. can post config. files if necessary.

i need way disable authentication altogether temporarily purpose of demo/testing etc. ideally if 'do not authenticate' checkbox exists on login page, authentication should bypassed.

ofcourse can remove spring-security stuff. not neat.

what simplest/best way this? thanks.

i know year old, ran across wanting exact same thing. not find way dynamically did find way simple change done on 1 line in config.groovy , restart of app worked me.

grails.plugin.springsecurity.ldap.active = false

and put other ldap config options in if statement

if (grails.plugin.springsecurity.ldap.active) {     //all of ldap options  } 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -