2 Replies Latest reply on Oct 10, 2007 12:11 PM by anil.saldhana

    SSO several war in one ear

    djoukit

      Hi all,

      I use JBoss 4.2.0.
      I have an ear which contains several war.
      And I want to activate SSO between the multiple webapps.

      I read some posts on the forum and some interresting links such as the wiki post about SSO : http://www.jboss.org/wiki/Wiki.jsp?page=SingleSignOn

      I made several changes in my configuration in order to activate SSO but I can't find a way to make it work.

      - I activated the SSO Valve in jboss-web.deployer/server.xml by adding this line :

      <Valve className="org.apache.catalina.authenticator.SingleSignOn" debug="2"/>


      - I declared my application-policy in conf/login-config.xml :
      <application-policy name = "Djoukit">
       <authentication>
       <login-module code = "com.djoukit.composant.securite.authentification.spi.DataBaseLoginModule"
       flag = "required">
       <module-option name = "dsJndiName">java:/PostgreSqlDS</module-option>
       </login-module>
       </authentication>
       </application-policy>


      - for each webapp I have a jboss-web.xml file with :
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.2//EN" "jboss-web_2_2.dtd" >
      <jboss-web>
       <security-domain>java:/jaas/Djoukit</security-domain>
      </jboss-web>


      - I also added log on jboss security by modifying the log4j conf

      This solution didn't work (I wont be posting if it id :)).
      I don't even get any log in the console showing the work of the SSO Valve.

      I guess I'm doing something wrong ...

      I'm not really a J2EE Security Expert
      Any help would be muchly appreciated

        • 1. Re: SSO several war in one ear
          djoukit

          Well, the problem seems to come from the new JBoss Web Server since everything works fine with JBoss 4.0.5 (tomcat 5.5 embedded).

          Hope it will be patched in the new versions ...

          • 2. Re: SSO several war in one ear
            anil.saldhana

            The apache SSO valve does not really depend on the JBoss security domain but rather than having the WAR files deployed to the same HOST.

            It should be seamless.

            The principal that is coming from a different WAR/domain should make sense to the current WAR.