I have a requirement to authenticate from LDAP and database. The caveat is depending on a database flag, the authentication may fall into one of the following 3 categories:
Can anyone suggest a configuration that can handle this? I can have 2 authentication providers for case 3 but how do I skip one for case 1 or 2? I am using Spring Security 3.0.3.
- Only LDAP.
- Only database.
- LDAP and database.
All comments are appreciated.