tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/admin/WEB-INF web.xml
Date Thu, 27 Jul 2000 18:12:10 GMT
costin      00/07/27 11:12:10

  Modified:    src/admin/WEB-INF Tag: tomcat_32 web.xml
  Log:
  Added security constraints to the admin app. The admin must add a user
  and set the "admin" role for this to work.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.2   +21 -0     jakarta-tomcat/src/admin/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/admin/WEB-INF/web.xml,v
  retrieving revision 1.1.4.1
  retrieving revision 1.1.4.2
  diff -u -r1.1.4.1 -r1.1.4.2
  --- web.xml	2000/07/06 23:26:56	1.1.4.1
  +++ web.xml	2000/07/27 18:12:09	1.1.4.2
  @@ -5,4 +5,25 @@
       "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
   
   <web-app>
  +
  +    <security-constraint>
  +      <web-resource-collection>
  +         <web-resource-name>Protected Area</web-resource-name>
  +         <url-pattern>/contextAdmin/*</url-pattern>
  +	 <http-method>DELETE</http-method>
  +         <http-method>GET</http-method>
  +         <http-method>POST</http-method>
  +	 <http-method>PUT</http-method>
  +      </web-resource-collection>
  +      <auth-constraint>
  +         <role-name>admin</role-name>
  +      </auth-constraint>
  +    </security-constraint>
  +
  +    <login-config>
  +      <auth-method>BASIC</auth-method>
  +      <realm-name>Admin</realm-name>
  +    </login-config>
  +
  +
   </web-app>
  
  
  

Mime
View raw message