2 Replies Latest reply on Sep 22, 2006 8:31 AM by den74

    How use UsersRoleLoginModule

    den74

      Hi all,

      I have installed the portal 2.4.0 and i'm tring to simply use the UsersRolesLoginModule to log in the portal. The users not included into my users.properties and roles.properties files correctly cause a login failed error, but if i try to use one of the valid user i alwais recieve the error "HTTP Status 403 - Access to the requested resource has been denied"

      I tried lots of configurations, in the last one i changed login-config.xml inserting the section:

      <application-policy name = "myAuthentication">

      <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
      flag = "required" >
      <module-option name="usersProperties">props/users.properties</module-option>
      <module-option name="rolesProperties">props/roles.properties</module-option>
      </login-module>

      </application-policy>

      and deploy\jboss-portal.sar\portal-server.war\WEB-INF\jboss-web.xml changing secutiry-domain with this:
      <security-domain>java:jaas/myAuthentication</security-domain>

      My two properties are both under default\conf\props folder and are very simple:
      users.properties contains:
      userx=passuserx
      usery=passusery
      roles.properties contains:
      userx=Admin
      usery=User

      i think nothing more have to be changed, someone can tell me if i'm forgetting to do something?
      thanks in advance

        • 1. Re: How use UsersRoleLoginModule
          bdaw

          Your users need to belong to role "Authenticated"

          You can find

          <auth-constraint>
          <role-name>Authenticated</role-name>
          </auth-constraint>

          and

          <security-role>
          <role-name>Authenticated</role-name>
          </security-role>


          in portal servlet web.xml

          • 2. Re: How use UsersRoleLoginModule
            den74

            I'm not sure to have undersood, but if you mean i have to change roles.properties file in this way

            userx=Admin, Authenticated
            usery=User, Authenticated

            i already have done but it doesn't work yet, the same error is sent