I have created a saml sso sample based on the following link. appA(domainA) takes user credentials and authenticates (form based) against realm and forwards to appB(domainB) without asking credentials again for appB.
Here appA web app using web.xml contains,
But my requirement is appA should do user authentication (ldap) programmatically not using web.xml configuration. I have my application which has already some db authentication which I do not want to touch. So I am having a class which I will run after log in to my application and should do the same ldap authentication so that my saml configuration should work. How to do this?