0 Replies Latest reply: Nov 19, 2012 7:32 AM by 801588 RSS

    ldap authentication programmatically - saml to work

    801588
      Hi,

      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.

      http://www.oracle.com/technetwork/articles/entarch/sso-with-saml-099684.html

      Here appA web app using web.xml contains,
      <login-config>
                <auth-method>FORM</auth-method>
                <realm-name>myrealm</realm-name>
                <form-login-config>
                     <form-login-page>/login.jsp</form-login-page>
                     <form-error-page>/fail_login.htm</form-error-page>
                </form-login-config>
           </login-config>


      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?

      Please help me.

      thanks in advance.
      -sri