0 Replies Latest reply on May 22, 2013 4:56 AM by sirair airsir

    JAAS in JBOSS 6 config

    sirair airsir Newbie



      I want to use a LoginModule " UsersRolesLoginModule" which is already integrated in JBOSS. But I dont know how to configure it.


      I have adapted the login-config.xml :


      <application-policy name="jaasTest">


            <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"


              <module-option name="usersProperties">users.properties</module-option>

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







      Here is my web.xml:























      Under WebContent there is a folder admin. All subfiles or directories requires an authentication.

      So where I name in the config that it takes the policy "jaasTest"?

      When I need the server.xml?