3 Replies Latest reply on Aug 6, 2002 11:23 PM by James Chen

    username and password

    Marc Lacombe Newbie

      Hi all... im new to JBoss so i need a little help...

      Im trying to setup a basic security login for a couple of jsp pages, i used to do it with tomcat4.0.3 stand alone and it worked fine but now i want to do it with jboss...

      heres what i have so far...

      in my web.xml file

      <security-constraint>
      <web-resource-collection>
      <web-resource-name>cusdisplay</web-resource-name>
      <url-pattern>/*</url-pattern>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
      </web-resource-collection>
      <auth-constraint>
      <role-name>promocustomerdisplay</role-name>
      </auth-constraint>
      </security-constraint>


      <login-config>
      <auth-method>BASIC</auth-method>
      <realm-name>Alicou</realm-name>
      </login-config>

      <security-role>
      <role-name>promocustomerdisplay</role-name>
      </security-role>

      and in the jboss-web.xml file

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

      where do i set the users and passwords, i tried in a properties file like i saw in the online manual but doesnt seem to work....

      So what am i doing wrong or how should i do this....

      THANX.....