You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@locus.apache.org on 2000/07/27 19:56:18 UTC
cvs commit: jakarta-tomcat/src/admin/WEB-INF web.xml
costin 00/07/27 10:56:18
Modified: src/admin/WEB-INF web.xml
Log:
Added security constraint to admin, merge from 3.2 fix.
Revision Changes Path
1.4 +19 -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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- web.xml 2000/07/25 20:13:26 1.3
+++ web.xml 2000/07/27 17:56:14 1.4
@@ -9,6 +9,25 @@
Tomcat Admin
</description>
+ <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>
+
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/tomcat_admin-1.0</taglib-uri>
<taglib-location>/WEB-INF/admin.tld</taglib-location>