0 Replies Latest reply on Mar 1, 2012 9:25 AM by Thi Quynh BUI

    Login Module Jboss 7.1.0

    Thi Quynh BUI Newbie

      Hello,

       

      I have to migrate my appication from Jboss 4.2.2 to jboss 7.

      My application define the login module as follow in login-config.xml file (in Jboss4.2.2_Home/server/default/conf)

       

      <application-policy name="my_auth">

             <authentication>

                <login-module code="ch.odi.jaaspam.PamLoginModule" flag="required">

                   <module-option name="service">login</module-option>

                </login-module>

                <login-module code="my.security.auth.spi.RolesLoginModule" flag="required">

                   <module-option name="rolesProperties">props/uitestatlasnet-roles.properties</module-option>

                </login-module>

             </authentication>

          </application-policy>

       

       

      In Jboss7, I changed this to

       

      <security-domain name="my_auth">

            <authentication>

                 <login-module code="ch.odi.jaaspam.PamLoginModule" flag="required">

                        <module-option name="service" value="login"/>

                 </login-module>

                 <login-module code="my.security.auth.spi.RolesLoginModule" flag="required">

                       <module-option name="rolesProperties" value="${jboss.server.config.dir}/my-roles.properties"/>

                 </login-module>

           </authentication>

      </security-domain>

       

       

      and added it in standalone.xml.

       

      The class my.security.auth.spi.RolesLoginModule implements javax.security.auth.spi.LoginModule

       

      Two class my.security.auth.spi.RolesLoginModule and ch.odi.jaaspam.PamLoginModule are in the classpath.

       

      but it doesn't work.

       

      Please help me and show me what i have do to make it works ?

      Thanks

      Best regards

       

      BTQ