Author: bpapez
Date: Mon Jan  7 19:21:21 2008
New Revision: 19465

URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D19465&repname=
=3Djahia
Log:
JAHIA-2682: Restricted access to the template precompilation url
- add security-constraint for precompileServlet

Modified:
    trunk/core/src/webapp/WEB-INF/web.xml

Modified: trunk/core/src/webapp/WEB-INF/web.xml
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/trunk/core/src/webapp=
/WEB-INF/web.xml&rev=3D19465&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/core/src/webapp/WEB-INF/web.xml (original)
+++ trunk/core/src/webapp/WEB-INF/web.xml Mon Jan  7 19:21:21 2008
@@ -1414,9 +1414,19 @@
         </auth-constraint>
     </security-constraint>
 =

+    <security-constraint>
+        <web-resource-collection>
+            <web-resource-name>admin</web-resource-name>   =

+            <url-pattern>/precompileServlet/*</url-pattern>
+        </web-resource-collection>
+        <auth-constraint>
+            <role-name>manager</role-name>
+        </auth-constraint>
+    </security-constraint>
+     =

     <login-config>
       <auth-method>BASIC</auth-method>
-      <realm-name>Jahia monitoring</realm-name>
+      <realm-name>Secured Jahia tools</realm-name>
     </login-config>
 =

     <security-role>

_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list

Reply via email to