title: Changing Spring Security configuration
body: <p>We have a typical requirement in our application.</p>
  
  <p>We have two Spring Security configurations:
  1. CAS Server
  2. LDAP (NTLM)</p>
  
  <p>So, now we need to check whether the CAS server is available or not and use either CAS or LDAP security configuration based on CAS server availability.</p>
  
  <p>I was trying to dynamically change the Entrypoint url, however, both the config files are using different beans/classes.</p>
  
  <p>Is there any other way to achieve this?</p>
  
  <p>Please let me know how if we can achieve this and how?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Raj</p>