3 Replies Latest reply on Sep 23, 2002 9:27 AM by Randahl Fink Isaksen

    Configuring authentication using UsersRolesLoginModule

    Randahl Fink Isaksen Novice

      I am trying to get authentication to work on JBoss 3.0.2. I would like to use the UsersRolesLoginModule, so I have put a users.properties and roles.properties into my conf folder. I have also configured my web application as shown at the end of this e-mail. However, I keep getting the following error:



      11:51:10,003 WARN [jbossweb] WARNING: Mis-configured Authenticator for /restricted



      This happens when trying to access /restricted/ of my web app



      Any help would be very much appreciated. Thanks.





      Randahl









      From jboss-web.xml



      <?xml version="1.0"?>

      <jboss-web>

      <!-- All secured web content uses this security manager -->

      <security-domain>java:/jaas/myDomain</security-domain>

      </jboss-web>



      From login-config.xml



      <application-policy name = "myDomain">



      <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required"/>



      </application-policy>



      From web.xml



      <security-constraint>

      <web-resource-collection>

      <web-resource-name>Secure Content</web-resource-name>

      <url-pattern>/restricted/*</url-pattern>

      </web-resource-collection>

      <auth-constraint>

      <role-name>Administrator</role-name>

      </auth-constraint>

      </security-constraint>



      <security-role>

      <role-name>Administrator</role-name>

      </security-role>