0 Replies Latest reply on Jul 18, 2002 12:08 PM by Bert

    User and role mapping on web server

    Bert Newbie


      I'm using JBoss 2.4.4 / Tomcat 4.0.1 bundle. My servlet does
      authenticationManager.isValid(principal, password);
      realmMapping.doesUserHaveRole(principal, requiredRoles);
      for authentication and authorization. Both works fine after deployment.

      After that I use
      to propagate the login information to the environment. Even though I've done
      this, catalina webserver still denies access to a secured servlet, which
      has a security constraint:


      This servlet is accessible for authenticated administrators
      who are in role "admin".

      <realm-name>Biber Servlet</realm-name>
      Users allowed to use AdminServlet

      The previously authenticated user is in role "admin", of course.
      This information is included in pincipal object. So it seems that the webserver
      dosn't get the data from SecurityAssociation, or maybe the mapping from
      "role" in servlet to "role-name" in web.xml deployment descriptor doesn't work.

      Any suggestions? Am I missing a configuration?