Initial import.
[pithos] / gss / webdav / WEB-INF / web.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app>
3         <servlet>
4                                 <servlet-name>Webdav</servlet-name>
5                         <servlet-class>gr.ebs.gss.server.webdav.Webdav</servlet-class>
6                 </servlet>
7
8                 <servlet-mapping>
9                                 <servlet-name>Webdav</servlet-name>
10                                 <url-pattern>/*</url-pattern>
11                 </servlet-mapping>
12                 
13                 <security-constraint>
14                 <!-- Protect /, but leave OPTIONS unauthenticated to get around Windows client bug with DIGEST authentication -->
15                         <web-resource-collection>
16                                 <web-resource-name>GSS</web-resource-name>
17                                 <description>GSS WebDAV</description>
18                                 <url-pattern>/</url-pattern>
19                                 <http-method>HEAD</http-method>
20                                 <http-method>GET</http-method>
21                                 <http-method>POST</http-method>
22                                 <http-method>PUT</http-method>
23                                 <http-method>DELETE</http-method>
24                                 <http-method>PROPFIND</http-method>
25                                 <http-method>PROPPATCH</http-method>
26                                 <http-method>MKCOL</http-method>
27                                 <http-method>COPY</http-method>
28                                 <http-method>MOVE</http-method>
29                                 <http-method>LOCK</http-method>
30                                 <http-method>UNLOCK</http-method>
31                         </web-resource-collection>
32                         <auth-constraint>
33                                 <role-name>simpleUser</role-name>
34                         </auth-constraint>
35                         <user-data-constraint>
36                                 <description>no description</description>
37                                 <transport-guarantee>NONE</transport-guarantee>
38                         </user-data-constraint>
39                 </security-constraint>
40                 
41                 <security-constraint>
42                 <!-- Protect everything for every other path -->
43                         <web-resource-collection>
44                                 <web-resource-name>GSS</web-resource-name>
45                                 <description>GSS WebDAV</description>
46                                 <url-pattern>/*</url-pattern>
47                         </web-resource-collection>
48                         <auth-constraint>
49                                 <role-name>simpleUser</role-name>
50                         </auth-constraint>
51                         <user-data-constraint>
52                                 <description>no description</description>
53                                 <transport-guarantee>NONE</transport-guarantee>
54                         </user-data-constraint>
55                 </security-constraint>
56                 
57                 <login-config>
58                         <auth-method>DIGEST</auth-method>
59                         <realm-name>GSS WebDAV</realm-name>
60                 </login-config>
61
62                 <security-role>
63                         <description>A plain WebDAV user</description>
64                         <role-name>simpleUser</role-name>
65                 </security-role>
66                 
67 </web-app>