May 5th, 2011, 12:47 PM
LDAP Authentication and Database Authentication for different urls.
I have successfully implemented LDAP Authentication with Spring Security.
I am using Spring Framework 3.0.5
But now I have a new requirement.
Once, the user logs in successfully, onclick on 1 module, he has to be authenticated again with the database.
Till now, we were having either database authentication or Ldap.
But now, the requirement is that both should be done for 1 url...
therefore, my question is, can we have both ldap authentication and
like: <intercept-url pattern="/mvc/**"> - to be authenticated with LDAP
<intercept-url pattern="/secure/**"/> - to be authenticated with DB
Is the above possible?
When I add two authentication managers, it says authentication manager already registered..
Do, I have to override AuthenticationProcessingFilter??
Thanks in advance for your replies.