view Side-By-Side changes
Network Working Group G. ClemmInternet-DraftRequest for Comments: 3744 IBMExpires: June 22, 2004Category: Standards Track J. Reschke greenbytes E. Sedlar Oracle Corporation J. Whitehead U.C. Santa CruzDecember 23, 2003 WebDAVMay 2004 Web Distributed Authoring and Versioning (WebDAV) Access Control Protocoldraft-ietf-webdav-acl-13Status of this Memo This documentisspecifies anInternet-Draft and is in full conformance with all provisions of Section 10 of RFC2026. Internet-Drafts are working documents ofInternet standards track protocol for the InternetEngineering Task Force (IETF), its areas,community, andits working groups. Note that other groups may also distribute working documents as Internet-Drafts. Internet-Drafts are draft documents validrequests discussion and suggestions fora maximumimprovements. Please refer to the current edition ofsix monthsthe "Internet Official Protocol Standards" (STD 1) for the standardization state andmay be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." The liststatus ofcurrent Internet-Drafts can be accessed at http:// www.ietf.org/ietf/1id-abstracts.txt. The listthis protocol. Distribution ofInternet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html. This Internet-Draft will expire on June 22, 2004.this memo is unlimited. Copyright Notice Copyright (C) The Internet Society(2003).(2004). All Rights Reserved. Abstract This document specifies a set of methods, headers, message bodies, properties, and reports that define Access Control extensions to the WebDAV Distributed Authoring Protocol. This protocol permits a client to read and modify access control lists that instruct a server whether to allow or deny operations upon a resource (such as HyperText Transfer Protocol (HTTP) method invocations) by a given principal. A lightweight representation of principals as WebClemm, et al. Expires June 22, 2004 [Page 1] Internet-Draft WebDAV Access Control Protocol December 2003resources supports integration of a wide range of user management repositories. Search operations allow discovery and manipulation of principals using human names.This document is a product of the Web Distributed Authoring and Versioning (WebDAV) working group of the Internet Engineering Task Force. Comments on this draft are welcomed, and should be addressed to the acl@webdav.org [1] mailing list. Other related documents can be found at [2], and [3].Clemm, et al. Standards Track [Page 1] RFC 3744 WebDAV Access Control Protocol May 2004 Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . .5 1.1 Terms .. 4 1.1. Terms. . . . . . . . . . . . . . . . . . . . . . . . . .7 1.26 1.2. Notational Conventions . . . . . . . . . . . . . . . . .. .8 2. Principals . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3. Privileges . . . . . . . . . . . . . . . . . . . . . . . . .9 3.1. 8 3.1. DAV:read Privilege . . . . . . . . . . . . . . . . . . .. .103.23.2. DAV:writePrivilegePrivilege. . . . . . . . . . . . . . . . . . .. . 11 3.310 3.3. DAV:write-properties Privilege . . . . . . . . . . . . .. . 11 3.410 3.4. DAV:write-contentPrivilege . .Privilege. . . . . . . . . . . . . . . 113.53.5. DAV:unlock Privilege . . . . . . . . . . . . . . . . . .. . 12 3.611 3.6. DAV:read-acl Privilege . . . . . . . . . . . . . . . . .. . 12 3.711 3.7. DAV:read-current-user-privilege-setPrivilege . .Privilege. . . . . . 123.83.8. DAV:write-aclPrivilege .Privilege. . . . . . . . . . . . . . . . .. 13 3.912 3.9. DAV:bind Privilege . . . . . . . . . . . . . . . . . . .. . 13 3.1012 3.10. DAV:unbind Privilege . . . . . . . . . . . . . . . . . .. . 13 3.1112 3.11. DAV:allPrivilege . .Privilege. . . . . . . . . . . . . . . . . . . . 133.123.12. Aggregation of Predefined Privileges . . . . . . . . . .. .13 4. Principal Properties . . . . . . . . . . . . . . . . . . . .14 4.1 DAV:alternate-URI-set .. 13 4.1. DAV:alternate-URI-set. . . . . . . . . . . . . . . . . . 144.2 DAV:principal-URL .4.2. DAV:principal-URL. . . . . . . . . . . . . . . . . . . .. 15 4.314 4.3. DAV:group-member-set . . . . . . . . . . . . . . . . . .. . 15 4.414 4.4. DAV:group-membership . . . . . . . . . . . . . . . . . .. . 1514 5. Access ControlPropertiesProperties. . . . . . . . . . . . . . . . . .15 5.1 DAV:owner .. 15 5.1. DAV:owner. . . . . . . . . . . . . . . . . . . . . . . .16 5.1.115 5.1.1. Example: Retrieving DAV:owner . . . . . . . . . .. . . . . 16 5.1.215 5.1.2. Example: An Attempt to SetDAV:ownerDAV:owner. . . . . . .. . . . . . 17 5.2 DAV:group . .16 5.2. DAV:group. . . . . . . . . . . . . . . . . . . . . . . . 185.3 DAV:supported-privilege-set . .5.3. DAV:supported-privilege-set. . . . . . . . . . . . . . .19 5.3.118 5.3.1. Example: Retrieving a List of Privileges Supported on a Resource . . . . . . . . . . . . .. . . . . . . . . . . . . 20 5.419 5.4. DAV:current-user-privilege-set . . . . . . . . . . . . .. . 22 5.4.121 5.4.1. Example: Retrieving the User's Current Set of Assigned Privileges . . . . . . . . . . . . . . .. . . . . . . . . . 23 5.5 DAV:acl . .22 5.5. DAV:acl. . . . . . . . . . . . . . . . . . . . . . . . .24 5.5.123 5.5.1. ACE Principal . . . . . . . . . . . . . . . . . .. . . . . 24 5.5.223 5.5.2. ACE Grant andDenyDeny. . . . . . . . . . . . . . . .. . . . . . 26 Clemm, et al. Expires June 22, 2004 [Page 2] Internet-Draft WebDAV Access Control Protocol December 2003 5.5.325 5.5.3. ACEProtection . . . . .Protection. . . . . . . . . . . . . . . . . .. 26 5.5.425 5.5.4. ACE Inheritance . . . . . . . . . . . . . . . . .. . . . . 26 5.5.525 5.5.5. Example: Retrieving a Resource's Access ControlList .List. . . .26 5.6 DAV:acl-restrictions. . . . . . . . . . . . . . . . . . . 25 5.6. DAV:acl-restrictions .28 5.6.1 DAV:grant-only. . . . . . . . . . . . . . . . . 27 5.6.1. DAV:grant-only. . . . . . .29 5.6.2 DAV:no-invert ACE Constraint. . . . . . . . . . . 27 5.6.2. DAV:no-invert ACE Constraint. . . . . .29 5.6.3 DAV:deny-before-grant. . . . . 28 5.6.3. DAV:deny-before-grant . . . . . . . . . . . . . .29 5.6.428 5.6.4. Required Principals . . . . . . . . . . . . . . .. . . . . 29 5.6.528 5.6.5. Example: RetrievingDAV:acl-restrictionsDAV:acl-restrictions. . . . .. . . . . . 30 5.7 DAV:inherited-acl-set . .28 Clemm, et al. Standards Track [Page 2] RFC 3744 WebDAV Access Control Protocol May 2004 5.7. DAV:inherited-acl-set. . . . . . . . . . . . . . . . . .31 5.829 5.8. DAV:principal-collection-set . . . . . . . . . . . . . .. . 31 5.8.130 5.8.1. Example: RetrievingDAV:principal-collection-set . . . . . . 32 5.9DAV:principal-collection-set. 30 5.9. Example: PROPFIND to retrieve access controlproperties . . 33properties. 32 6. ACL Evaluation . . . . . . . . . . . . . . . . . . . . . . .37. 36 7. Access Control and existingmethodsmethods. . . . . . . . . . . . .39 7.1. 37 7.1. Any HTTPmethod . .method. . . . . . . . . . . . . . . . . . . . .39 7.1.137 7.1.1. ErrorHandling . . . . . . .Handling. . . . . . . . . . . . . . . . .39 7.2 OPTIONS .. 37 7.2. OPTIONS. . . . . . . . . . . . . . . . . . . . . . . . .40 7.2.138 7.2.1. Example - OPTIONS . . . . . . . . . . . . . . . .. . . . . 40 7.339 7.3. MOVE . . . . . . . . . . . . . . . . . . . . . . . . . .. . 41 7.439 7.4. COPY . . . . . . . . . . . . . . . . . . . . . . . . . .. . 41 7.539 7.5. LOCK . . . . . . . . . . . . . . . . . . . . . . . . . .. . 4139 8. Access Control Methods . . . . . . . . . . . . . . . . . . .41 8.1 ACL .. 40 8.1. ACL. . . . . . . . . . . . . . . . . . . . . . . . . . .41 8.1.140 8.1.1. ACL Preconditions . . . . . . . . . . . . . . . .. . . . . 42 8.1.240 8.1.2. Example: the ACL method . . . . . . . . . . . . .. . . . . 44 8.1.342 8.1.3. Example: ACL method failure due to protected ACEconflictconflict. . . .45 8.1.4 Example: ACL method failure due to an inherited ACE conflict. . . . . . . . . . . . . . . 43 8.1.4. Example: ACL method failure due to an inherited ACE conflict. . . . . . . . . . . . . .46 8.1.544 8.1.5. Example: ACL method failure due to an attempt to set grant and deny in a single ACE . . . . . . 45 9. Access Control Reports . . . . . . . . .47 9. Access Control Reports . . .. . . . . . . . . . . 46 9.1. REPORT Method. . . . . .48 9.1 REPORT Method. . . . . . . . . . . . . . . . 46 9.2. DAV:acl-principal-prop-set Report. . . . . . . .48 9.2 DAV:acl-principal-prop-set Report. . . . 47 9.2.1. Example: DAV:acl-principal-prop-set Report. . . . 48 9.3. DAV:principal-match REPORT . . . . . .49 9.2.1 Example: DAV:acl-principal-prop-set Report. . . . . . . . .50 9.349 9.3.1. Example: DAV:principal-match REPORT . . . . . . . 50 9.4. DAV:principal-property-search REPORT . . . . . . . . . . 519.3.1 Example: DAV:principal-match REPORT9.4.1. Matching. . . . . . . . . . . . .52 9.4 DAV:principal-property-search REPORT .. . . . . . . . 53 9.4.2. Example: successful DAV:principal-property-search REPORT. . . .53 9.4.1 Matching. . . . . . . . . . . . . . . . . . 54 9.5. DAV:principal-search-property-set REPORT . . . . . . . . 569.4.29.5.1. Example:successful DAV:principal-property-search REPORTDAV:principal-search-property-set REPORT. . .56 9.5 DAV:principal-search-property-set REPORT. . . . . . . . . .58 9.5.1 Example: DAV:principal-search-property-set REPORT. . . . .60. . . . 58 10. XML Processing . . . . . . . . . . . . . . . . . . . . . . .61. 59 11. InternationalizationConsiderationsConsiderations. . . . . . . . . . . . .61. 59 12. SecurityConsiderationsConsiderations. . . . . . . . . . . . . . . . . . .62 12.1. 60 12.1. Increased Risk of CompromisedUsersUsers. . . . . . . . . . .. . 62 12.260 12.2. Risks of the DAV:read-acl and DAV:current-user-privilege-setPrivileges .Privileges. . . . . . . .. 63 Clemm, et al. Expires June 22, 2004 [Page 3] Internet-Draft WebDAV Access Control Protocol December 2003 12.360 12.3. No Foreknowledge of InitialACL . .ACL. . . . . . . . . . . . .6361 13. Authentication . . . . . . . . . . . . . . . . . . . . . . .64. 61 14. IANAConsiderationsConsiderations. . . . . . . . . . . . . . . . . . . . .64. 62 15. Acknowledgements . . . . . . . . . . . . . . . . . . . . . .64 Normative. 62 Clemm, et al. Standards Track [Page 3] RFC 3744 WebDAV Access Control Protocol May 2004 16. References . . . . . . . . . . . . . . . . . . . .64 Informative References. . . . . . 62 16.1. Normative References . . . . . . . . . . . . . .65 Authors' Addresses. . . . 62 16.2. Informative References . . . . . . . . . . . . . . . . .6663 Appendices A. WebDAV XML Document Type Definition Addendum . . . . . . . .67. 64 B. WebDAV Method Privilege Table(Normative) . . . . . . . . . 70 C. Resolved issues (to be removed by RFC Editor before publication) . . . . . . . . . . . . . . . . . . . . . . . . 71 C.1 ED_references_names . .(Normative). . . . . . . . . . . 67 Index. . . . . . . . .72 C.2 ED_RFC2386. . . . . . . . . . . . . . . . . . . . . . 69 Authors' Addresses . . .72 C.3 ED_example_host_names. . . . . . . . . . . . . . . . . . .72 C.4 ED_authors_list. . 71 Full Copyright Statement. . . . . . . . . . . . . . . . . . . . . 72C.5 ED_non_ASCII . . . . . . . . . . . . . . . . . . . . . . . . 73 C.6 ED_artwork_line_width . . . . . . . . . . . . . . . . . . . 73 C.7 ED_xml_typos . . . . . . . . . . . . . . . . . . . . . . . . 73 C.8 1_ref_options . . . . . . . . . . . . . . . . . . . . . . . 73 C.9 3.2_ED_RFC2518 . . . . . . . . . . . . . . . . . . . . . . . 74 C.10 3.3_ED_priv_section_titles . . . . . . . . . . . . . . . . . 74 C.11 3.4_write-content-description . . . . . . . . . . . . . . . 74 C.12 3.12_ED_bad_reference . . . . . . . . . . . . . . . . . . . 75 C.13 4.1_ED_RFC2589 . . . . . . . . . . . . . . . . . . . . . . . 75 C.14 5.1_owner_group_details . . . . . . . . . . . . . . . . . . 75 C.15 5.1_owner_href_optional . . . . . . . . . . . . . . . . . . 76 C.16 5.1.2_responsedescription . . . . . . . . . . . . . . . . . 76 C.17 5.5.5_ED_section_numbering . . . . . . . . . . . . . . . . . 76 C.18 5.8_unbind . . . . . . . . . . . . . . . . . . . . . . . . . 76 C.19 6_ED_RFC3010 . . . . . . . . . . . . . . . . . . . . . . . . 77 C.20 6_group_property . . . . . . . . . . . . . . . . . . . . . . 77 C.21 5.5.2_TYPO . . . . . . . . . . . . . . . . . . . . . . . . . 77 C.22 9.4_ED_reference_casemap . . . . . . . . . . . . . . . . . . 78 C.23 11_ED_RFC2279 . . . . . . . . . . . . . . . . . . . . . . . 78 C.24 A_ED_appendices . . . . . . . . . . . . . . . . . . . . . . 78 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Intellectual Property and Copyright Statements . . . . . . . 82 Clemm, et al. Expires June 22, 2004 [Page 4] Internet-Draft WebDAV Access Control Protocol December 2003 1. Introduction The goal of the WebDAV access control extensions is to provide an interoperable mechanism for handling discretionary access control for content and metadata managed by WebDAV servers. WebDAV access control can be implemented on content repositories with security as simple as that of a UNIX file system, as well as more sophisticated models. The underlying principle of access control is that who you are determines what operations you can perform on a resource. The "who you are" is defined by a "principal" identifier; users, client software, servers, and groups of the previous have principal identifiers. The "operations you can perform" are determined by a single "access control list" (ACL) associated with a resource. An ACL contains a set of "access control entries" (ACEs), where each ACE specifies a principal and a set of privileges that are either granted or denied to that principal. When a principal submits an operation (such as an HTTP or WebDAV method) to a resource for execution, the server evaluates the ACEs in the ACL to determine if the principal has permission for that operation. Since every ACE contains the identifier of a principal, client software operated by a human must provide a mechanism for selecting this principal. This specification uses http(s) scheme URLs to identify principals, which are represented as WebDAV-capable resources. There is no guarantee that the URLs identifying principals will be meaningful to a human. For example, http://www.example.com/u/ 256432 and http://www.example.com/people/Greg.Stein are both valid URLs that could be used to identify the same principal. To remedy this, every principal resource has the DAV:displayname property containing a human-readable name for the principal. Since a principal can be identified by multiple URLs, it raises the problem of determining exactly which principal is being referenced in a given ACE. It is impossible for a client to determine that an ACE granting the read privilege to http://www.example.com/people/ Greg.Stein also affects the principal at http://www.example.com/u/ 256432. That is, a client has no mechanism for determining that two URLs identify the same principal resource. As a result, this specification requires clients to use just one of the many possible URLs for a principal when creating ACEs. A client can discover which URL to use by retrieving the DAV:principal-URL property (Section 4.2) from a principal resource. No matter which of the principal's URLs is used with PROPFIND, the property always returns the same URL. With a system having hundreds to thousands of principals, the problem arises of how to allow a human operator of client software to select just one of these principals. One approach is to use broad collection hierarchies to spread the principals over a large number of Clemm, et al. Expires June 22, 2004 [Page 5] Internet-Draft WebDAV Access Control Protocol December 2003 collections, yielding few principals per collection. An example of this is a two level hierarchy with the first level containing 36 collections (a-z, 0-9), and the second level being another 36, creating collections /a/a/, /a/b/, ..., /a/z/, such that a principal with last name "Stein" would appear at /s/t/Stein. In effect, this pre-computes a common query, search on last name, and encodes it into a hierarchy. The drawback with this scheme is that it handles only a small set of predefined queries, and drilling down through the collection hierarchy adds unnecessary steps (navigate down/up) when the user already knows the principal's name. While organizing principal URLs into a hierarchy is a valid namespace organization, users should not be forced to navigate this hierarchy to select a principal. This specification provides the capability to perform substring searches over a small set of properties on the resources representing principals. This permits searches based on last name, first name, user name, job title, etc. Two separate searches are supported, both via the REPORT method, one to search principal resources (DAV:principal-property-search, Section 9.4), the other to determine which properties may be searched at all (DAV:principal-search-property-set, Section 9.5). Once a principal has been identified in an ACE, a server evaluating that ACE must know the identity of the principal making a protocol request, and must validate that that principal is who they claim to be, a process known as authentication. This specification intentionally omits discussion of authentication, as the HTTP protocol already has a number of authentication mechanisms [RFC2617]. Some authentication mechanism (such as HTTP Digest Authentication, which all WebDAV compliant implementations are required to support) must be available to validate the identity of a principal. The following issues are out of scope for this document: o Access control that applies only to a particular property on a resource (excepting the access control properties DAV:acl and DAV:current-user-privilege-set), rather than the entire resource, o Role-based security (where a role can be seen as a dynamically defined group of principals), o Specification of the ways an ACL on a resource is initialized, o Specification of an ACL that applies globally to all resources, rather than to a particular resource. o Creation and maintenance of resources representing people or Clemm, et al. Expires June 22, 2004 [Page 6] Internet-Draft WebDAV Access Control Protocol December 2003 computational agents (principals), and groups of these. This specification is organized as follows. Section 1.1 defines key concepts used throughout the specification, and is followed by a more in-depth discussion of principals (Section 2), and privileges (Section 3). Properties defined on principals are specified in Section 4, and access control properties for content resources are specified in Section 5. The ways ACLs are to be evaluated is described in Section 6. Client discovery of access control capability using OPTIONS is described in Section 7.2. Interactions between access control functionality and existing HTTP and WebDAV methods are described in the remainder of Section 7. The access control setting method, ACL, is specified in Section 8. Four reports that provide limited server-side searching capabilities are described in Section 9. Sections on XML processing (Section 10), Internationalization considerations (Section 11), security considerations (Section 12), and authentication (Section 13) round out the specification. An appendix (Appendix A) provides an XML Document Type Definition (DTD) for the XML elements defined in the specification. 1.1 Terms This draft uses the terms defined in HTTP [RFC2616] and WebDAV [RFC2518]. In addition, the following terms are defined: principal A "principal" is a distinct human or computational actor that initiates access to network resources. In this protocol, a principal is an HTTP resource that represents such an actor. group A "group" is a principal that represents a set of other principals. privilege A "privilege" controls access to a particular set of HTTP operations on a resource. aggregate privilege An "aggregate privilege" is a privilege that contains a set of other privileges. abstract privilege Clemm, et al. Expires June 22, 2004 [Page 7] Internet-Draft WebDAV Access Control Protocol December 2003 The modifier "abstract", when applied to a privilege on a resource, means the privilege cannot be set in an access control element (ACE) on that resource. access control list (ACL) An "ACL" is a list of access control elements that define access control to a particular resource. access control element (ACE) An "ACE" either grants or denies a particular set of (non-abstract) privileges for a particular principal. inherited ACE An "inherited ACE" is an ACE that is dynamically shared from the ACL of another resource. When a shared ACE changes on the primary resource, it is also changed on inheriting resources. protected property A "protected property" is one whose value cannot be updated except by a method explicitly defined as updating that specific property. In particular, a protected property cannot be updated with a PROPPATCH request. 1.2 Notational Conventions The augmented BNF used by this document to describe protocol elements is described in Section 2.1 of [RFC2616]. Because this augmented BNF uses the basic production rules provided in Section 2.2 of [RFC2616], those rules apply to this document as well. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119]. Definitions of XML elements in this document use XML element type declarations (as found in XML Document Type Declarations), described in Section 3.2 of [REC-XML]. When an XML element type in the "DAV:" namespace is referenced in this document outside of the context1. Introduction The goal ofan XML fragment,thestring "DAV:" will be prefixed to the element name. 2. Principals A principal is a network resource that represents a distinct human or Clemm, et al. Expires June 22, 2004 [Page 8] Internet-DraftWebDAVAccess Control Protocol December 2003 computational actor that initiatesaccessto network resources. Users and groups are represented as principals in many implementations; other types of principals are also possible. A URI of any scheme MAY be used to identify a principal resource. However, servers implementing this specification MUST expose principal resources at an http(s) URL, whichcontrol extensions isa privileged scheme that points to resources that have additional properties, as described in Section 4. So, a principal resource can have multiple URIs, one of which hastobe an http(s) scheme URL. Althoughprovide animplementation SHOULD support PROPFIND and MAY support PROPPATCH tointeroperable mechanism for handling discretionary access control for content andmodify information about a principal, it is not required to do so. A principal resource maymetadata managed by WebDAV servers. WebDAV access control can bea group, where a group is a principalimplemented on content repositories with security as simple as thatrepresents a setofother principals, called the members of the group. If a person or computational agent matches a principal resource that isamemberUNIX file system, as well as more sophisticated models. The underlying principle ofa group, they also match the group. Membership in a groupaccess control isrecursive, so ifthat who you are determines what operations you can perform on aprincipalresource. The "who you are" is defined by amember of group GRPA,"principal" identifier; users, client software, servers, andGRPA is a membergroups ofgroup GRPB, thenthe previous have principalis alsoidentifiers. The "operations you can perform" are determined by amembersingle "access control list" (ACL) associated with a resource. An ACL contains a set ofGRPB. 3. Privileges Ability to perform"access control entries" (ACEs), where each ACE specifies agiven method onprincipal and aresource MUST be controlled by one or more privileges. Authorsset ofprotocol extensions that define new HTTP methods SHOULD specify whichprivileges(by defining new privileges, or mapping to ones below)that arerequired to perform the method. A principal with no privileges to a resource MUST beeither granted or deniedany HTTP accessto thatresource, unless theprincipal. When a principalmatchessubmits anACE constructed using the DAV:all, DAV:authenticated,operation (such as an HTTP orDAV:unauthenticated pseudo-principals (see Section 5.5.1). Servers MUST reportWebDAV method) to a403 "Forbidden" error if access is denied, except inresource for execution, thecase whereserver evaluates theprivilege restrictsACEs in theabilityACL toknowdetermine if theresource exists, in which case 404 "Not Found" may be returned. Privileges may be containersprincipal has permission for that operation. Since every ACE contains the identifier ofother privileges, in which case they are termed "aggregate privileges". Ifaprincipal is granted or denied an aggregate privilege, itprincipal, client software operated by a human must provide a mechanism for selecting this principal. This specification uses http(s) scheme URLs to identify principals, which are represented as WebDAV-capable resources. There issemantically equivalent to granting or denying each ofno guarantee that theaggregated privileges individually.URLs identifying principals will be meaningful to a human. For example,an implementation may define add-memberhttp://www.example.com/u/256432 andremove-member privilegeshttp://www.example.com/people/Greg.Stein are both valid URLs thatcontrol the abilitycould be used toadd and remove a member of a group. Since these privileges controlidentify theability to updatesame principal. To remedy this, every principal resource has thestate ofDAV:displayname property containing agroup, these privileges wouldhuman-readable name for the principal. Since a principal can beaggregatedidentified by multiple URLs, it raises theDAV:write privilege onproblem of determining exactly which principal is being referenced in agroup, andgiven ACE. It is impossible for a client to determine that an ACE granting theDAV:writeread privilegeon a group wouldto http://www.example.com/people/ Greg.Stein alsograntaffects theadd-member and remove-member privileges. Privileges may be declared to be "abstract" forprincipal at http://www.example.com/u/ 256432. That is, agiven resource, in which case they cannot be set in an ACE onclient has no mechanism for determining thatresource. Aggregatetwo Clemm, et al.Expires June 22, 2004Standards Track [Page9] Internet-Draft4] RFC 3744 WebDAV Access Control ProtocolDecember 2003 and non-aggregate privileges are both capable of being abstract. Abstract privileges are useful for modeling privileges that otherwise would not be exposed via the protocol. Abstract privileges also provide server implementations with flexibility in implementingMay 2004 URLs identify theprivileges defined insame principal resource. As a result, thisspecification. For example, ifspecification requires clients to use just one of the many possible URLs for a principal when creating ACEs. A client can discover which URL to use by retrieving the DAV:principal-URL property (Section 4.2) from aserver is incapableprincipal resource. No matter which ofseparatingtheread resource capability fromprincipal's URLs is used with PROPFIND, theread ACL capability, it can still modelproperty always returns theDAV:read and DAV:read-acl privileges defined in this specification by declaring them abstract, and containing them withinsame URL. With anon-abstract aggregate privilege (say, read-all) that holds DAV:read, and DAV:read-acl. In this way, it is possiblesystem having hundreds toset the aggregate privilege, read-all, thus couplingthousands of principals, thesettingproblem arises ofDAV:read and DAV:read-acl, but it is not possiblehow toset DAV:read, or DAV:read-acl individually. Since aggregate privileges can be abstract, itallow a human operator of client software to select just one of these principals. One approach isalso possibleto useabstract privilegesbroad collection hierarchies togroup or organize non-abstract privileges. Privilege containment loops are not allowed; therefore,spread the principals over aprivilege MUST NOT contain itself. For example, DAV:read cannot contain DAV:read. The setlarge number ofprivileges that apply to a particular resource may vary with the DAV:resourcetypecollections, yielding few principals per collection. An example ofthe resource, as well as between different server implementations. To promote interoperability, however,thisspecification definesis aset of well-known privileges (e.g. DAV:read, DAV:write, DAV:read-acl, DAV:write-acl, DAV:read-current-user-privilege-set,two level hierarchy with the first level containing 36 collections (a-z, 0-9), andDAV:all), which can at least be used to classifytheother privileges definedsecond level being another 36, creating collections /a/a/, /a/b/, ..., /a/z/, such that a principal with last name "Stein" would appear at /s/t/Stein. In effect, this pre-computes a common query, search on last name, and encodes it into aparticular resource.hierarchy. Theaccess permissions on null resources (defined in [RFC2518], Section 3) are solely those they inherit (if any),drawback with this scheme is that it handles only a small set of predefined queries, andthey are not discoverable (i.e.,drilling down through theaccess control properties specified in Section 5 are not defined on null resources). Oncollection hierarchy adds unnecessary steps (navigate down/up) when thetransition from null to stateful resource,user already knows theinitial access control listprincipal's name. While organizing principal URLs into a hierarchy isset by the server's default ACL value policy (if any). Server implementations MAY define new privileges beyond those defined in this specification. Privileges defined by individual implementations MUST NOT use the DAV: namespace, and instead should usea valid namespacethat they control, such as an http scheme URL. 3.1 DAV:read Privilege The read privilege controls methods that return information aboutorganization, users should not be forced to navigate this hierarchy to select a principal. This specification provides thestatecapability to perform substring searches over a small set of properties on theresource, includingresources representing principals. This permits searches based on last name, first name, user name, job title, etc. Two separate searches are supported, both via theresource's properties. Affected methods include GET and PROPFIND. Any implementation-defined privilege that also controls access to GET and PROPFIND must be aggregated under DAV:read - if an ACL grants accessREPORT method, one toDAV:read,search principal resources (DAV:principal-property-search, Section 9.4), theclient may expect that nootherprivilege needsto determine which properties may begranted to have access to GET and PROPFIND. Additionally, the read privilege MUST control the OPTIONS method. Clemm, et al. Expires June 22, 2004 [Page 10] Internet-Draft WebDAV Access Control Protocol December 2003 <!ELEMENT read EMPTY> 3.2 DAV:write Privilege The write privilege controls methods that locksearched at all (DAV:principal-search- property-set, Section 9.5). Once aresource or modify the content, dead properties, or (in the case ofprincipal has been identified in an ACE, acollection) membershipserver evaluating that ACE must know the identity of theresource, such as PUTprincipal making a protocol request, andPROPPATCH. Notemust validate thatstate modificationthat principal isalso controlled via locking (see section 5.3who they claim to be, a process known as authentication. This specification intentionally omits discussion of[RFC2518]), so effective write access requires that both write privileges and write locking requirementsauthentication, as the HTTP protocol already has a number of authentication mechanisms [RFC2617]. Some authentication mechanism (such as HTTP Digest Authentication, which all WebDAV compliant implementations aresatisfied. Any implementation-defined privilege that also controls accessrequired tomethods modifying content, dead properties or collection membershipsupport) must beaggregated under DAV:write, e.g. if an ACL grants accessavailable toDAV:write,validate theclient may expect that no other privilege needs to be granted to have access to PUT and PROPPATCH. <!ELEMENT write EMPTY> 3.3 DAV:write-properties Privilegeidentity of a principal. Clemm, et al. Standards Track [Page 5] RFC 3744 WebDAV Access Control Protocol May 2004 TheDAV:write-properties privilege controls methods that modify the dead propertiesfollowing issues are out ofthe resource, such as PROPPATCH. Whetherscope for thisprivilege may be used todocument: o Access controlaccessthat applies only toany live properties is determined bya particular property on a resource (excepting theimplementation. Any implementation-defined privilege that also controlsaccessto methods modifying deadcontrol propertiesmust be aggregated under DAV:write-properties - e.g. if an ACL grants access to DAV:write-properties,DAV:acl and DAV:current-user-privilege-set), rather than thecliententire resource, o Role-based security (where a role cansafely expect that no other privilege needs tobegranted to have access to PROPPATCH. <!ELEMENT write-properties EMPTY> 3.4 DAV:write-content Privilege The DAV:write-content privilege controls methods that modifyseen as a dynamically defined group of principals), o Specification of thecontentways an ACL on a resource is initialized, o Specification of anexisting resource, such as PUT. Any implementation-defined privilegeACL thatalso controls accessapplies globally tocontent must be aggregated under DAV:write-content - e.g. if an ACL grants accessall resources, rather than toDAV:write-content,a particular resource. o Creation and maintenance of resources representing people or computational agents (principals), and groups of these. This specification is organized as follows. Section 1.1 defines key concepts used throughout theclient can safely expect that no other privilege needsspecification, and is followed by a more in-depth discussion of principals (Section 2), and privileges (Section 3). Properties defined on principals are specified in Section 4, and access control properties for content resources are specified in Section 5. The ways ACLs are to begranted to haveevaluated is described in Section 6. Client discovery of access control capability using OPTIONS is described in Section 7.2. Interactions between access control functionality and existing HTTP and WebDAV methods are described in the remainder of Section 7. The accessto PUT. Notecontrol setting method, ACL, is specified in Section 8. Four reports thatPUT - when applied to an unmapped URI - creates a new resourceprovide limited server-side searching capabilities are described in Section 9. Sections on XML processing (Section 10), Internationalization considerations (Section 11), security considerations (Section 12), andtherefore is controlled byauthentication (Section 13) round out theDAV:bind privilege onspecification. An appendix (Appendix A) provides an XML Document Type Definition (DTD) for theparent collection. <!ELEMENT write-content EMPTY> Clemm, et al. Expires June 22, 2004 [Page 11] Internet-Draft WebDAV Access Control Protocol December 2003 3.5 DAV:unlock Privilege The DAV:unlock privilege controlsXML elements defined in theuse ofspecification. 1.1. Terms This document uses theUNLOCK method by a principal other thanterms defined in HTTP [RFC2616] and WebDAV [RFC2518]. In addition, thelock owner (thefollowing terms are defined: principalthat created a lock can always perform an UNLOCK). While the set of users who may lock a resourceA "principal" ismost commonly the same set of users who may modifyaresource, servers may allow various kinds of administrators to unlock resources locked by others. Any privilege controllingdistinct human or computational actor that initiates accessby non-lock ownerstoUNLOCK MUST be aggregated under DAV:unlock. A lock owner can always remove a lock by issuing an UNLOCK with the correct lock token and authentication credentials. That is, even if a principal does not have DAV:unlock privilege, they can still remove locks they own. Principals other than the lock owner can removenetwork resources. In this protocol, alock only if they have DAV:unlock privilege and they issueprincipal is anUNLOCK with the correct lock token. Lock timeoutHTTP resource that represents such an actor. Clemm, et al. Standards Track [Page 6] RFC 3744 WebDAV Access Control Protocol May 2004 group A "group" isnot affected by the DAV:unlock privilege. <!ELEMENT unlock EMPTY> 3.6 DAV:read-acl Privilege The DAV:read-acla principal that represents a set of other principals. privilege A "privilege" controlsthe use of PROPFINDaccess toretrieve the DAV:acl propertya particular set oftheHTTP operations on a resource.<!ELEMENT read-acl EMPTY> 3.7 DAV:read-current-user-privilege-set Privilege The DAV:read-current-user-privilege-setaggregate privilegecontrols the use of PROPFIND to retrieve the DAV:current-user-privilege-set propertyAn "aggregate privilege" is a privilege that contains a set ofthe resource. Clients are intended to use this propertyother privileges. abstract privilege The modifier "abstract", when applied tovisually indicate in their UI items that are dependenta privilege onthe permissions ofa resource,for example, by graying out resources that are not writeable. Thismeans the privilegeis separate from DAV:read-acl because therecannot be set in an access control element (ACE) on that resource. access control list (ACL) An "ACL" is aneed to allow most userslist of access control elements that define access control tothea particular resource. access control element (ACE) An "ACE" either grants or denies a particular set of (non- abstract) privilegespermitted the current user (due to its use in creating the UI), while the full ACL contains information that may not be appropriateforthe current authenticated user. Asaresult,particular principal. inherited ACE An "inherited ACE" is an ACE that is dynamically shared from thesetACL ofusers who can viewanother resource. When a shared ACE changes on thefull ACLprimary resource, it isexpected toalso changed on inheriting resources. protected property A "protected property" is one whose value cannot bemuch smaller than those who can read the current user privilege set, and hence distinct privileges are needed for each. <!ELEMENT read-current-user-privilege-set EMPTY>updated except by a method explicitly defined as updating that specific property. In particular, a protected property cannot be updated with a PROPPATCH request. Clemm, et al.Expires June 22, 2004Standards Track [Page12] Internet-Draft7] RFC 3744 WebDAV Access Control ProtocolDecember 2003 3.8 DAV:write-acl PrivilegeMay 2004 1.2. Notational Conventions TheDAV:write-acl privilege controls use of the ACL methodaugmented BNF used by this document tomodify the DAV:acl propertydescribe protocol elements is described in Section 2.1 of [RFC2616]. Because this augmented BNF uses theresource. <!ELEMENT write-acl EMPTY> 3.9 DAV:bind Privilege The DAV:bind privilege allows a method to add a new member URLbasic production rules provided in Section 2.2 of [RFC2616], those rules apply tothe specified collection (for example via PUT or MKCOL). It is ignored for resources that are not collections. <!ELEMENT bind EMPTY> 3.10 DAV:unbind Privilegethis document as well. TheDAV:unbind privilege allows a method to remove a member URL from the specified collection (for example via DELETE or MOVE). It is ignored for resources thatkey words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document arenot collections. <!ELEMENT unbind EMPTY> 3.11 DAV:all Privilege DAV:all isto be interpreted as described in [RFC2119]. Definitions of XML elements in this document use XML element type declarations (as found in XML Document Type Declarations), described in Section 3.2 of [REC-XML]. When anaggregate privilege that containsXML element type in theentire set"DAV:" namespace is referenced in this document outside ofprivileges that can be applied totheresource. <!ELEMENT all EMPTY> 3.12 Aggregationcontext ofPredefined Privileges Server implementations are free to aggregatean XML fragment, thepredefined privileges (defined above in Sections 3.1-3.10) subjectstring "DAV:" will be prefixed to thefollowing limitations: DAV:read-acl MUST NOT contain DAV:read, DAV:write, DAV:write-acl, DAV:write-properties, DAV:write-content, or DAV:read-current-user-privilege-set. DAV:write-acl MUST NOT contain DAV:write, DAV:read, DAV:read-acl, or DAV:read-current-user-privilege-set. DAV:read-current-user-privilege-set MUST NOT contain DAV:write, Clemm, et al. Expires June 22, 2004 [Page 13] Internet-Draft WebDAV Access Control Protocol December 2003 DAV:read, DAV:read-acl, or DAV:write-acl. DAV:write MUST NOT contain DAV:read, DAV:read-acl, or DAV:read-current-user-privilege-set. DAV:read MUST NOT contain DAV:write, DAV:write-acl, DAV:write-properties,element name. 2. Principals A principal is a network resource that represents a distinct human orDAV:write-content. DAV:write MUST contain DAV:bind, DAV:unbind, DAV:write-propertiescomputational actor that initiates access to network resources. Users andDAV:write-content. 4. Principal Properties Principalsgroups aremanifestedrepresented as principals in many implementations; other types of principals are also possible. A URI of any scheme MAY be used toclientsidentify a principal resource. However, servers implementing this specification MUST expose principal resources at an http(s) URL, which is a privileged scheme that points to resources that have additional properties, as described in Section 4. So, aWebDAV resource, identified byprincipal resource can have multiple URIs, one of which has to be an http(s) scheme URL. Although an implementation SHOULD support PROPFIND and MAY support PROPPATCH to access and modify information about aURL.principal, it is not required to do so. A principalMUST haveresource may be anon-empty DAV:displayname property (defined in Section 13.2 of [RFC2518]), andgroup, where aDAV:resourcetype property (defined in Section 13.9 of [RFC2518]). Additionally,group is a principalMUST report the DAV:principal XML element inthat represents a set of other principals, called thevaluemembers of theDAV:resourcetype property. The element type declaration for DAV:principal is: <!ELEMENTgroup. If a person or computational agent matches a principalEMPTY> This protocol defines the following additional properties forresource that is aprincipal. Since it can be expensive formember of aserver to retrieve access control information,group, they also match thename and valuegroup. Membership in a group is recursive, so if a principal is a member ofthese properties SHOULD NOT be returned bygroup GRPA, and GRPA is aPROPFIND allprop request (as defined in Section 12.14.1member of[RFC2518]). 4.1 DAV:alternate-URI-set This protected property, if non-empty, containsgroup GRPB, then theURIsprincipal is also a member ofnetwork resources with additional descriptive information about the principal. This property identifies additional network resources (i.e., it containsGRPB. 3. Privileges Ability to perform a given method on a resource MUST be controlled by one or moreURIs) that may be consulted by a client to gain additional knowledge concerning a principal. One expected use for this property is the storageprivileges. Authors ofan LDAP [RFC2255] scheme URL. A user-agent encountering an LDAP URL could use LDAP [RFC2251] to retrieve additional machine-readable directory information about the principal, and displayprotocol extensions thatinformation in its user interface. Support for this property is REQUIRED, anddefine new HTTP methods SHOULD specify which privileges (by defining new privileges, or mapping to ones below) are required to perform thevalue is empty ifmethod. A principal with noalternate URI exists forprivileges to a resource MUST be denied any HTTP access to that resource, unless theprincipal. <!ELEMENT alternate-URI-set (href*)>principal matches an ACE Clemm, et al.Expires June 22, 2004Standards Track [Page14] Internet-Draft8] RFC 3744 WebDAV Access Control ProtocolDecember 2003 4.2 DAV:principal-URL A principal may have many URLs, but there must be one "principal URL" that clients can use to uniquely identify a principal. This protected property containsMay 2004 constructed using theURL thatDAV:all, DAV:authenticated, or DAV:unauthenticated pseudo-principals (see Section 5.5.1). Servers MUSTbe usedreport a 403 "Forbidden" error if access is denied, except in the case where the privilege restricts the ability toidentify this principalknow the resource exists, inan ACL request. Support for this property is REQUIRED. <!ELEMENT principal-URL (href)> 4.3 DAV:group-member-set This propertywhich case 404 "Not Found" may be returned. Privileges may be containers of other privileges, in which case they are termed "aggregate privileges". If agroupprincipalidentifies the principals that are direct membersis granted or denied an aggregate privilege, it is semantically equivalent to granting or denying each ofthis group. Since a groupthe aggregated privileges individually. For example, an implementation maybedefine add-member and remove- member privileges that control the ability to add and remove a member ofanother group,agroup may also have indirect members (i.e.group. Since these privileges control themembers of its direct members). A URL inability to update theDAV:group-member-set forstate of aprincipal MUSTgroup, these privileges would be aggregated by theDAV:principal-URL of that principal. <!ELEMENT group-member-set (href*)> 4.4 DAV:group-membership This protected property identifies the groups in which the principal is directly a member. Note thatDAV:write privilege on aserver may allowgroup, and granting the DAV:write privilege on a group would also grant the add-member and remove-member privileges. Privileges may be declared to be "abstract" for amember of another group,given resource, in which casethe DAV:group-membership of those other groups would need tothey cannot bequeried in order to determine the groupsset inwhich the principal is indirectly a member. Support for this property is REQUIRED. <!ELEMENT group-membership (href*)> 5. Access Control Properties This specification defines a numberan ACE on that resource. Aggregate and non-aggregate privileges are both capable ofnew propertiesbeing abstract. Abstract privileges are useful forWebDAV resources. Access control properties maymodeling privileges that otherwise would not beretrieved just like other WebDAV properties, usingexposed via thePROPFIND method. Since it is expensive, for many servers, to retrieve access control information, a PROPFIND allprop request (as definedprotocol. Abstract privileges also provide server implementations with flexibility inSection 12.14.1 of [RFC2518]) SHOULD NOT return the names and values ofimplementing thepropertiesprivileges defined in thissection. Access control properties (especially DAV:acl and DAV:inherited-acl-set) are defined on the resource identified by the Request-URI ofspecification. For example, if aPROPFIND request. A direct consequenceserver isthat ifincapable of separating the read resourceis accessible via multiple URI, the value of access Clemm, et al. Expires June 22, 2004 [Page 15] Internet-Draft WebDAV Access Control Protocol December 2003 control properties iscapability from thesame across these URI. HTTP resourcesread ACL capability, it can still model the DAV:read and DAV:read-acl privileges defined in this specification by declaring them abstract, and containing them within a non-abstract aggregate privilege (say, read-all) thatsupportholds DAV:read, and DAV:read-acl. In this way, it is possible to set theWebDAV Access Control Protocol MUST containaggregate privilege, read-all, thus coupling thefollowing properties. Null resources (described in Section 3setting of[RFC2518])DAV:read and DAV:read-acl, but it is not possible to set DAV:read, or DAV:read-acl individually. Since aggregate privileges can be abstract, it is also possible to use abstract privileges to group or organize non-abstract privileges. Privilege containment loops are not allowed; therefore, a privilege MUST NOT containthe following properties. 5.1 DAV:owner This property identifies a particular principal as being the "owner" of the resource. Since the owneritself. For example, DAV:read cannot contain DAV:read. The set of privileges that apply to a particular resourceoften has special access control capabilities (e.g.,may vary with theowner frequently has permanent DAV:write-acl privilege), clients might displayDAV:resourcetype of theresource owner in their user interface. Servers MAY implement DAV:ownerresource, asprotected property and MAY return an empty DAV:owner elementwell asproperty value in case no owner information is available. <!ELEMENT owner (href?)> 5.1.1 Example: Retrieving DAV:owner This example showsbetween different server implementations. To promote interoperability, however, this specification defines aclient request for the valueset of well-known privileges (e.g., DAV:read, DAV:write, DAV:read-acl, DAV:write-acl, DAV:read- current-user-privilege-set, and DAV:all), which can at least be used to classify theDAV:owner property from a collection resource with URL http://www.example.com/ papers/. The principal making the request is authenticated using Digest authentication.other privileges defined on a particular resource. Thevalue of DAV:owner is the URL http:// www.example.com/acl/users/gstein, wrappedaccess permissions on null resources (defined in [RFC2518], Section 3) are solely those they inherit (if any), and they are not discoverable (i.e., theDAV:href XML element. >> Request << PROPFIND /papers/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0 Authorization: Digest username="jim", realm="users@example.com", nonce="...", uri="/papers/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:owner/> </D:prop> </D:propfind>access control properties specified in Clemm, et al.Expires June 22, 2004Standards Track [Page16] Internet-Draft9] RFC 3744 WebDAV Access Control ProtocolDecember 2003 >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/papers/</D:href> <D:propstat> <D:prop> <D:owner> <D:href>http://www.example.com/acl/users/gstein</D:href> </D:owner> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus> 5.1.2 Example: An AttemptMay 2004 Section 5 are not defined on null resources). On the transition from null toSet DAV:owner The following example showsstateful resource, the initial access control list is set by the server's default ACL value policy (if any). Server implementations MAY define new privileges beyond those defined in this specification. Privileges defined by individual implementations MUST NOT use the DAV: namespace, and instead should use a namespace that they control, such as an http scheme URL. 3.1. DAV:read Privilege The read privilege controls methods that return information about the state of the resource, including the resource's properties. Affected methods include GET and PROPFIND. Any implementation-defined privilege that also controls access to GET and PROPFIND must be aggregated under DAV:read - if an ACL grants access to DAV:read, the clientrequestmay expect that no other privilege needs tomodify the value ofbe granted to have access to GET and PROPFIND. Additionally, theDAV:owner property onread privilege MUST control theresource with URL <http:// www.example.com/papers>. Since DAV:owner is a protected property on this particular server, it responds with a 207 (Multi-Status) responseOPTIONS method. <!ELEMENT read EMPTY> 3.2. DAV:write Privilege The write privilege controls methods thatcontainslock a403 (Forbidden) status code forresource or modify theact of setting DAV:owner. Section 8.2.1content, dead properties, or (in the case of[RFC2518] describes PROPPATCH status code information, Section 11a collection) membership of[RFC2518] describestheMulti-Status response and Sections 1.6resource, such as PUT and3.12PROPPATCH. Note that state modification is also controlled via locking (see section 5.3 of[RFC3253] describe additional error marshalling for PROPPATCH attempts on protected properties. Clemm, et al. Expires June 22, 2004 [Page 17] Internet-Draft WebDAV Access Control Protocol December 2003 >> Request << PROPPATCH /papers/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0 Authorization: Digest username="jim", realm="users@example.com", nonce="...", uri="/papers/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:propertyupdate xmlns:D="DAV:"> <D:set> <D:prop> <D:owner> <D:href>http://www.example.com/acl/users/jim</D:href> </D:owner> </D:prop> </D:set> </D:propertyupdate> >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/papers/</D:href> <D:propstat> <D:prop><D:owner/></D:prop> <D:status>HTTP/1.1 403 Forbidden</D:status> <D:responsedescription> <D:error><D:cannot-modify-protected-property/></D:error> Failure[RFC2518]), so effective write access requires that both write privileges and write locking requirements are satisfied. Any implementation-defined privilege that also controls access to methods modifying content, dead properties or collection membership must be aggregated under DAV:write, e.g., if an ACL grants access to DAV:write, the client may expect that no other privilege needs toset protected property (DAV:owner) </D:responsedescription> </D:propstat> </D:response> </D:multistatus> 5.2 DAV:group This property identifies a particular principal as beingbe granted to have access to PUT and PROPPATCH. <!ELEMENT write EMPTY> 3.3. DAV:write-properties Privilege The DAV:write-properties privilege controls methods that modify the"group"dead properties of theresource. This propertyresource, such as PROPPATCH. Whether this privilege may be used to control access to any live properties iscommonly found on repositoriesdetermined by the implementation. Any implementation-defined privilege that also controls access to methods modifying dead properties must be aggregated under DAV:write-properties - e.g., if Clemm, et al.Expires June 22, 2004Standards Track [Page18] Internet-Draft10] RFC 3744 WebDAV Access Control ProtocolDecember 2003 implement the Unix privileges model. Servers MAY implement DAV:group as protected property and MAY returnMay 2004 anempty DAV:group element as property value in caseACL grants access to DAV:write-properties, the client can safely expect that nogroup information is available.other privilege needs to be granted to have access to PROPPATCH. <!ELEMENTgroup (href?)> 5.3 DAV:supported-privilege-set This is a protected propertywrite-properties EMPTY> 3.4. DAV:write-content Privilege The DAV:write-content privilege controls methods thatidentifiesmodify theprivilegescontent of an existing resource, such as PUT. Any implementation- definedfor the resource. <!ELEMENT supported-privilege-set (supported-privilege*)> Eachprivilegeappears asthat also controls access to content must be aggregated under DAV:write-content - e.g., if anXML element, where aggregate privileges list as sub-elements all ofACL grants access to DAV:write-content, theprivilegesclient can safely expect thatthey aggregate. <!ELEMENT supported-privilege (privilege, abstract?, description, supported-privilege*)> <!ELEMENT privilege ANY> An abstractno other privilegeMUST NOTneeds to beused in an ACE forgranted to have access to PUT. Note thatresource. Servers MUST fail an attemptPUT - when applied tosetanabstract privilege.unmapped URI - creates a new resource and therefore is controlled by the DAV:bind privilege on the parent collection. <!ELEMENTabstractwrite-content EMPTY>A description is a human-readable description of what this3.5. DAV:unlock Privilege The DAV:unlock privilege controlsaccess to. Servers MUST indicatethehuman languageuse of thedescription usingUNLOCK method by a principal other than thexml:lang attribute and SHOULD considerlock owner (the principal that created a lock can always perform an UNLOCK). While theHTTP Accept-Language request header when selecting oneset ofmultiple available languages. <!ELEMENT description #PCDATA> It is envisioned thatusers who may lock aWebDAV ACL-aware administrative client would listresource is most commonly thesupported privileges insame set of users who may modify adialog box, andresource, servers may allowthe user to choose non-abstract privileges to apply in an ACE. The privileges tree is useful programmaticallyvarious kinds of administrators tomap well-known privileges (defined by WebDAV or other standards groups) into privileges that are supportedunlock resources locked byany particular server implementation. Theothers. Any privilegetree also serves to hide complexity in implementations allowing large number of privileges to be definedcontrolling access bydisplaying aggregatesnon-lock owners tothe user. Clemm, et al. Expires June 22, 2004 [Page 19] Internet-Draft WebDAV Access Control Protocol December 2003 5.3.1 Example: Retrieving a List of Privileges Supported on a Resource This example showsUNLOCK MUST be aggregated under DAV:unlock. A lock owner can always remove aclient request for the DAV:supported-privilege-set property onlock by issuing an UNLOCK with theresource http:// www.example.com/papers/. The value ofcorrect lock token and authentication credentials. That is, even if a principal does not have DAV:unlock privilege, they can still remove locks they own. Principals other than theDAV:supported-privilege-set property islock owner can remove atree of supported privileges (using "[XML Namespace , localname]" to identify each privilege): [DAV:, all] (aggregate, abstract) | +-- [DAV:, read] (aggregate) | +-- [DAV:, read-acl] (abstract) +-- [DAV:, read-current-user-privilege-set] (abstract) | +-- [DAV:, write] (aggregate) | +-- [DAV:, write-acl] (abstract) +-- [DAV:, write-properties] +-- [DAV:, write-content] | +-- [DAV:, unlock] Thislock only if they have DAV:unlock privilegetreeand they issue an UNLOCK with the correct lock token. Lock timeout is notnormative (except that it reflectsaffected by thenormative aggregation rules given in Section 3.12), and many possibleDAV:unlock privilege. <!ELEMENT unlock EMPTY> 3.6. DAV:read-acl Privilege The DAV:read-acl privilegetrees are possible. >> Request <<controls the use of PROPFIND/papers/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0 Authorization: Digest username="gclemm", realm="users@example.com", nonce="...", uri="/papers/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:supported-privilege-set/> </D:prop> </D:propfind> >> Response << HTTP/1.1 207 Multi-Status Clemm, et al. Expires June 22, 2004 [Page 20] Internet-Draft WebDAV Access Control Protocol December 2003 Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/papers/</D:href> <D:propstat> <D:prop> <D:supported-privilege-set> <D:supported-privilege> <D:privilege><D:all/></D:privilege> <D:abstract/> <D:description xml:lang="en"> Any operation </D:description> <D:supported-privilege> <D:privilege><D:read/></D:privilege> <D:description xml:lang="en"> Read any object </D:description> <D:supported-privilege> <D:privilege><D:read-acl/></D:privilege> <D:abstract/> <D:description xml:lang="en">Read ACL</D:description> </D:supported-privilege> <D:supported-privilege> <D:privilege> <D:read-current-user-privilege-set/> </D:privilege> <D:abstract/> <D:description xml:lang="en"> Read current user privilege setto retrieve the DAV:acl property</D:description> </D:supported-privilege> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:write/></D:privilege> <D:description xml:lang="en"> Write any object </D:description> <D:supported-privilege> <D:privilege><D:write-acl/></D:privilege> <D:description xml:lang="en"> Write ACL </D:description> <D:abstract/> </D:supported-privilege>of the resource. <!ELEMENT read-acl EMPTY> Clemm, et al.Expires June 22, 2004Standards Track [Page21] Internet-Draft11] RFC 3744 WebDAV Access Control ProtocolDecember 2003 <D:supported-privilege> <D:privilege><D:write-properties/></D:privilege> <D:description xml:lang="en"> Write properties </D:description> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:write-content/></D:privilege> <D:description xml:lang="en"> Write resource content </D:description> </D:supported-privilege> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:unlock/></D:privilege> <D:description xml:lang="en"> Unlock resource </D:description> </D:supported-privilege> </D:supported-privilege> </D:supported-privilege-set> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus> 5.4 DAV:current-user-privilege-set DAV:current-user-privilege-set is a protected property containingMay 2004 3.7. DAV:read-current-user-privilege-set Privilege The DAV:read-current-user-privilege-set privilege controls theexact setuse ofprivileges (as computed by the server) grantedPROPFIND to retrieve thecurrently authenticated HTTP user. Aggregate privileges and their contained privilegesDAV:current-user-privilege-set property of the resource. Clients arelisted. A user-agent canintended to usethe value ofthis property toadjust its user interface to make actions inaccessible (e.g.,visually indicate in their UI items that are dependent on the permissions of a resource, for example, by graying out resources that are not writable. This privilege is separate from DAV:read-acl because there is amenu item or button) for whichneed to allow most users access to the privileges permitted the currentprincipal doesuser (due to its use in creating the UI), while the full ACL contains information that may nothave permission. This property is also usefulbe appropriate fordetermining what operationsthe currentprincipalauthenticated user. As a result, the set of users who canperform, without havingview the full ACL is expected toactually execute an operation.be much smaller than those who can read the current user privilege set, and hence distinct privileges are needed for each. <!ELEMENTcurrent-user-privilege-set (privilege*)>read-current-user-privilege-set EMPTY> 3.8. DAV:write-acl Privilege The DAV:write-acl privilege controls use of the ACL method to modify the DAV:acl property of the resource. <!ELEMENT write-acl EMPTY> 3.9. DAV:bind Privilege The DAV:bind privilegeANY> Ifallows a method to add a new member URL to thecurrent userspecified collection (for example via PUT or MKCOL). It isgranted a specific privilege,ignored for resources that are not collections. <!ELEMENT bind EMPTY> 3.10. DAV:unbind Privilege The DAV:unbind privilegemust belongallows a method tothe set of privileges that may be set on this resource. Therefore, each element in the DAV:current-user-privilege-set property MUST identifyremove anon-abstract privilegemember URL from theDAV:supported-privilege-set property.specified collection (for example via DELETE or MOVE). It is ignored for resources that are not collections. <!ELEMENT unbind EMPTY> Clemm, et al.Expires June 22, 2004Standards Track [Page22] Internet-Draft12] RFC 3744 WebDAV Access Control ProtocolDecember 2003 5.4.1 Example: RetrievingMay 2004 3.11. DAV:all Privilege DAV:all is an aggregate privilege that contains theUser's Current Setentire set ofAssigned Privileges Continuing the example from Section 5.3.1, this example shows a client requesting the DAV:current-user-privilege-set property fromprivileges that can be applied to theresource with URL http://www.example.com/papers/. The usernameresource. <!ELEMENT all EMPTY> 3.12. Aggregation of Predefined Privileges Server implementations are free to aggregate theprincipal makingpredefined privileges (defined above in Sections 3.1-3.10) subject to therequest is "khare",following limitations: DAV:read-acl MUST NOT contain DAV:read, DAV:write, DAV:write-acl, DAV:write-properties, DAV:write-content, or DAV:read-current-user- privilege-set. DAV:write-acl MUST NOT contain DAV:write, DAV:read, DAV:read-acl, or DAV:read-current-user-privilege-set. DAV:read-current-user-privilege-set MUST NOT contain DAV:write, DAV:read, DAV:read-acl, or DAV:write-acl. DAV:write MUST NOT contain DAV:read, DAV:read-acl, or DAV:read- current-user-privilege-set. DAV:read MUST NOT contain DAV:write, DAV:write-acl, DAV:write- properties, or DAV:write-content. DAV:write MUST contain DAV:bind, DAV:unbind, DAV:write-properties andDigest authentication is usedDAV:write-content. 4. Principal Properties Principals are manifested to clients as a WebDAV resource, identified by a URL. A principal MUST have a non-empty DAV:displayname property (defined inthe request. The principal with username "khare" has been granted the DAV:read privilege. Since the DAV:read privilege contains the DAV:read-aclSection 13.2 of [RFC2518]), andDAV:read-current-user-privilege-set privileges (seea DAV:resourcetype property (defined in Section5.3.1), the13.9 of [RFC2518]). Additionally, a principalwith username "khare" can read the ACL property, and the DAV:current-user-privilege-set property. However,MUST report theDAV:all, DAV:read-acl, DAV:write-acl and DAV:read-current-user-privilege-set privileges are not listedDAV:principal XML element in the value ofDAV:current-user-privilege-set, since (for this example) they are abstract privileges. DAV:write is not listed sincethe DAV:resourcetype property. The element type declaration for DAV:principal is: <!ELEMENT principalwith username "khare" is not listed in an ACE granting that principal write permission. >> Request << PROPFIND /papers/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0 Authorization: Digest username="khare", realm="users@example.com", nonce="...", uri="/papers/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:current-user-privilege-set/> </D:prop> </D:propfind>EMPTY> Clemm, et al.Expires June 22, 2004Standards Track [Page23] Internet-Draft13] RFC 3744 WebDAV Access Control ProtocolDecember 2003 >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/papers/</D:href> <D:propstat> <D:prop> <D:current-user-privilege-set> <D:privilege><D:read/></D:privilege> </D:current-user-privilege-set> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus> 5.5 DAV:aclMay 2004 Thisisprotocol defines the following additional properties for a principal. Since it can be expensive for a server to retrieve access control information, the name and value of these properties SHOULD NOT be returned by a PROPFIND allprop request (as defined in Section 12.14.1 of [RFC2518]). 4.1. DAV:alternate-URI-set This protected property, if non-empty, contains the URIs of network resources with additional descriptive information about the principal. This property identifies additional network resources (i.e., it contains one or more URIs) thatspecifies the list of access control entries (ACEs), which define what principals aremay be consulted by a client toget what privilegesgain additional knowledge concerning a principal. One expected use for thisresource. <!ELEMENT acl (ace*) > Each DAV:ace element specifiesproperty is thesetstorage ofprivileges to be either granted or deniedan LDAP [RFC2255] scheme URL. A user-agent encountering an LDAP URL could use LDAP [RFC2251] toa single principal. Ifretrieve additional machine-readable directory information about theDAV:aclprincipal, and display that information in its user interface. Support for this property isempty, no principalREQUIRED, and the value isgranted any privilege. <!ELEMENT ace ((principal | invert), (grant|deny), protected?, inherited?)> 5.5.1 ACE Principal The DAV:principal element identifiesempty if no alternate URI exists for theprincipal to which this ACE applies.principal. <!ELEMENT alternate-URI-set (href*)> 4.2. DAV:principal-URL A principal(href | all | authenticated | unauthenticated | property | self)> The current user matches DAV:href only ifmay have many URLs, but there must be one "principal URL" thatuser is authenticated as being (or beingclients can use to uniquely identify amember of) the principal identified byprincipal. This protected property contains the URLClemm, et al. Expires June 22, 2004 [Page 24] Internet-Draft WebDAV Access Control Protocol December 2003 contained bythatDAV:href. The current user always matches DAV:all. <!ELEMENT all EMPTY> The current user matches DAV:authenticated only if authenticated. <!ELEMENT authenticated EMPTY> The current user matches DAV:unauthenticated only if not authenticated. <!ELEMENT unauthenticated EMPTY> DAV:allMUST be used to identify this principal in an ACL request. Support for this property isthe unionREQUIRED. <!ELEMENT principal-URL (href)> 4.3. DAV:group-member-set This property ofDAV:authenticated, and DAV:unauthenticated. Foragiven request,group principal identifies theuser matches either DAV:authenticated, or DAV:unauthenticated, but not both (that is, DAV:authenticated and DAV:unauthenticatedprincipals that aredisjoint sets). The current user matchesdirect members of this group. Since aDAV:property principal ingroup may be aDAV:acl propertymember of another group, aresource only ifgroup may also have indirect members (i.e., thevaluemembers of its direct members). A URL in theidentified property of that resource contains at most one DAV:href XML element,DAV:group-member-set for a principal MUST be theURI valueDAV:principal-URL ofDAV:hrefthat principal. <!ELEMENT group-member-set (href*)> 4.4. DAV:group-membership This protected property identifiesa principal, andthecurrent usergroups in which the principal isauthenticated as being (or beingdirectly amember of)member. Note thatprincipal. For example, if the DAV:property element contained <DAV:owner/>,a server may allow a group to be a member of another group, in which case thecurrent userDAV:group-membership of Clemm, et al. Standards Track [Page 14] RFC 3744 WebDAV Access Control Protocol May 2004 those other groups wouldmatch the DAV:property principal only ifneed to be queried in order to determine thecurrent user is authenticated as matchinggroups in which the principalidentified by the DAV:owneris indirectly a member. Support for this property is REQUIRED. <!ELEMENT group-membership (href*)> 5. Access Control Properties This specification defines a number of new properties for WebDAV resources. Access control properties may be retrieved just like other WebDAV properties, using the PROPFIND method. Since it is expensive, for many servers, to retrieve access control information, a PROPFIND allprop request (as defined in Section 12.14.1 of [RFC2518]) SHOULD NOT return the names and values of theresource. <!ELEMENT property ANY> The current user matches DAV:selfproperties defined inathis section. Access control properties (especially DAV:aclproperty ofand DAV:inherited-acl- set) are defined on the resourceonly if that resource isidentified by the Request-URI of aprincipal andPROPFIND request. A direct consequence is thatprincipal matches the current user or,if theprincipalresource isa group, a memberaccessible via multiple URI, the value ofthat group matchesaccess control properties is thecurrent user. <!ELEMENT self EMPTY> Some servers maysame across these URI. HTTP resources that supportACEs applying to those users NOT matching the current principal, e.g. all users not in a particular group. This can be done by wrappingtheDAV:principal element with DAV:invert. <!ELEMENT invert principal> Clemm, et al. Expires June 22, 2004 [Page 25] Internet-DraftWebDAV Access Control ProtocolDecember 2003 5.5.2 ACE Grant and Deny Each DAV:grant or DAV:deny element specifiesMUST contain thesetfollowing properties. Null resources (described in Section 3 ofprivileges to be either granted or denied to[RFC2518]) MUST NOT contain thespecified principal. A DAV:grant or DAV:deny elementfollowing properties. 5.1. DAV:owner This property identifies a particular principal as being the "owner" of theDAV:aclresource. Since the owner of a resourceMUST only contain non-abstract elements specified inoften has special access control capabilities (e.g., theDAV:supported-privilege-set of that resource. <!ELEMENT grant (privilege+)> <!ELEMENT deny (privilege+)> <!ELEMENT privilege ANY> 5.5.3 ACE Protection A server indicates an ACE is protected by includingowner frequently has permanent DAV:write-acl privilege), clients might display theDAV:protected elementresource owner in their user interface. Servers MAY implement DAV:owner as protected property and MAY return an empty DAV:owner element as property value in case no owner information is available. <!ELEMENT owner (href?)> 5.1.1. Example: Retrieving DAV:owner This example shows a client request for theACE. If the ACLvalue of the DAV:owner property from a collection resourcecontains an ACEwitha DAV:protected element, an attempt to remove that ACE fromURL http://www.example.com/ papers/. The principal making theACL MUST fail. <!ELEMENT protected EMPTY> 5.5.4 ACE Inheritancerequest is authenticated using Digest authentication. Thepresencevalue ofa DAV:inherited element indicates that this ACE is inherited from another resource thatDAV:owner isidentified bythe URLcontainedhttp:// www.example.com/acl/users/gstein, wrapped inathe DAV:href XML element.An inherited ACE cannot be modified directly, but instead the ACL on the resource from which it is inherited must be modified. Note that ACE inheritance is not the same as ACL initialization. ACL initialization defines the ACL that a newly created resource will use (if not specified). ACE inheritance refers to an ACE that is logically shared - where an update to the resource containing an ACE will affect the ACE of each resource that inherits that ACE. The method by which ACLs are initialized or by which ACEs are inherited is not defined by this document. <!ELEMENT inherited (href)> 5.5.5Clemm, et al. Standards Track [Page 15] RFC 3744 WebDAV Access Control Protocol May 2004 >> Request << PROPFIND /papers/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0 Authorization: Digest username="jim", realm="users@example.com", nonce="...", uri="/papers/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:owner/> </D:prop> </D:propfind> >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/papers/</D:href> <D:propstat> <D:prop> <D:owner> <D:href>http://www.example.com/acl/users/gstein</D:href> </D:owner> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus> 5.1.2. Example:Retrieving a Resource's Access Control List Continuing the example from Sections 5.3.1 and 5.4.1, thisAn Attempt to Set DAV:owner The following example shows a clientrequestingrequest to modify theDAV:aclvalue of the DAV:owner propertyfromon the resource with URLhttp://www.example.com/papers/. There are two ACEs defined in<http:// www.example.com/papers>. Since DAV:owner is a protected property on thisACL:particular server, it responds with a 207 (Multi-Status) response that contains a 403 (Forbidden) status code for the act of setting DAV:owner. Section 8.2.1 of [RFC2518] describes PROPPATCH status code information, Section 11 of [RFC2518] describes the Clemm, et al.Expires June 22, 2004Standards Track [Page26] Internet-Draft16] RFC 3744 WebDAV Access Control ProtocolDecember 2003 ACE #1: The group identified by URL http://www.example.com/acl/ groups/maintainers (the group of site maintainers) is granted DAV:write privilege. Since (for this example) DAV:write contains the DAV:write-acl privilege (see Section 5.3.1), this means the "maintainers" group can also modify the access control list. ACE #2: All principals (DAV:all) are granted the DAV:read privilege. Since (for this example) DAV:read contains DAV:read-aclMay 2004 Multi-Status response andDAV:read-current-user-privilege-set, this means all users (including all members of the "maintainers" group) can read the DAV:acl propertySections 1.6 andthe DAV:current-user-privilege-set property.3.12 of [RFC3253] describe additional error marshaling for PROPPATCH attempts on protected properties. >> Request <<PROPFINDPROPPATCH /papers/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0 Authorization: Digestusername="masinter",username="jim", realm="users@example.com", nonce="...", uri="/papers/", response="...", opaque="..."<D:propfind<?xml version="1.0" encoding="utf-8" ?> <D:propertyupdate xmlns:D="DAV:"> <D:set> <D:prop><D:acl/><D:owner> <D:href>http://www.example.com/acl/users/jim</D:href> </D:owner> </D:prop></D:propfind> Clemm, et al. Expires June 22, 2004 [Page 27] Internet-Draft WebDAV Access Control Protocol December 2003</D:set> </D:propertyupdate> >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/papers/</D:href> <D:propstat><D:prop> <D:acl> <D:ace> <D:principal> <D:href >http://www.example.com/acl/groups/maintainers</D:href> </D:principal> <D:grant> <D:privilege><D:write/></D:privilege> </D:grant> </D:ace> <D:ace> <D:principal> <D:all/> </D:principal> <D:grant> <D:privilege><D:read/></D:privilege> </D:grant> </D:ace> </D:acl> </D:prop><D:prop><D:owner/></D:prop> <D:status>HTTP/1.1200 OK</D:status>403 Forbidden</D:status> <D:responsedescription> <D:error><D:cannot-modify-protected-property/></D:error> Failure to set protected property (DAV:owner) </D:responsedescription> </D:propstat> </D:response> </D:multistatus>5.6 DAV:acl-restrictionsClemm, et al. Standards Track [Page 17] RFC 3744 WebDAV Access Control Protocol May 2004 5.2. DAV:group Thisprotectedpropertydefinesidentifies a particular principal as being thetypes"group" ofACLs supported by this server, to avoid clients needlessly getting errors. When a client tries to setthe resource. This property is commonly found on repositories that implement the Unix privileges model. Servers MAY implement DAV:group as protected property and MAY return anACL viaempty DAV:group element as property value in case no group information is available. <!ELEMENT group (href?)> 5.3. DAV:supported-privilege-set This is a protected property that identifies theACL method,privileges defined for theserver may rejectresource. <!ELEMENT supported-privilege-set (supported-privilege*)> Each privilege appears as an XML element, where aggregate privileges list as sub-elements all of the privileges that they aggregate. <!ELEMENT supported-privilege (privilege, abstract?, description, supported-privilege*)> <!ELEMENT privilege ANY> An abstract privilege MUST NOT be used in an ACE for that resource. Servers MUST fail an attempt to setthe ACL as specified. The following propertiesan abstract privilege. <!ELEMENT abstract EMPTY> A description is a human-readable description of what this privilege controls access to. Servers MUST indicate therestrictionshuman language of the description using the xml:lang attribute and SHOULD consider the HTTP Accept-Language request header when selecting one of multiple available languages. <!ELEMENT description #PCDATA> It is envisioned that a WebDAV ACL-aware administrative clientmust observe before settingwould list the supported privileges in a dialog box, and allow the user to choose non-abstract privileges to apply in anACL: Clemm, et al. Expires June 22, 2004 [Page 28] Internet-DraftACE. The privileges tree is useful programmatically to map well-known privileges (defined by WebDAVAccess Control Protocol December 2003 <grant-only> Deny ACEs are not supported <no-invert> Inverted ACEsor other standards groups) into privileges that arenotsupported<deny-before-grant> All deny ACEs must occur beforeby anygrant ACEs <required-principal> Indicates which principals are requiredparticular server implementation. The privilege tree also serves to hide complexity in implementations allowing large number of privileges to bepresent <!ELEMENT acl-restrictions (grant-only?, no-invert?, deny-before-grant?, required-principal?)> 5.6.1 DAV:grant-only This element indicates that ACEs with deny clauses are not allowed. <!ELEMENT grant-only EMPTY> 5.6.2 DAV:no-invert ACE Constraint This element indicates that ACEs with the <invert> element are not allowed. <!ELEMENT no-invert EMPTY> 5.6.3 DAV:deny-before-grant This element indicates that all deny ACEs must precede all grant ACEs. <!ELEMENT deny-before-grant EMPTY> 5.6.4 Required Principals The required principal elements identify which principals must have an ACEdefinedin the ACL. <!ELEMENT required-principal (all? | authenticated? | unauthenticated? | self? | href* | property*)> For example, the following element requires thatby displaying aggregates to theACL contain auser. Clemm, et al.Expires June 22, 2004Standards Track [Page29] Internet-Draft18] RFC 3744 WebDAV Access Control ProtocolDecember 2003 DAV:owner property ACE: <D:required-principal xmlns:D="DAV:"> <D:property><D:owner/></D:property> </D:required-principal> 5.6.5May 2004 5.3.1. Example: RetrievingDAV:acl-restrictions In this example, thea List of Privileges Supported on a Resource This example shows a clientrequestsrequest for the DAV:supported-privilege- set property on the resource http://www.example.com/papers/. The value of theDAV:acl-restrictions property. Digest authentication provides credentials for the principal operatingDAV:supported-privilege-set property is a tree of supported privileges (using "[XML Namespace , localname]" to identify each privilege): [DAV:, all] (aggregate, abstract) | +-- [DAV:, read] (aggregate) | +-- [DAV:, read-acl] (abstract) +-- [DAV:, read-current-user-privilege-set] (abstract) | +-- [DAV:, write] (aggregate) | +-- [DAV:, write-acl] (abstract) +-- [DAV:, write-properties] +-- [DAV:, write-content] | +-- [DAV:, unlock] This privilege tree is not normative (except that it reflects theclient.normative aggregation rules given in Section 3.12), and many possible privilege trees are possible. >> Request << PROPFIND /papers/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0 Authorization: Digestusername="srcarter",username="gclemm", realm="users@example.com", nonce="...", uri="/papers/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop><D:acl-restrictions/><D:supported-privilege-set/> </D:prop> </D:propfind> Clemm, et al.Expires June 22, 2004Standards Track [Page30] Internet-Draft19] RFC 3744 WebDAV Access Control ProtocolDecember 2003May 2004 >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/papers/</D:href> <D:propstat> <D:prop><D:acl-restrictions> <D:grant-only/> <D:required-principal> <D:all/> </D:required-principal> </D:acl-restrictions><D:supported-privilege-set> <D:supported-privilege> <D:privilege><D:all/></D:privilege> <D:abstract/> <D:description xml:lang="en"> Any operation </D:description> <D:supported-privilege> <D:privilege><D:read/></D:privilege> <D:description xml:lang="en"> Read any object </D:description> <D:supported-privilege> <D:privilege><D:read-acl/></D:privilege> <D:abstract/> <D:description xml:lang="en">Read ACL</D:description> </D:supported-privilege> <D:supported-privilege> <D:privilege> <D:read-current-user-privilege-set/> </D:privilege> <D:abstract/> <D:description xml:lang="en"> Read current user privilege set property </D:description> </D:supported-privilege> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:write/></D:privilege> <D:description xml:lang="en"> Write any object </D:description> <D:supported-privilege> <D:privilege><D:write-acl/></D:privilege> <D:description xml:lang="en"> Clemm, et al. Standards Track [Page 20] RFC 3744 WebDAV Access Control Protocol May 2004 Write ACL </D:description> <D:abstract/> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:write-properties/></D:privilege> <D:description xml:lang="en"> Write properties </D:description> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:write-content/></D:privilege> <D:description xml:lang="en"> Write resource content </D:description> </D:supported-privilege> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:unlock/></D:privilege> <D:description xml:lang="en"> Unlock resource </D:description> </D:supported-privilege> </D:supported-privilege> </D:supported-privilege-set> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus>5.7 DAV:inherited-acl-set This protected property contains a set of URLs that identify other resources that also control the access to this resource. To have a privilege on5.4. DAV:current-user-privilege-set DAV:current-user-privilege-set is aresource, not only must the ACL on that resource (specified in the DAV:acl property of that resource) grant the privilege, but so must the ACL of each resource identified in the DAV:inherited-acl-set property of that resource. Effectively, the privileges granted by the current ACL are ANDed with the privileges granted by each inherited ACL. <!ELEMENT inherited-acl-set (href*)> 5.8 DAV:principal-collection-set Thisprotected propertyof a resource contains acontaining the exact setof URLs that identifyof privileges (as computed by theroot collections that containserver) granted to theprincipals thatcurrently authenticated HTTP user. Aggregate privileges and their contained privileges areavailable on the server that implements this resource.listed. AWebDAV Access Control Protocol user agent coulduser-agent can use thecontentsvalue ofDAV:principal-collection-setthis property toretrieveadjust its user interface to make actions inaccessible (e.g., by graying out a menu item or button) for which theDAV:displaynamecurrent principal does not have permission. This property(specified in Section 13.2 of [RFC2518]) of all principals on that server, thereby yielding human-readable namesis also useful foreachdetermining what operations the current principalthatcan perform, without having to actually execute an operation. <!ELEMENT current-user-privilege-set (privilege*)> <!ELEMENT privilege ANY> Clemm, et al.Expires June 22, 2004Standards Track [Page31] Internet-Draft21] RFC 3744 WebDAV Access Control ProtocolDecember 2003 could be displayed in a user interface. <!ELEMENT principal-collection-set (href*)> Since different servers can control different parts of the URL namespace, different resources on the same host MAY have different DAV:principal-collection-set values. The collections specified in the DAV:principal-collection-set MAY be located on different hosts from the resource. The URLs in DAV:principal-collection-set SHOULD be http or https scheme URLs. For security and scalability reasons, a server MAY report only a subset of the entire set of known principal collections, and therefore clients should not assume they have retrieved an exhaustive listing. Additionally, a server MAY elect to report none of the principal collections it knows about, in which case the property value would be empty. The value of DAV:principal-collection-set gives the scope of the DAV:principal-property-search REPORT (defined in Section 9.4). Clients useMay 2004 If theDAV:principal-property-search REPORT to populate theircurrent userinterface withis granted alist of principals. Therefore, serversspecific privilege, thatlimit a client's ability to obtain principal information will interfere with the client's ability to manipulate access control lists, dueprivilege must belong to thedifficultyset ofgettingprivileges that may be set on this resource. Therefore, each element in theURL ofDAV:current-user- privilege-set property MUST identify aprincipal for use in an ACE. 5.8.1non-abstract privilege from the DAV:supported-privilege-set property. 5.4.1. Example: RetrievingDAV:principal-collection-set In this example,theclient requests the valueUser's Current Set of Assigned Privileges Continuing theDAV:principal-collection-setexample from Section 5.3.1, this example shows a client requesting the DAV:current-user-privilege-set propertyonfrom thecollectionresourceidentified bywith URL http://www.example.com/papers/. Theproperty contains the two URLs, http://www.example.com/acl/users/ and http:// www.example.com/acl/groups/, both wrapped in DAV:href XML elements. Digest authentication provides credentials forusername of the principaloperatingmaking theclient. The client might reasonably follow thisrequestwith two separate PROPFIND requests to retrieve the DAV:displayname property of the members of the two collections (/acl/usersis "khare", and/acl/groups). This information could be used when displaying a user interface for creating access control entries. Clemm, et al. Expires June 22, 2004 [Page 32] Internet-Draft WebDAV Access Control Protocol December 2003 >> Request << PROPFIND /papers/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0 Authorization: Digest username="yarong", realm="users@example.com", nonce="...", uri="/papers/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:principal-collection-set/> </D:prop> </D:propfind> >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/papers/</D:href> <D:propstat> <D:prop> <D:principal-collection-set> <D:href>http://www.example.com/acl/users/</D:href> <D:href>http://www.example.com/acl/groups/</D:href> </D:principal-collection-set> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus> 5.9 Example: PROPFIND to retrieve access control propertiesDigest authentication is used in the request. Thefollowing example shows how access control informationprincipal with username "khare" has been granted the DAV:read privilege. Since the DAV:read privilege contains the DAV:read-acl and DAV:read-current-user- privilege-set privileges (see Section 5.3.1), the principal with username "khare" canbe retrieved by usingread thePROPFIND method to fetchACL property, and thevalues ofDAV:current- user-privilege-set property. However, theDAV:owner, DAV:supported-privilege-set, DAV:current-user-privilege-set,DAV:all, DAV:read-acl, DAV:write-acl andDAV:acl properties. Clemm, et al. Expires June 22, 2004 [Page 33] Internet-Draft WebDAV Access Control Protocol December 2003DAV:read-current-user-privilege-set privileges are not listed in the value of DAV:current-user-privilege-set, since (for this example) they are abstract privileges. DAV:write is not listed since the principal with username "khare" is not listed in an ACE granting that principal write permission. >> Request << PROPFIND/top/container//papers/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0 Authorization: Digestusername="ejw",username="khare", realm="users@example.com",nonce="...", uri="/top/container/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:owner/> <D:supported-privilege-set/> <D:current-user-privilege-set/> <D:acl/> </D:prop> </D:propfind> >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:" xmlns:A="http://www.example.com/acl/"> <D:response> <D:href>http://www.example.com/top/container/</D:href> <D:propstat> <D:prop> <D:owner> <D:href>http://www.example.com/users/gclemm</D:href> </D:owner> <D:supported-privilege-set> <D:supported-privilege> <D:privilege><D:all/></D:privilege> <D:abstract/> <D:description xml:lang="en"> Any operation </D:description> <D:supported-privilege> <D:privilege><D:read/></D:privilege> <D:description xml:lang="en"> Read any object Clemm, et al. Expires June 22, 2004 [Page 34] Internet-Draft WebDAV Access Control Protocol December 2003 </D:description> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:write/></D:privilege> <D:abstract/> <D:description xml:lang="en"> Write any object </D:description> <D:supported-privilege> <D:privilege><A:create/></D:privilege> <D:description xml:lang="en"> Create an object </D:description> </D:supported-privilege> <D:supported-privilege> <D:privilege><A:update/></D:privilege> <D:description xml:lang="en"> Update an object </D:description> </D:supported-privilege> </D:supported-privilege> <D:supported-privilege> <D:privilege><A:delete/></D:privilege> <D:description xml:lang="en"> Delete an object </D:description> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:read-acl/></D:privilege> <D:description xml:lang="en"> Read the ACL </D:description> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:write-acl/></D:privilege> <D:description xml:lang="en"> Write the ACL </D:description> </D:supported-privilege> </D:supported-privilege> </D:supported-privilege-set> <D:current-user-privilege-set> <D:privilege><D:read/></D:privilege> <D:privilege><D:read-acl/></D:privilege> </D:current-user-privilege-set> <D:acl> <D:ace> <D:principal>nonce="...", uri="/papers/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:current-user-privilege-set/> </D:prop> </D:propfind> Clemm, et al.Expires June 22, 2004Standards Track [Page35] Internet-Draft22] RFC 3744 WebDAV Access Control ProtocolDecember 2003 <D:href>http://www.example.com/users/esedlar</D:href> </D:principal> <D:grant> <D:privilege><D:read/></D:privilege> <D:privilege><D:write/></D:privilege> <D:privilege><D:read-acl/></D:privilege> </D:grant> </D:ace> <D:ace> <D:principal> <D:href>http://www.example.com/groups/marketing</D:href> </D:principal> <D:deny> <D:privilege><D:read/></D:privilege> </D:deny> </D:ace> <D:ace> <D:principal> <D:property><D:owner/></D:property> </D:principal> <D:grant> <D:privilege><D:read-acl/></D:privilege> <D:privilege><D:write-acl/></D:privilege> </D:grant> </D:ace> <D:ace> <D:principal><D:all/></D:principal> <D:grant>May 2004 >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/papers/</D:href> <D:propstat> <D:prop> <D:current-user-privilege-set> <D:privilege><D:read/></D:privilege></D:grant> <D:inherited> <D:href>http://www.example.com/top</D:href> </D:inherited> </D:ace> </D:acl></D:current-user-privilege-set> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus> 5.5. DAV:acl This is a protected property that specifies the list of access control entries (ACEs), which define what principals are to get what privileges for this resource. <!ELEMENT acl (ace*) > Each DAV:ace element specifies the set of privileges to be either granted or denied to a single principal. If the DAV:acl property is empty, no principal is granted any privilege. <!ELEMENT ace ((principal | invert), (grant|deny), protected?, inherited?)> 5.5.1. ACE Principal The DAV:principal element identifies the principal to which this ACE applies. <!ELEMENT principal (href | all | authenticated | unauthenticated | property | self)> The current user matches DAV:href only if that user is authenticated as being (or being a member of) the principal identified by the URL contained by that DAV:href. Clemm, et al. Standards Track [Page 23] RFC 3744 WebDAV Access Control Protocol May 2004 The current user always matches DAV:all. <!ELEMENT all EMPTY> The current user matches DAV:authenticated only if authenticated. <!ELEMENT authenticated EMPTY> The current user matches DAV:unauthenticated only if not authenticated. <!ELEMENT unauthenticated EMPTY> DAV:all is the union of DAV:authenticated, and DAV:unauthenticated. For a given request, the user matches either DAV:authenticated, or DAV:unauthenticated, but not both (that is, DAV:authenticated and DAV:unauthenticated are disjoint sets). The current user matches a DAV:property principal in a DAV:acl property of a resource only if the value of theDAV:owneridentified propertyis a singleof that resource contains at most one DAV:href XMLelement containingelement, theURLURI value of DAV:href identifies a principal, and theprincipalcurrent user is authenticated as being (or being a member of) thatowns thisprincipal. For example, if the DAV:property element contained <DAV:owner/>, the current user would match the DAV:property principal only if the current user is authenticated as matching the principal identified by the DAV:owner property of the resource. <!ELEMENT property ANY> Thevaluecurrent user matches DAV:self in a DAV:acl property of theDAV:supported-privilege-set propertyresource only if that resource is atreeprincipal and that principal matches the current user or, if the principal is a group, a member ofsupported privileges (using "[XML Namespace , localname]"that group matches the current user. <!ELEMENT self EMPTY> Some servers may support ACEs applying toidentify each privilege):those users NOT matching the current principal, e.g., all users not in a particular group. This can be done by wrapping the DAV:principal element with DAV:invert. <!ELEMENT invert principal> Clemm, et al.Expires June 22, 2004Standards Track [Page36] Internet-Draft24] RFC 3744 WebDAV Access Control ProtocolDecember 2003 [DAV:, all] (aggregate, abstract) | +-- [DAV:, read] +-- [DAV:, write] (aggregate, abstract) | +-- [http://www.example.com/acl, create] +-- [http://www.example.com/acl, update] +-- [http://www.example.com/acl, delete] +-- [DAV:, read-acl] +-- [DAV:, write-acl] The DAV:current-user-privilege-set property contains two privileges, DAV:read,May 2004 5.5.2. ACE Grant andDAV:read-acl. This indicates that the current authenticated user only hasDeny Each DAV:grant or DAV:deny element specifies theabilityset of privileges to be either granted or denied toread the resource, and readtheDAV:acl property onspecified principal. A DAV:grant or DAV:deny element of theresource. TheDAV:aclproperty containsof asetresource MUST only contain non-abstract elements specified in the DAV:supported-privilege-set offour ACEs:that resource. <!ELEMENT grant (privilege+)> <!ELEMENT deny (privilege+)> <!ELEMENT privilege ANY> 5.5.3. ACE#1: The principal identified by the URL http://www.example.com/ users/esedlar is granted the DAV:read, DAV:write, and DAV:read-acl privileges.Protection A server indicates an ACE#2: The principals identifiedis protected by including theURL http://www.example.com/ groups/marketing are deniedDAV:protected element in theDAV:read privilege. In this example,ACE. If theprincipal URL identifiesACL of agroup.resource contains an ACE#3: In this ACE, the principal iswith aproperty principal, specifically the DAV:owner property. When evaluating this ACE,DAV:protected element, an attempt to remove that ACE from thevalueACL MUST fail. <!ELEMENT protected EMPTY> 5.5.4. ACE Inheritance The presence ofthe DAV:owner propertya DAV:inherited element indicates that this ACE isretrieved, andinherited from another resource that isexamined to see if it containsidentified by the URL contained in a DAV:hrefXMLelement.If so, the URL withinAn inherited ACE cannot be modified directly, but instead theDAV:href element is read, and identifies a principal. In this ACE,ACL on theownerresource from which it isgranted DAV:read-acl, and DAV:write-acl privileges. ACE #4: Thisinherited must be modified. Note that ACEgrantsinheritance is not theDAV:all principal (all users)same as ACL initialization. ACL initialization defines theDAV:read privilege. ThisACL that a newly created resource will use (if not specified). ACE inheritance refers to an ACE that isinherited fromlogically shared - where an update to the resourcehttp:// www.example.com/top,containing an ACE will affect theparent collectionACE ofthis resource. 6. ACL Evaluation WebDAVeach resource that inherits that ACE. The method by which ACLs areevaluated in similar manner as ACLs on Windows NT and in NFSv4 [RFC3530]). An ACL is evaluated to determine whetherinitialized ornot access will be granted for a WebDAV request.by which ACEs aremaintained in a particular order, and are evaluated until all of the permissions requiredinherited is not defined by this document. <!ELEMENT inherited (href)> 5.5.5. Example: Retrieving a Resource's Access Control List Continuing thecurrent request have been granted, at which point the ACL evaluation is terminatedexample from Sections 5.3.1 andaccess is granted. If, during ACL evaluation,5.4.1, this example shows a<deny> ACE (matchingclient requesting thecurrent user) is encountered for a privilege which has not yet been granted,DAV:acl property from theACL evaluation is terminated and access is denied. Failure to have all required privileges granted resultsresource with URL http://www.example.com/papers/. There are two ACEs defined inaccess being denied.this ACL: Clemm, et al.Expires June 22, 2004Standards Track [Page37] Internet-Draft25] RFC 3744 WebDAV Access Control ProtocolDecember 2003 Note that the semanticsMay 2004 ACE #1: The group identified by URL http://www.example.com/acl/ groups/maintainers (the group ofmany other existing ACL systems may be represented viasite maintainers) is granted DAV:write privilege. Since (for thismechanism, by mixing deny and grant ACEs. For example, considerexample) DAV:write contains thestandard "rwx"DAV:write-acl privilegescheme used by UNIX. In(see Section 5.3.1), thisscheme, if the current user ismeans theowner of"maintainers" group can also modify thefile,accessiscontrol list. ACE #2: All principals (DAV:all) are grantedifthecorresponding privilege bit is setDAV:read privilege. Since (for this example) DAV:read contains DAV:read-acl anddenied if not set, regardlessDAV:read-current-user-privilege-set, this means all users (including all members of thepermissions set on"maintainers" group) can read thefile's groupDAV:acl property andfortheworld. An ACL for UNIX permissions of "r--rw-r--" might be constructed like:DAV:current-user-privilege-set property. >> Request << PROPFIND /papers/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0 Authorization: Digest username="masinter", realm="users@example.com", nonce="...", uri="/papers/", response="...", opaque="..." <D:propfind xmlns:D="DAV:"> <D:prop> <D:acl/> </D:prop> </D:propfind> >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/papers/</D:href> <D:propstat> <D:prop> <D:acl> <D:ace> <D:principal><D:property><D:owner/></D:property> </D:principal> <D:grant> <D:privilege><D:read/></D:privilege> </D:grant> </D:ace> <D:ace> <D:principal> <D:property><D:owner/></D:property> </D:principal> <D:deny> <D:privilege><D:all/></D:privilege> </D:deny> </D:ace> <D:ace> <D:principal> <D:property><D:group/></D:property><D:href >http://www.example.com/acl/groups/maintainers</D:href> </D:principal> <D:grant><D:privilege><D:read/></D:privilege><D:privilege><D:write/></D:privilege></D:grant> </D:ace> <D:ace> <D:principal> <D:property><D:group/></D:property> </D:principal> <D:deny> <D:privilege><D:all/></D:privilege> </D:deny> </D:ace> <D:ace> <D:principal><D:all></D:principal> <D:grant> <D:privilege><D:read/></D:privilege> </D:grant>Clemm, et al.Expires June 22, 2004Standards Track [Page38] Internet-Draft26] RFC 3744 WebDAV Access Control ProtocolDecember 2003May 2004 </D:grant> </D:ace></D:acl> and the <acl-restrictions> would be defined as: <D:no-invert/> <D:required-principal><D:ace> <D:principal> <D:all/><D:property><D:owner/></D:property> <D:property><D:group/><D:group/> </D:required-principal> Note that the client can still get errors from a UNIX server in spite of obeying the <acl-restrictions>, including <D:allowed-principal> (adding an ACE specifying a principal other than the ones in the ACL above) or <D:ace-conflict> (by trying to reorder the ACEs in the example above), as these particular implementation semantics are too complex to be captured with the simple (but general) declarative restrictions. 7. Access Control and existing methods</D:principal> <D:grant> <D:privilege><D:read/></D:privilege> </D:grant> </D:ace> </D:acl> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus> 5.6. DAV:acl-restrictions Thissectionprotected property defines theimpacttypes ofaccess control functionality on existing methods. 7.1 Any HTTP method 7.1.1 Error Handling The WebDAVACLs supported by this server, to avoid clients needlessly getting errors. When a client tries to set an ACLmechanism requiresvia theusage of HTTP method "preconditions" as described in section 1.6 of RFC3253 for ALL HTTP methods. All HTTP methods have an additional precondition called DAV:need-privileges. If an HTTP method fails due to insufficient privileges,ACL method, theresponse bodyserver may reject the attempt to set the"403 Forbidden" error MUST containACL as specified. The following properties indicate the<DAV:error> element, which in turn containsrestrictions the<DAV:need-privileges> element, which contains one or more <DAV:resource> elements indicatingclient must observe before setting an ACL: <grant-only> Deny ACEs are not supported <no-invert> Inverted ACEs are not supported <deny-before-grant> All deny ACEs must occur before any grant ACEs <required-principal> Indicates whichresource had insufficient privileges, and what the lacking privileges were:principals are required to be present <!ELEMENTneed-privileges (resource)* >acl-restrictions (grant-only?, no-invert?, deny-before-grant?, required-principal?)> 5.6.1. DAV:grant-only This element indicates that ACEs with deny clauses are not allowed. <!ELEMENTresource ( href , privilege ) > Since some methods require multiple permissions on multiple resources, this information is needed to resolve any ambiguity. There is no requirementgrant-only EMPTY> Clemm, et al. Standards Track [Page 27] RFC 3744 WebDAV Access Control Protocol May 2004 5.6.2. DAV:no-invert ACE Constraint This element indicates thatall privilege violations be reported - for implementation reasons, some servers may only reportACEs with the <invert> element are not allowed. <!ELEMENT no-invert EMPTY> 5.6.3. DAV:deny-before-grant This element indicates that all deny ACEs must precede all grant ACEs. <!ELEMENT deny-before-grant EMPTY> 5.6.4. Required Principals The required principal elements identify which principals must have an ACE defined in thefirst privilege violation.ACL. <!ELEMENT required-principal (all? | authenticated? | unauthenticated? | self? | href* | property*)> Forexample: Clemm, et al. Expires June 22, 2004 [Page 39] Internet-Draft WebDAV Access Control Protocol December 2003 >> Request << MOVE /a/b/ HTTP/1.1 Host: www.example.com Destination: http://www.example.com/c/d >> Response << HTTP/1.1 403 Forbidden Content-Type: text/xml; charset="utf-8" Content-Length: xxx <D:error xmlns:D="DAV:"> <D:need-privileges> <D:resource> <D:href>/a</D:href> <D:privilege><D:unbind/></D:privilege> </D:resource> <D:resource> <D:href>/c</D:href> <D:privilege><D:bind/></D:privilege> </D:resource> </D:need-privileges> </D:error> 7.2 OPTIONS Ifexample, theserver supports access control, it MUST return "access-control" asfollowing element requires that the ACL contain afield inDAV:owner property ACE: <D:required-principal xmlns:D="DAV:"> <D:property><D:owner/></D:property> </D:required-principal> 5.6.5. Example: Retrieving DAV:acl-restrictions In this example, the client requests theDAV response header from an OPTIONS request on any resource implemented by that server. Avalue of"access-control" intheDAV header MUST indicate thatDAV:acl- restrictions property. Digest authentication provides credentials for theserver supports all MUST level requirements and REQUIRED features specified in this document. 7.2.1 Example - OPTIONSprincipal operating the client. >> Request <<OPTIONS /foo.htmlPROPFIND /papers/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0>> Response << HTTP/1.1 200 OK DAV: 1, 2, access-control Allow: OPTIONS, GET, PUT, PROPFIND, PROPPATCH, ACLAuthorization: Digest username="srcarter", realm="users@example.com", nonce="...", uri="/papers/", response="...", opaque="..." Clemm, et al.Expires June 22, 2004Standards Track [Page40] Internet-Draft28] RFC 3744 WebDAV Access Control ProtocolDecember 2003 In this example, the OPTIONS response indicatesMay 2004 <?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:acl-restrictions/> </D:prop> </D:propfind> >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/papers/</D:href> <D:propstat> <D:prop> <D:acl-restrictions> <D:grant-only/> <D:required-principal> <D:all/> </D:required-principal> </D:acl-restrictions> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus> 5.7. DAV:inherited-acl-set This protected property contains a set of URLs thatthe server supports access control andidentify other resources that/foo.html can have its accessalso controllist modified bytheACL method. 7.3 MOVE When a resource is moved from one location to another dueaccess to this resource. To have aMOVE request,privilege on a resource, not only must thenon-inherited and non-protected ACEsACL on that resource (specified in the DAV:acl property of that resource) grant theresource MUST NOT be modified, orprivilege, but so must theMOVE request fails. HandlingACL ofinherited and protected ACEs is intentionally undefined to give server implementations flexibility in how they implement ACE inheritance and protection. 7.4 COPY The DAV:acl property on theeach resourceatidentified in thedestinationDAV:inherited-acl-set property ofa COPY MUST be the same as ifthat resource. Effectively, theresource was createdprivileges granted byan individual resource creation request (e.g. MKCOL, PUT). Clients wishing to preserve the DAV:acl property across a copy need to read the DAV:acl property prior totheCOPY, then perform ancurrent ACLoperation on the new resource at the destination to restore, insofar as this is possible, the original access control list. 7.5 LOCK A lock on a resource ensures that only the lock owner can modify ACEs that are not inherited and not protected (thesearethe only ACEs that a client can modifyANDed withan ACL request). A lock does not protectthe privileges granted by each inheritedorACL. <!ELEMENT inherited-acl-set (href*)> Clemm, et al. Standards Track [Page 29] RFC 3744 WebDAV Access Control Protocol May 2004 5.8. DAV:principal-collection-set This protectedACEs, sinceproperty of aclient cannot modify them with an ACL requestresource contains a set of URLs that identify the root collections that contain the principals that are available on the server that implements this resource.8.A WebDAV Access ControlMethods 8.1 ACL The ACL method modifies the access control list (which can be read viaProtocol user agent could use theDAV:acl property)contents ofa resource. Specifically, the ACL method only permits modification to ACEs that are not inherited, and are not protected. An ACL method invocation modifies all non-inherited and non-protected ACEs in a resource's access control listDAV:principal-collection-set toexactly match the ACEs contained within inretrieve theDAV:acl XML elementDAV:displayname property (specified in Section5.5)13.2 ofthe request body. An ACL request body MUST contain only one DAV:acl XML element. Unless the non-inherited and non-protected ACEs[RFC2518]) ofthe DAV:acl propertyall principals on that server, thereby yielding human-readable names for each principal that could be displayed in a user interface. <!ELEMENT principal-collection-set (href*)> Since different servers can control different parts of theresource can be updated to be exactlyURL namespace, different resources on thevaluesame host MAY have different DAV:principal-collection-set values. The collections specified in theACL request,DAV:principal-collection-set MAY be located on different hosts from theACL request MUST fail. It is possible thatresource. The URLs in DAV:principal-collection-set SHOULD be http or https scheme URLs. For security and scalability reasons, a server MAY report only a subset of theACEs visibleentire set of known principal collections, and therefore clients should not assume they have retrieved an exhaustive listing. Additionally, a server MAY elect to report none of thecurrent userprincipal collections it knows about, in which case theClemm, et al. Expires June 22, 2004 [Page 41] Internet-Draft WebDAV Access Control Protocol December 2003 DAV:aclpropertymay onlyvalue would bea portionempty. The value of DAV:principal-collection-set gives thecomplete setscope ofACEs on that resource. If this isthecase, an ACL request only modifies the set of ACEs visible toDAV:principal-property-search REPORT (defined in Section 9.4). Clients use thecurrent user, and does not affect any non-visible ACE. In orderDAV:principal-property-search REPORT toavoid overwriting DAV:acl changes by another client, a client SHOULD acquirepopulate their user interface with aWebDAV lock on the resource before retrieving the DAV:acl propertylist ofa resourceprincipals. Therefore, servers thatit intends on updating. Implementation Note: Two common operations are to add or remove an ACE from an existing access control list. To accomplish this,limit aclient uses the PROPFIND methodclient's ability toretrieve the value of the DAV:acl property, then parsesobtain principal information will interfere with thereturnedclient's ability to manipulate access controllistlists, due toremove all inherited and protected ACEs (these ACEs are tagged with the DAV:inherited and DAV:protected XML elements). In the remaining set of non-inherited, non-protected ACEs, the client can add or remove one or more ACEs before submitting the final ACE set in the request body of the ACL method. 8.1.1 ACL Preconditions An implementation MUST enforcethefollowing constraints on an ACL request. If the constraint is violated, a 403 (Forbidden) or 409 (Conflict) response MUST be returned and the indicated XML element MUST be returned as a childdifficulty of getting the URL of atop level DAV:error elementprincipal for use in anXML response body. Though these status elements are generally expressed as empty XML elements (and are defined as EMPTY inACE. 5.8.1. Example: Retrieving DAV:principal-collection-set In this example, theDTD), implementations MAY return additional descriptive XML elements as children ofclient requests thestatus element. Clients MUST be able to accept childrenvalue ofthese status elements. Clients that do not understandtheadditional XML elements should ignore them. (DAV:no-ace-conflict): The ACEs submitted inDAV:principal- collection-set property on theACL request MUST NOT conflict with each other. This is a catchall error code indicating that an implementation-specific ACL restriction has been violated. (DAV:no-protected-ace-conflict):collection resource identified by URL http://www.example.com/papers/. TheACEs submittedproperty contains the two URLs, http://www.example.com/acl/users/ and http:// www.example.com/acl/groups/, both wrapped in DAV:href XML elements. Digest authentication provides credentials for theACLprincipal operating the client. Clemm, et al. Standards Track [Page 30] RFC 3744 WebDAV Access Control Protocol May 2004 The client might reasonably follow this requestMUST NOT conflictwith two separate PROPFIND requests to retrieve theprotected ACEs onDAV:displayname property of theresource. For example, ifmembers of theresource hastwo collections (/acl/users and /acl/groups). This information could be used when displaying aprotected ACE granting DAV:writeuser interface for creating access control entries. >> Request << PROPFIND /papers/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0 Authorization: Digest username="yarong", realm="users@example.com", nonce="...", uri="/papers/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:principal-collection-set/> </D:prop> </D:propfind> >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/papers/</D:href> <D:propstat> <D:prop> <D:principal-collection-set> <D:href>http://www.example.com/acl/users/</D:href> <D:href>http://www.example.com/acl/groups/</D:href> </D:principal-collection-set> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus> Clemm, et al. Standards Track [Page 31] RFC 3744 WebDAV Access Control Protocol May 2004 5.9. Example: PROPFIND toa given principal, then it would notretrieve access control properties The following example shows how access control information can beconsistent ifretrieved by using theACL request submitted an ACE denying DAV:writePROPFIND method to fetch thesame principal. (DAV:no-inherited-ace-conflict): The ACEs submitted in the ACL request MUST NOT conflict withvalues of theinherited ACEs onDAV:owner, DAV:supported-privilege-set, DAV:current-user-privilege- set, and DAV:acl properties. >> Request << PROPFIND /top/container/ HTTP/1.1 Host: www.example.com Content-type: text/xml; charset="utf-8" Content-Length: xxx Depth: 0 Authorization: Digest username="ejw", realm="users@example.com", nonce="...", uri="/top/container/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:owner/> <D:supported-privilege-set/> <D:current-user-privilege-set/> <D:acl/> </D:prop> </D:propfind> >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:" xmlns:A="http://www.example.com/acl/"> <D:response> <D:href>http://www.example.com/top/container/</D:href> <D:propstat> <D:prop> <D:owner> <D:href>http://www.example.com/users/gclemm</D:href> </D:owner> <D:supported-privilege-set> <D:supported-privilege> <D:privilege><D:all/></D:privilege> <D:abstract/> Clemm, et al. Standards Track [Page 32] RFC 3744 WebDAV Access Control Protocol May 2004 <D:description xml:lang="en"> Any operation </D:description> <D:supported-privilege> <D:privilege><D:read/></D:privilege> <D:description xml:lang="en"> Read any object </D:description> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:write/></D:privilege> <D:abstract/> <D:description xml:lang="en"> Write any object </D:description> <D:supported-privilege> <D:privilege><A:create/></D:privilege> <D:description xml:lang="en"> Create an object </D:description> </D:supported-privilege> <D:supported-privilege> <D:privilege><A:update/></D:privilege> <D:description xml:lang="en"> Update an object </D:description> </D:supported-privilege> </D:supported-privilege> <D:supported-privilege> <D:privilege><A:delete/></D:privilege> <D:description xml:lang="en"> Delete an object </D:description> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:read-acl/></D:privilege> <D:description xml:lang="en"> Read theresource. For example, ifACL </D:description> </D:supported-privilege> <D:supported-privilege> <D:privilege><D:write-acl/></D:privilege> <D:description xml:lang="en"> Write theresource inherits an ACE from its parentACL </D:description> </D:supported-privilege> </D:supported-privilege> </D:supported-privilege-set> Clemm, et al. Standards Track [Page 33] RFC 3744 WebDAV Access Control Protocol May 2004 <D:current-user-privilege-set> <D:privilege><D:read/></D:privilege> <D:privilege><D:read-acl/></D:privilege> </D:current-user-privilege-set> <D:acl> <D:ace> <D:principal> <D:href>http://www.example.com/users/esedlar</D:href> </D:principal> <D:grant> <D:privilege><D:read/></D:privilege> <D:privilege><D:write/></D:privilege> <D:privilege><D:read-acl/></D:privilege> </D:grant> </D:ace> <D:ace> <D:principal> <D:href>http://www.example.com/groups/mrktng</D:href> </D:principal> <D:deny> <D:privilege><D:read/></D:privilege> </D:deny> </D:ace> <D:ace> <D:principal> <D:property><D:owner/></D:property> </D:principal> <D:grant> <D:privilege><D:read-acl/></D:privilege> <D:privilege><D:write-acl/></D:privilege> </D:grant> </D:ace> <D:ace> <D:principal><D:all/></D:principal> <D:grant> <D:privilege><D:read/></D:privilege> </D:grant> <D:inherited> <D:href>http://www.example.com/top</D:href> </D:inherited> </D:ace> </D:acl> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus> Clemm, et al.Expires June 22, 2004Standards Track [Page42] Internet-Draft34] RFC 3744 WebDAV Access Control ProtocolDecember 2003 collection granting DAV:write toMay 2004 The value of the DAV:owner property is agiven principal, then it would not be consistent ifsingle DAV:href XML element containing theACL request submitted an ACE denying DAV:write toURL of thesame principal. Noteprincipal thatreporting of this error will be implementation-dependent. Implementations MUST either reportowns thiserror or allowresource. The value of theACEDAV:supported-privilege-set property is a tree of supported privileges (using "[XML Namespace , localname]" tobe set,identify each privilege): [DAV:, all] (aggregate, abstract) | +-- [DAV:, read] +-- [DAV:, write] (aggregate, abstract) | +-- [http://www.example.com/acl, create] +-- [http://www.example.com/acl, update] +-- [http://www.example.com/acl, delete] +-- [DAV:, read-acl] +-- [DAV:, write-acl] The DAV:current-user-privilege-set property contains two privileges, DAV:read, andthen let normal ACE evaluation rules determine whetherDAV:read-acl. This indicates that thenew ACEcurrent authenticated user only hasany impact ontheprivileges availableability toa specific principal. (DAV:limited-number-of-aces): The number of ACEs submitted inread theACL request MUST NOT exceedresource, and read thenumber of ACEs allowedDAV:acl property onthatthe resource.However, ACL-compliant servers MUST support at least one ACE granting privileges toThe DAV:acl property contains asingle principal,set of four ACEs: ACE #1: The principal identified by the URL http://www.example.com/ users/esedlar is granted the DAV:read, DAV:write, andoneDAV:read-acl privileges. ACEgranting privileges to#2: The principals identified by the URL http://www.example.com/ groups/mrktng are denied the DAV:read privilege. In this example, the principal URL identifies a group.(DAV:deny-before-grant): All non-inherited deny ACEs MUST precede all non-inherited grant ACEs. (DAV:grant-only): The ACEs submitted inACE #3: In this ACE, theACL request MUST NOT includeprincipal is adeny ACE. This precondition applies only whenproperty principal, specifically theACL restrictions ofDAV:owner property. When evaluating this ACE, theresource includevalue of theDAV:grant-only constraint (defined in Section 5.6.1). (DAV:no-invert): The ACL request MUST NOT includeDAV:owner property is retrieved, and is examined to see if it contains aDAV:invertDAV:href XML element. If so, the URL within the DAV:href element is read, and identifies a principal. In this ACE, the owner is granted DAV:read-acl, and DAV:write-acl privileges. ACE #4: Thisprecondition applies only whenACE grants theACL semantics ofDAV:all principal (all users) the DAV:read privilege. This ACE is inherited from the resourceincludeshttp:// www.example.com/top, theDAV:no-invert constraint (definedparent collection of this resource. Clemm, et al. Standards Track [Page 35] RFC 3744 WebDAV Access Control Protocol May 2004 6. ACL Evaluation WebDAV ACLs are evaluated inSection 5.6.2). (DAV:no-abstract): Thesimilar manner as ACLs on Windows NT and in NFSv4 [RFC3530]). An ACLrequest MUST NOT attemptis evaluated tograntdetermine whether ordeny an abstract privilege (see Section 5.3). (DAV:not-supported-privilege): Thenot access will be granted for a WebDAV request. ACEssubmittedare maintained in a particular order, and are evaluated until all of theACL request MUST be supportedpermissions required by theresource. (DAV:missing-required-principal): The result of the ACLcurrent requestMUSThave been granted, atleast one ACE for each principal identified in a DAV:required-principal XML element inwhich point the ACLsemantics of that resource (see Section 5.5). (DAV:recognized-principal): Every principal URL in theevaluation is terminated and access is granted. If, during ACLrequest MUST identifyevaluation, aprincipal resource. (DAV:allowed-principal): The principals specified in the ACEs submitted in<deny> ACE (matching theACL request MUST be allowed as principalscurrent user) is encountered forthe resource. For example,aserver where only authenticated principals can access resources wouldprivilege which has notallowyet been granted, theDAV:all or DAV:unauthenticated principalsACL evaluation is terminated and access is denied. Failure tobe usedhave all required privileges granted results inan ACE, since these would allow unauthenticatedaccessto resources. Clemm, et al. Expires June 22, 2004 [Page 43] Internet-Draft WebDAV Access Control Protocol December 2003 8.1.2 Example:being denied. Note that the semantics of many other existing ACLmethod In the following example, user "fielding", authenticatedsystems may be represented via this mechanism, byinformation in the Authorization header, grantsmixing deny and grant ACEs. For example, consider theprincipal identifiedstandard "rwx" privilege scheme used by UNIX. In this scheme, if theURL http://www.example.com/users/esedlar (i.e., thecurrent user"esedlar") read and write privileges, grantsis the owner of theresource read-aclfile, access is granted if the corresponding privilege bit is set andwrite-acl privileges,denied if not set, regardless of the permissions set on the file's group andgrants everyone read privileges. >> Request <<for the world. An ACL/top/container/ HTTP/1.1 Host: www.example.com Content-Type: text/xml; charset="utf-8" Content-Length: xxxx Authorization: Digest username="fielding", realm="users@example.com", nonce="...", uri="/top/container/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:">for UNIX permissions of "r--rw-r--" might be constructed like: <D:acl> <D:ace> <D:principal><D:href>http://www.example.com/users/esedlar</D:href><D:property><D:owner/></D:property> </D:principal> <D:grant> <D:privilege><D:read/></D:privilege><D:privilege><D:write/></D:privilege></D:grant> </D:ace> <D:ace> <D:principal> <D:property><D:owner/></D:property> </D:principal><D:grant> <D:privilege><D:read-acl/></D:privilege> <D:privilege><D:write-acl/></D:privilege> </D:grant><D:deny> <D:privilege><D:all/></D:privilege> </D:deny> </D:ace> <D:ace><D:principal><D:all/></D:principal><D:principal> <D:property><D:group/></D:property> </D:principal> <D:grant> <D:privilege><D:read/></D:privilege> <D:privilege><D:write/></D:privilege> </D:grant> </D:ace></D:acl>Clemm, et al.Expires June 22, 2004Standards Track [Page44] Internet-Draft36] RFC 3744 WebDAV Access Control ProtocolDecember 2003 >> Response << HTTP/1.1 200 OK 8.1.3 Example: ACL method failure due to protected ACE conflict In the following request, user "fielding", authenticated by information in the Authorization header, attempts to deny the principal identified by the URL http://www.example.com/users/esedlar (i.e., the user "esedlar") write privileges. Prior to the request, the DAV:acl property on the resource contained a protected ACE (see Section 5.5.3) granting DAV:owner the DAV:read and DAV:write privileges. The principal identified by URL http://www.example.com/ users/esedlar is the owner of the resource. The ACL method invocation fails because the submitted ACE conflicts with the protected ACE, thus violating the semantics of ACE protection. >> Request << ACL /top/container/ HTTP/1.1 Host: www.example.com Content-Type: text/xml; charset="utf-8" Content-Length: xxxx Authorization: Digest username="fielding", realm="users@example.com", nonce="...", uri="/top/container/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:">May 2004 <D:ace> <D:principal><D:href>http://www.example.com/users/esedlar</D:href><D:property><D:group/></D:property> </D:principal> <D:deny><D:privilege><D:write/></D:privilege><D:privilege><D:all/></D:privilege> </D:deny> </D:ace> <D:ace> <D:principal><D:all></D:principal> <D:grant> <D:privilege><D:read/></D:privilege> </D:grant> </D:ace> </D:acl>Clemm, et al. Expires June 22, 2004 [Page 45] Internet-Draft WebDAV Access Control Protocol December 2003 >> Response << HTTP/1.1 403 Forbidden Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:error xmlns:D="DAV:"> <D:no-protected-ace-conflict/> </D:error> 8.1.4 Example: ACL method failure due to an inherited ACE conflict In the following request, user "ejw", authenticated by information in the Authorization header, tries to change the access control list onand theresource http://www.example.com/top/index.html. This resource has two inherited ACEs. Inherited ACE #1 grants<acl-restrictions> would be defined as: <D:no-invert/> <D:required-principal> <D:all/> <D:property><D:owner/></D:property> <D:property><D:group/><D:group/> </D:required-principal> Note that theprincipal identified by URL http:// www.example.com/users/ejw (i.e.,client can still get errors from a UNIX server in spite of obeying theuser "ejw") http:// www.example.com/privs/write-all and DAV:read-acl privileges. On this server, http://www.example.com/privs/write-all is<acl-restrictions>, including <D:allowed-principal> (adding anaggregate privilege containing DAV:write, and DAV:write-acl. InheritedACE#2 grantsspecifying a principalDAV:allother than theDAV:read privilege. The request attemptsones in the ACL above) or <D:ace-conflict> (by trying toset a (non-inherited) ACE, denyingreorder theprincipal identified byACEs in theURL http://www.example.com/users/ejw (i.e.,example above), as these particular implementation semantics are too complex to be captured with theuser "ejw") DAV:write permission.simple (but general) declarative restrictions. 7. Access Control and existing methods Thisconflicts with inherited ACE #1. Note thatsection defines thedecision to reportimpact of access control functionality on existing methods. 7.1. Any HTTP method 7.1.1. Error Handling The WebDAV ACL mechanism requires the usage of HTTP method "preconditions" as described in section 1.6 of RFC3253 for ALL HTTP methods. All HTTP methods have aninherited ACE conflict is specificadditional precondition called DAV:need-privileges. If an HTTP method fails due tothis server implementation. Another server implementation could have allowedinsufficient privileges, thenew ACEresponse body tobe set,the "403 Forbidden" error MUST contain the <DAV:error> element, which in turn contains the Clemm, et al. Standards Track [Page 37] RFC 3744 WebDAV Access Control Protocol May 2004 <DAV:need-privileges> element, which contains one or more <DAV:resource> elements indicating which resource had insufficient privileges, andthen used normal ACE evaluation ruleswhat the lacking privileges were: <!ELEMENT need-privileges (resource)* > <!ELEMENT resource ( href , privilege ) > Since some methods require multiple permissions on multiple resources, this information is needed todetermine whether the new ACE hasresolve anyimpact onambiguity. There is no requirement that all privilege violations be reported - for implementation reasons, some servers may only report theprivileges available to a principal. Clemm, et al. Expires June 22, 2004 [Page 46] Internet-Draft WebDAV Access Control Protocol December 2003first privilege violation. For example: >> Request <<ACL /top/index.htmlMOVE /a/b/ HTTP/1.1 Host: www.example.comContent-Type: text/xml; charset="utf-8" Content-Length: xxxx Authorization: Digest username="ejw", realm="users@example.com", nonce="...", uri="/top/index.html", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:" xmlns:F="http://www.example.com/privs/"> <D:ace> <D:principal> <D:href>http://www.example.com/users/ejw</D:href> </D:principal> <D:grant><D:write/></D:grant> </D:ace> </D:acl>Destination: http://www.example.com/c/d >> Response << HTTP/1.1 403 Forbidden Content-Type: text/xml; charset="utf-8" Content-Length: xxx<?xml version="1.0" encoding="utf-8" ?><D:error xmlns:D="DAV:"><D:no-inherited-ace-conflict/><D:need-privileges> <D:resource> <D:href>/a</D:href> <D:privilege><D:unbind/></D:privilege> </D:resource> <D:resource> <D:href>/c</D:href> <D:privilege><D:bind/></D:privilege> </D:resource> </D:need-privileges> </D:error>8.1.5 Example: ACL method failure due to an attempt to set grant and deny in7.2. OPTIONS If the server supports access control, it MUST return "access- control" as asingle ACE In this example, user "ygoland", authenticated by informationfield in theAuthorization header, tries to change the access control listDAV response header from an OPTIONS request ontheany resourcehttp://www.example.com/diamond/engagement-ring.gif. The ACL request includes a single, syntactically and semantically incorrect ACE, which attempts to grant the group identifiedimplemented by that server. A value of "access-control" in theURL http:// www.example.com/users/friends DAV:read privilege and deny the principal identified by URL http://www.example.com/users/ygoland-so (i.e.,DAV header MUST indicate that theuser "ygoland-so") DAV:read privilege. However, it is illegal to have multiple principal elements, as well as both a grantserver supports all MUST level requirements anddeny elementREQUIRED features specified inthe same ACE, so the request fails due to poor syntax.this document. Clemm, et al.Expires June 22, 2004Standards Track [Page47] Internet-Draft38] RFC 3744 WebDAV Access Control ProtocolDecember 2003May 2004 7.2.1. Example - OPTIONS >> Request <<ACL /diamond/engagement-ring.gifOPTIONS /foo.html HTTP/1.1 Host: www.example.comContent-Type: text/xml; charset="utf-8"Content-Length:xxxx Authorization: Digest username="ygoland", realm="users@example.com", nonce="...", uri="/diamond/engagement-ring.gif", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:"> <D:ace> <D:principal> <D:href>http://www.example.com/users/friends</D:href> </D:principal> <D:grant><D:read/></D:grant> <D:principal> <D:href>http://www.example.com/users/ygoland-so</D:href> </D:principal> <D:deny><D:read/></D:deny> </D:ace> </D:acl>0 >> Response << HTTP/1.1400 Bad Request Content-Length: 0 Note200 OK DAV: 1, 2, access-control Allow: OPTIONS, GET, PUT, PROPFIND, PROPPATCH, ACL In this example, the OPTIONS response indicates thatiftherequest had been divided into two ACEs, one to grant,server supports access control and that /foo.html can have its access control list modified by the ACL method. 7.3. MOVE When a resource is moved from one location to another due todeny, the request would have been syntactically well formed. 9. Access Control Reports 9.1 REPORT Method The REPORT method (defined in Section 3.6 of [RFC3253]) provides an extensible mechanism for obtaining information aboutaresource. UnlikeMOVE request, thePROPFIND method, which returnsnon-inherited and non-protected ACEs in thevalueDAV:acl property ofonethe resource MUST NOT be modified, ormore named properties,theREPORT method can involve more complex processing. REPORTMOVE request fails. Handling of inherited and protected ACEs isvaluableintentionally undefined to give server implementations flexibility incases wherehow they implement ACE inheritance and protection. 7.4. COPY The DAV:acl property on theserver has access to allresource at the destination of a COPY MUST be theinformation neededsame as if the resource was created by an individual resource creation request (e.g., MKCOL, PUT). Clients wishing to preserve the DAV:acl property across a copy need to read the DAV:acl property prior to the COPY, then perform an ACL operation on thecomplex request (suchnew resource at the destination to restore, insofar as this is possible, the original access control list. 7.5. LOCK A lock on aquery),resource ensures that only the lock owner can modify ACEs that are not inherited andwhere it would require multiple requests fornot protected (these are the only ACEs that a clientto retrieve the information needed to perform the same request.can modify with an ACL request). A lock does not protect inherited or protected ACEs, since a client cannot modify them with an ACL request on that resource. Clemm, et al.Expires June 22, 2004Standards Track [Page48] Internet-Draft39] RFC 3744 WebDAV Access Control ProtocolDecember 2003 A server that supports the WebDAVMay 2004 8. Access ControlProtocol MUST support the DAV:expand-property report (defined in Section 3.8 of [RFC3253]). 9.2 DAV:acl-principal-prop-set ReportMethods 8.1. ACL TheDAV:acl-principal-prop-set report returns, for all principals in the DAV:acl property (ofACL method modifies theRequest-URI) that are identified by http(s) URLs or by a DAV:property principal,access control list (which can be read via thevalueDAV:acl property) ofthe properties specified in the REPORT request body. In the case whereaprincipal URL appears multiple times, the DAV:acl-principal-prop-set report MUST returnresource. Specifically, theproperties for that principalACL method onlyonce. Support for this report is REQUIRED. One expected use of this report ispermits modification toretrieve the human readable name (found in the DAV:displayname property) of each principal found in an ACL. This is useful for constructing user interfacesACEs thatshow each ACEare not inherited, and are not protected. An ACL method invocation modifies all non- inherited and non-protected ACEs in ahuman readable form. Marshalling Theresource's access control list to exactly match the ACEs contained within in the DAV:acl XML element (specified in Section 5.5) of the request body. An ACL request body MUSTbe a DAV:acl-principal-prop-setcontain only one DAV:acl XML element.<!ELEMENT acl-principal-prop-set ANY> ANY value: a sequenceUnless the non-inherited and non-protected ACEs ofone or more elements, with at most one DAV:prop element. prop: see RFC 2518, Section 12.11 This report is only defined whentheDepth header has value "0"; other values result in a 400 (Bad Request) error response. Note that [RFC3253], Section 3.6, states that ifDAV:acl property of theDepth header is not present, it defaultsresource can be updated toabe exactly the valueof "0". The response body for a successfulspecified in the ACL request, the ACL request MUSTbe a DAV:multistatus XML element (i.e., the response usesfail. It is possible that thesame format asACEs visible to theresponse for PROPFIND). Incurrent user in thecase where there are no response elements,DAV:acl property may only be a portion of thereturned multistatus XML elementcomplete set of ACEs on that resource. If this isempty. multistatus: see RFC 2518, Section 12.9 The response body for a successful DAV:acl-principal-prop-set REPORTthe case, an ACL requestMUST contain a DAV:response element for each principal identifiedonly modifies the set of ACEs visible to the current user, and does not affect any non-visible ACE. In order to avoid overwriting DAV:acl changes byan http(s) URL listed inanother client, aDAV:principal XML element of an ACE withinclient SHOULD acquire a WebDAV lock on the resource before retrieving the DAV:acl property ofthea resourceidentified bythat it intends on updating. Implementation Note: Two common operations are to add or remove an ACE from an existing access control list. To accomplish this, a client uses theRequest-URI. Postconditions: Clemm, et al. Expires June 22, 2004 [Page 49] Internet-Draft WebDAV Access Control Protocol December 2003 (DAV:number-of-matches-within-limits): The numberPROPFIND method to retrieve the value ofmatching principals must fall within server-specific, predefined limits. For example, this condition might be triggered if a search specification would causethereturnDAV:acl property, then parses the returned access control list to remove all inherited and protected ACEs (these ACEs are tagged with the DAV:inherited and DAV:protected XML elements). In the remaining set ofan extremely large numbernon-inherited, non-protected ACEs, the client can add or remove one or more ACEs before submitting the final ACE set in the request body ofresponses. 9.2.1 Example: DAV:acl-principal-prop-set Report Resource http://www.example.com/index.html hasthe ACL method. 8.1.1. ACL Preconditions An implementation MUST enforce the following constraints on an ACLwith three ACEs: ACE #1: All principals (DAV:all) have DAV:read and DAV:read-current-user-privilege-set access. ACE #2: The principal identified by http://www.example.com/people/ gstein (the user "gstein") is granted DAV:write, DAV:write-acl, DAV:read-acl privileges. ACE #3: The group identified by http://www.example.com/groups/authors (the "authors" group)request. If the constraint isgranted DAV:write and DAV:read-acl privileges. The following example showsviolated, aDAV:acl-principal-prop-set report requesting403 (Forbidden) or 409 (Conflict) response MUST be returned and theDAV:displayname property. It returnsindicated XML element MUST be returned as a child of a top level DAV:error element in an XML response body. Though these status elements are generally expressed as empty XML elements (and are defined as EMPTY in thevalueDTD), implementations MAY return additional descriptive XML elements as children ofDAV:displayname for resources http://www.example.com/people/gstein and http://www.example.com/groups/authors , but not for DAV:all, since this is not an http(s) URL. >> Request << REPORT /index.html HTTP/1.1 Host: www.example.com Content-Type: text/xml; charset="utf-8" Content-Length: xxxx Depth: 0 <?xml version="1.0" encoding="utf-8" ?> <D:acl-principal-prop-set xmlns:D="DAV:"> <D:prop> <D:displayname/> </D:prop> </D:acl-principal-prop-set>the status Clemm, et al.Expires June 22, 2004Standards Track [Page50] Internet-Draft40] RFC 3744 WebDAV Access Control ProtocolDecember 2003 >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length: xxxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://www.example.com/people/gstein</D:href> <D:propstat> <D:prop> <D:displayname>Greg Stein</D:displayname> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> <D:response> <D:href>http://www.example.com/groups/authors</D:href> <D:propstat> <D:prop> <D:displayname>Site authors</D:displayname> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus> 9.3 DAV:principal-match REPORT The DAV:principal-match REPORT is usedMay 2004 element. Clients MUST be able toidentify all members (at any depth)accept children of these status elements. Clients that do not understand thecollection identified byadditional XML elements should ignore them. (DAV:no-ace-conflict): The ACEs submitted in theRequest-URI that are principals andACL request MUST NOT conflict with each other. This is a catchall error code indicating thatmatchan implementation-specific ACL restriction has been violated. (DAV:no-protected-ace-conflict): The ACEs submitted in thecurrent user. In particular, ifACL request MUST NOT conflict with thecollection contains principals,protected ACEs on thereport canresource. For example, if the resource has a protected ACE granting DAV:write to a given principal, then it would not beusedconsistent if the ACL request submitted an ACE denying DAV:write toidentify all members ofthecollection that matchsame principal. (DAV:no-inherited-ace-conflict): The ACEs submitted in the ACL request MUST NOT conflict with thecurrent user. Alternatively,inherited ACEs on the resource. For example, if the resource inherits an ACE from its parent collectioncontains resources that have a property that identifiesgranting DAV:write to aprincipal (e.g. DAV:owner), the report cangiven principal, then it would not beusedconsistent if the ACL request submitted an ACE denying DAV:write toidentify all members ofthecollection whose property identifies a principalsame principal. Note thatmatches the current user. For example, this report can return allreporting ofthe resources in a collection hierarchy that are owned by the current user. Support forthisreport is REQUIRED. Marshalling: The request bodyerror will be implementation-dependent. Implementations MUST either report this error or allow the ACE to be set, and then let normal ACE evaluation rules determine whether the new ACE has any impact on the privileges available to aDAV:principal-match XML element. Clemm, et al. Expires June 22, 2004 [Page 51] Internet-Draft WebDAV Access Control Protocol December 2003 <!ELEMENT principal-match ((principal-property | self), prop?)> <!ELEMENT principal-property ANY> ANY value: an element whose value identifies a property.specific principal. (DAV:limited-number-of-aces): Theexpectation is the valuenumber of ACEs submitted in thenamed property typically contains an href element that containsACL request MUST NOT exceed theURInumber of ACEs allowed on that resource. However, ACL-compliant servers MUST support at least one ACE granting privileges to aprincipal <!ELEMENT self EMPTY> prop: see RFC 2518, Section 12.11single principal, and one ACE granting privileges to a group. (DAV:deny-before-grant): All non-inherited deny ACEs MUST precede all non-inherited grant ACEs. (DAV:grant-only): The ACEs submitted in the ACL request MUST NOT include a deny ACE. Thisreport isprecondition applies onlydefinedwhen theDepth header has value "0"; other values resultACL restrictions of the resource include the DAV:grant-only constraint (defined ina 400 (Bad Request) error response. Note that [RFC3253],Section3.6, states that if the Depth header is not present, it defaults to a value of "0".5.6.1). (DAV:no-invert): Theresponse body for a successfulACL request MUSTbeNOT include aDAV:multistatus XMLDAV:invert element.InThis precondition applies only when thecase where there are no response elements,ACL semantics of thereturned multistatus XML element is empty. multistatus: see RFC 2518,resource includes the DAV:no-invert constraint (defined in Section12.95.6.2). (DAV:no-abstract): Theresponse body for a successful DAV:principal-match REPORTACL request MUSTcontain a DAV:response element for each member of the collection that matches the current user. When the DAV:principal-property element is used, a match occurs if the current user is matched byNOT attempt to grant or deny an abstract privilege (see Section 5.3). Clemm, et al. Standards Track [Page 41] RFC 3744 WebDAV Access Control Protocol May 2004 (DAV:not-supported-privilege): The ACEs submitted in theprincipal identifiedACL request MUST be supported by theURI found in the DAV:href elementresource. (DAV:missing-required-principal): The result of thepropertyACL request MUST have at least one ACE for each principal identifiedby the DAV:principal-property element. When the DAV:self element is usedin aDAV:principal-match report issued against a group, it matches the group if a member identifiesDAV:required-principal XML element in thesameACL semantics of that resource (see Section 5.5). (DAV:recognized-principal): Every principalasURL in thecurrent user. If DAV:prop isACL request MUST identify a principal resource. (DAV:allowed-principal): The principals specified in therequest body, the properties specifiedACEs submitted in theDAV:prop elementACL request MUST bereported inallowed as principals for theDAV:response elements. 9.3.1resource. For example, a server where only authenticated principals can access resources would not allow the DAV:all or DAV:unauthenticated principals to be used in an ACE, since these would allow unauthenticated access to resources. 8.1.2. Example:DAV:principal-match REPORT Thethe ACL method In the followingexample identifiesexample, user "fielding", authenticated by information in themembers ofAuthorization header, grants thecollectionprincipal identified by the URLhttp://www.example.com/doc that are owned byhttp://www.example.com/users/esedlar (i.e., thecurrent user. The currentuser("gclemm") is authenticated using"esedlar") read and write privileges, grants the owner of the resource read-acl and write-acl privileges, and grants everyone read privileges. >> Request << ACL /top/container/ HTTP/1.1 Host: www.example.com Content-Type: text/xml; charset="utf-8" Content-Length: xxxx Authorization: Digestauthentication.username="fielding", realm="users@example.com", nonce="...", uri="/top/container/", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:"> <D:ace> <D:principal> <D:href>http://www.example.com/users/esedlar</D:href> </D:principal> <D:grant> <D:privilege><D:read/></D:privilege> <D:privilege><D:write/></D:privilege> </D:grant> </D:ace> Clemm, et al.Expires June 22, 2004Standards Track [Page52] Internet-Draft42] RFC 3744 WebDAV Access Control ProtocolDecember 2003May 2004 <D:ace> <D:principal> <D:property><D:owner/></D:property> </D:principal> <D:grant> <D:privilege><D:read-acl/></D:privilege> <D:privilege><D:write-acl/></D:privilege> </D:grant> </D:ace> <D:ace> <D:principal><D:all/></D:principal> <D:grant> <D:privilege><D:read/></D:privilege> </D:grant> </D:ace> </D:acl> >> Response << HTTP/1.1 200 OK 8.1.3. Example: ACL method failure due to protected ACE conflict In the following request, user "fielding", authenticated by information in the Authorization header, attempts to deny the principal identified by the URL http://www.example.com/users/esedlar (i.e., the user "esedlar") write privileges. Prior to the request, the DAV:acl property on the resource contained a protected ACE (see Section 5.5.3) granting DAV:owner the DAV:read and DAV:write privileges. The principal identified by URL http://www.example.com/ users/esedlar is the owner of the resource. The ACL method invocation fails because the submitted ACE conflicts with the protected ACE, thus violating the semantics of ACE protection. >> Request <<REPORT /doc/ACL /top/container/ HTTP/1.1 Host: www.example.com Content-Type: text/xml; charset="utf-8" Content-Length: xxxx Authorization: Digestusername="gclemm",username="fielding", realm="users@example.com", nonce="...",uri="/papers/",uri="/top/container/", response="...", opaque="..."Content-Type: text/xml; charset="utf-8" Content-Length: xxxx Depth: 0<?xml version="1.0" encoding="utf-8" ?><D:principal-match<D:acl xmlns:D="DAV:"><D:principal-property> <D:owner/> </D:principal-property> </D:principal-match><D:ace> <D:principal> Clemm, et al. Standards Track [Page 43] RFC 3744 WebDAV Access Control Protocol May 2004 <D:href>http://www.example.com/users/esedlar</D:href> </D:principal> <D:deny> <D:privilege><D:write/></D:privilege> </D:deny> </D:ace> </D:acl> >> Response << HTTP/1.1207 Multi-Status403 Forbidden Content-Type: text/xml; charset="utf-8" Content-Length:xxxxxxx <?xml version="1.0" encoding="utf-8" ?><D:multistatus<D:error xmlns:D="DAV:"><D:response> <D:href>http://www.example.com/doc/foo.html</D:href> <D:status>HTTP/1.1 200 OK</D:status> </D:response> <D:response> <D:href>http://www.example.com/doc/img/bar.gif</D:href> <D:status>HTTP/1.1 200 OK</D:status> </D:response> </D:multistatus> 9.4 DAV:principal-property-search REPORT The DAV:principal-property-search REPORT performs a search for all principals whose properties contain character data that matches<D:no-protected-ace-conflict/> </D:error> 8.1.4. Example: ACL method failure due to an inherited ACE conflict In thesearch criteria specifiedfollowing request, user "ejw", authenticated by information in therequest. One expected use of this report isAuthorization header, tries todiscoverchange theURL of a principal associated with a given person or group by searching for them by name.access control list on the resource http://www.example.com/top/index.html. Thisis doneresource has two inherited ACEs. Inherited ACE #1 grants the principal identified bysearching over DAV:displayname, which is defined on all principals. The actual search method (exact matching vs. substring matching vs, prefix-matching, case-sensitivity) deliberatelyURL http:// www.example.com/users/ejw (i.e., the user "ejw") http:// www.example.com/privs/write-all and DAV:read-acl privileges. On this server, http://www.example.com/privs/write-all isleft toan aggregate privilege containing DAV:write, and DAV:write-acl. Inherited ACE #2 grants principal DAV:all theserver Clemm, et al. Expires June 22, 2004 [Page 53] Internet-Draft WebDAV Access Control Protocol December 2003 implementationDAV:read privilege. The request attempts toallow implementation on a widesetof possible user management systems. In cases wherea (non-inherited) ACE, denying theimplementation of DAV:principal-property-search is not constrainedprincipal identified by thesemantics of an underlyingURL http://www.example.com/users/ejw (i.e., the usermanagement repository, preferred default semantics are caseless substring matches. For implementation efficiency, servers do not typically support searching on all properties. A search requesting properties that are not searchable for a particular principal will not match"ejw") DAV:write permission. This conflicts with inherited ACE #1. Note thatprincipal. Support fortheDAV:principal-property-searchdecision to report an inherited ACE conflict isREQUIRED. Implementation Note: The value of a WebDAV property is a sequence of well-formed XML, and hence can include any character inspecific to this server implementation. Another server implementation could have allowed theUnicode/ISO-10646 standard, that is, most known characters in human languages. Duenew ACE to be set, and then used normal ACE evaluation rules to determine whether theidiosyncrasies of case mapping across human languages, implementation of case-insensitive matching is non-trivial. Implementors of servers that do perform substring matching are strongly encouragednew ACE has any impact on the privileges available to a principal. Clemm, et al. Standards Track [Page 44] RFC 3744 WebDAV Access Control Protocol May 2004 >> Request << ACL /top/index.html HTTP/1.1 Host: www.example.com Content-Type: text/xml; charset="utf-8" Content-Length: xxxx Authorization: Digest username="ejw", realm="users@example.com", nonce="...", uri="/top/index.html", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:" xmlns:F="http://www.example.com/privs/"> <D:ace> <D:principal> <D:href>http://www.example.com/users/ejw</D:href> </D:principal> <D:grant><D:write/></D:grant> </D:ace> </D:acl> >> Response << HTTP/1.1 403 Forbidden Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:error xmlns:D="DAV:"> <D:no-inherited-ace-conflict/> </D:error> 8.1.5. Example: ACL method failure due toconsult "The Unicode Standard" [UNICODE4], especially Section 5.18, Subsection "Caseless Matching", for guidance when implementing their case-insensitive matching algorithms. Implementation Note: Some implementations of this protocol will useanLDAP repository for storage of principal metadata. The schema describing each attribute (akinattempt to set grant and deny in aWebDAV property)single ACE In this example, user "ygoland", authenticated by information inan LDAP repository specifies whether it supports case-sensitive or caseless searching. One of the benefits of leavingthesearch methodAuthorization header, tries to change thediscretion of the server implementation is the default LDAP attribute search behavior can be used when implementingaccess control list on theDAV:principal-property-search report. Marshalling:resource http://www.example.com/diamond/engagement-ring.gif. The ACL requestbody MUST be a DAV:principal-property-search XML element containingincludes asearch specificationsingle, syntactically andan optional list of properties. For every principal that matches the search specification, the response will contain the value ofsemantically incorrect ACE, which attempts to grant therequested properties on that principal. <!ELEMENT principal-property-search ((property-search+), prop?, apply-to-principal-collection-set?) > By default,group identified by thereport searches all members (at any depth) ofURL http:// www.example.com/users/friends DAV:read privilege and deny thecollectionprincipal identified by URL http://www.example.com/users/ygoland-so (i.e., theRequest-URI. If DAV:apply-to-principal-collection-setuser "ygoland-so") DAV:read privilege. However, it isspecifiedillegal to have multiple principal elements, as well as both a grant and deny element in the same ACE, so the request fails due to poor syntax. Clemm, et al. Standards Track [Page 45] RFC 3744 WebDAV Access Control Protocol May 2004 >> Request << ACL /diamond/engagement-ring.gif HTTP/1.1 Host: www.example.com Content-Type: text/xml; charset="utf-8" Content-Length: xxxx Authorization: Digest username="ygoland", realm="users@example.com", nonce="...", uri="/diamond/engagement-ring.gif", response="...", opaque="..." <?xml version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:"> <D:ace> <D:principal> <D:href>http://www.example.com/users/friends</D:href> </D:principal> <D:grant><D:read/></D:grant> <D:principal> <D:href>http://www.example.com/users/ygoland-so</D:href> </D:principal> <D:deny><D:read/></D:deny> </D:ace> </D:acl> >> Response << HTTP/1.1 400 Bad Request Content-Length: 0 Note that if the requestbody,had been divided into two ACEs, one to grant, and one to deny, the requestis applied instead to each collection identified Clemm, et al. Expires June 22, 2004 [Page 54] Internet-Draft WebDAVwould have been syntactically well formed. 9. Access ControlProtocol December 2003 by the DAV:prinicipal-collection-set property of the resource identified by the Request-URI.Reports 9.1. REPORT Method TheDAV:property-search element containsREPORT method (defined in Section 3.6 of [RFC3253]) provides an extensible mechanism for obtaining information about aprop element enumeratingresource. Unlike theproperties to be searched and a match element, containingPROPFIND method, which returns thesearch string. <!ELEMENT property-search (prop, match) > prop: see RFC 2518, Section 12.11 <!ELEMENT match #PCDATA > Multiple property-search elementsvalue of one ormultiple elements within a DAV:prop element will be interpreted with a logical AND. This report is only defined whenmore named properties, theDepth header has value "0"; other values resultREPORT method can involve more complex processing. REPORT is valuable ina 400 (Bad Request) error response. Note that [RFC3253], Section 3.6, states that ifcases where theDepth header is not present, it defaultsserver has access toa valueall of"0". The response body for a successfulthe information needed to perform the complex requestMUST be(such as aDAV:multistatus XML element. In the casequery), and wherethere are no response elements,it would require multiple requests for thereturned multistatus XML element is empty. multistatus: seeclient to retrieve the information needed to perform the same request. Clemm, et al. Standards Track [Page 46] RFC2518, Section 12.9 The response body for a successful DAV:principal-property-search REPORT request3744 WebDAV Access Control Protocol May 2004 A server that supports the WebDAV Access Control Protocol MUSTcontain a DAV:response element for each principal whose property values satisfysupport thesearch specification givenDAV:expand-property report (defined inDAV:principal-property-search.Section 3.8 of [RFC3253]). 9.2. DAV:acl-principal-prop-set Report Theresponse bodyDAV:acl-principal-prop-set report returns, foran unsuccessful DAV:principal-property-search REPORT request MUST contain, afterall principals in theXML element indicatingDAV:acl property (of thefailed preconditionRequest-URI) that are identified by http(s) URLs orpostcondition,by aDAV:prop element containingDAV:property principal, theproperty that causedvalue of thepre/postcondition to fail. If DAV:prop isproperties specified in the REPORT requestbody,body. In theproperties specified incase where a principal URL appears multiple times, theDAV:prop elementDAV:acl-principal-prop-set report MUSTbe reported inreturn theDAV:response elements. Preconditions: None Postconditions: (DAV:number-of-matches-within-limits): The numberproperties for that principal only once. Support for this report is REQUIRED. One expected use ofmatching Clemm, et al. Expires June 22, 2004 [Page 55] Internet-Draft WebDAV Access Control Protocol December 2003 principals must fall within server-specific, predefined limits. For example,thiscondition might be triggered if a search specification would causereport is to retrieve thereturnhuman readable name (found in the DAV:displayname property) of each principal found in anextremely large number of responses. 9.4.1 Matching There are several cases to consider when matching strings. The easiest caseACL. This iswhenuseful for constructing user interfaces that show each ACE in aproperty valuehuman readable form. Marshalling The request body MUST be a DAV:acl-principal-prop-set XML element. <!ELEMENT acl-principal-prop-set ANY> ANY value: a sequence of one or more elements, with at most one DAV:prop element. prop: see RFC 2518, Section 12.11 This report is"simple" and hasonlycharacter information item content (see [REC-XML-INFOSET]). For example, the search string "julian" would matchdefined when theDAV:displayname property withDepth header has value"Julian Reschke"."0"; other values result in a 400 (Bad Request) error response. Note that [RFC3253], Section 3.6, states that if theon-the-wire marshallingDepth header is not present, it defaults to a value ofDAV:displayname in this case is: <D:displayname xmlns:D="DAV:">Julian Reschke</D:displayname>"0". Thename of the property is encoded into theresponse body for a successful request MUST be a DAV:multistatus XML elementinformation item, and the character information item content of(i.e., theproperty is "Julian Reschke". A more complicated case occurs when properties have mixed content (that is, compound values consisting of multiple child element items, other types of information items, and character information item content). Considerresponse uses theproperty "aprop" insame format as thenamespace "http:// www.example.com/props/", marshalled as: <W:aprop xmlns:W="http://www.example.com/props/"> {cdata 0}<W:elem1>{cdata 1}</W:elem1> <W:elem2>{cdata 2}</W:elem2>{cdata 3} </W:aprop> In this case, matching is performed on each individual contiguous sequence of character information items.response for PROPFIND). In theexample above, a search string would be compared tocase where there are no response elements, thefour following strings: {cdata 0} {cdata 1} {cdata 2} {cdata 3} That is, four individual matches would be performed, one eachreturned multistatus XML element is empty. multistatus: see RFC 2518, Section 12.9 The response body for{cdata 0}, {cdata 1}, {cdata 2}, and {cdata 3}. 9.4.2 Example:a successfulDAV:principal-property-searchDAV:acl-principal-prop-set REPORTIn this example, the client requests therequest MUST contain a DAV:response element for each principalURLsidentified by an http(s) URL listed in a DAV:principal XML element ofall users whose DAV:displaynamean ACE within the DAV:acl propertycontainsof thesubstring "doE" and whoseresource identified by the Request-URI. Clemm, et al.Expires June 22, 2004Standards Track [Page56] Internet-Draft47] RFC 3744 WebDAV Access Control ProtocolDecember 2003 "title" property in the namespace "http://BigCorp.com/ns/" (that is, their professional title) contains "Sales". In addition, the client requests five properties to be returned with theMay 2004 Postconditions: (DAV:number-of-matches-within-limits): The number of matchingprincipals: In the DAV: namespace: displayname Inprincipals must fall within server-specific, predefined limits. For example, this condition might be triggered if a search specification would cause thehttp://www.example.com/ns/ namespace: department, phone, office, salaryreturn of an extremely large number of responses. 9.2.1. Example: DAV:acl-principal-prop-set Report Resource http://www.example.com/index.html has an ACL with three ACEs: ACE #1: All principals (DAV:all) have DAV:read and DAV:read-current- user-privilege-set access. ACE #2: Theresponse shows that twoprincipalresources meet the search specification, "John Doe" and "Zygdoebert Smith".identified by http://www.example.com/people/ gstein (the user "gstein") is granted DAV:write, DAV:write-acl, DAV:read-acl privileges. ACE #3: Theproperty "salary" in namespace "http://www.example.com/ns/"group identified by http://www.example.com/groups/authors (the "authors" group) isnot returned, sincegranted DAV:write and DAV:read-acl privileges. The following example shows a DAV:acl-principal-prop-set report requesting theprincipal makingDAV:displayname property. It returns therequest doesvalue of DAV:displayname for resources http://www.example.com/people/gstein and http://www.example.com/groups/authors , but nothave sufficient access permissions to readfor DAV:all, since thisproperty.is not an http(s) URL. >> Request << REPORT/users//index.html HTTP/1.1 Host: www.example.com Content-Type: text/xml;charset=utf-8 Content-Length: xxxx Depth: 0 <?xml version="1.0" encoding="utf-8" ?> <D:principal-property-search xmlns:D="DAV:"> <D:property-search> <D:prop> <D:displayname/> </D:prop> <D:match>doE</D:match> </D:property-search> <D:property-search> <D:prop xmlns:B="http://www.example.com/ns/"> <B:title/> </D:prop> <D:match>Sales</D:match> </D:property-search> <D:prop xmlns:B="http://www.example.com/ns/">charset="utf-8" Content-Length: xxxx Depth: 0 <?xml version="1.0" encoding="utf-8" ?> <D:acl-principal-prop-set xmlns:D="DAV:"> <D:prop> <D:displayname/><B:department/> <B:phone/> <B:office/> <B:salary/></D:prop></D:principal-property-search> >> Response <<</D:acl-principal-prop-set> Clemm, et al.Expires June 22, 2004Standards Track [Page57] Internet-Draft48] RFC 3744 WebDAV Access Control ProtocolDecember 2003May 2004 >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml;charset=utf-8charset="utf-8" Content-Length: xxxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatusxmlns:D="DAV:" xmlns:B="http://BigCorp.com/ns/">xmlns:D="DAV:"> <D:response><D:href>http://www.example.com/users/jdoe</D:href><D:href>http://www.example.com/people/gstein</D:href> <D:propstat> <D:prop><D:displayname>John Doe</D:displayname> <B:department>Widget Sales</B:department> <B:phone>234-4567</B:phone> <B:office>209</B:office><D:displayname>Greg Stein</D:displayname> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat><D:propstat> <D:prop> <B:salary/> </D:prop> <D:status>HTTP/1.1 403 Forbidden</D:status> </D:propstat></D:response> <D:response><D:href>http://www.example.com/users/zsmith</D:href><D:href>http://www.example.com/groups/authors</D:href> <D:propstat> <D:prop><D:displayname>Zygdoebert Smith</D:displayname> <B:department>Gadget Sales</B:department> <B:phone>234-7654</B:phone> <B:office>114</B:office><D:displayname>Site authors</D:displayname> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat><D:propstat> <D:prop> <B:salary/> </D:prop> <D:status>HTTP/1.1 403 Forbidden</D:status> </D:propstat></D:response> </D:multistatus>9.5 DAV:principal-search-property-set9.3. DAV:principal-match REPORT TheDAV:principal-search-property-set REPORT identifies those Clemm, et al. Expires June 22, 2004 [Page 58] Internet-Draft WebDAV Access Control Protocol December 2003 properties that may be searched using the DAV:principal-property-search REPORT (defined in Section 9.4). Servers MUST support the DAV:principal-search-property-setDAV:principal-match REPORTonis used to identify allcollections identified in the value of a DAV:principal-collection-set property. An access control protocol user agent could use the resultsmembers (at any depth) of theDAV:principal-search-property-set REPORT to present a query interface tocollection identified by theuser for retrieving principals. Support for this report is REQUIRED. Implementation Note: Some clients will have only limited screen real estate forRequest-URI that are principals and that match thedisplay of lists of searchable properties.current user. Inthis case, a user might appreciate havingparticular, if themost frequently searched propertiescollection contains principals, the report can bedisplayed on-screen, rather than havingused toscroll through a long listidentify all members ofsearchable properties. One mechanism for signalingthemost frequently searched properties is to return them towardscollection that match the current user. Alternatively, if the collection contains resources that have a property that identifies a principal (e.g., DAV:owner), thestartreport can be used to identify all members of the collection whose property identifies alist of properties. A client can then preferentially displayprincipal that matches thelistcurrent user. For example, this report can return all ofproperties in order, increasingthelikelihoodresources in a collection hierarchy that are owned by themost frequently searched properties will appear on-screen, and will not require scrollingcurrent user. Support fortheir selection.this report is REQUIRED. Marshalling: The request body MUST bean empty DAV:principal-search-property-seta DAV:principal-match XML element. <!ELEMENT principal-match ((principal-property | self), prop?)> <!ELEMENT principal-property ANY> Clemm, et al. Standards Track [Page 49] RFC 3744 WebDAV Access Control Protocol May 2004 ANY value: an element whose value identifies a property. The expectation is the value of the named property typically contains an href element that contains the URI of a principal <!ELEMENT self EMPTY> prop: see RFC 2518, Section 12.11 This report is only defined when the Depth header has value "0"; other values result in a 400 (Bad Request) error response. Note that [RFC3253], Section 3.6, states that if the Depth header is not present, it defaults to a value of "0". The response body for a successful request MUST be aDAV:principal-search-property-set XML element, containing a DAV:principal-search-propertyDAV:multistatus XMLelement for each property that may be searched withelement. In theDAV:principal-property-search REPORT. A server MAY limit itscase where there are no responseto just a subset ofelements, thesearchable properties, such as those likely to be useful to an interactive access control client. <!ELEMENT principal-search-property-set (principal-search-property*) > Each DAV:principal-search-propertyreturned multistatus XML elementcontains exactly one searchable property, andis empty. multistatus: see RFC 2518, Section 12.9 The response body for adescriptionsuccessful DAV:principal-match REPORT request MUST contain a DAV:response element for each member of theproperty. Clemm, et al. Expires June 22, 2004 [Page 59] Internet-Draft WebDAV Access Control Protocol December 2003 <!ELEMENT principal-search-property (prop, description) > The DAV:propcollection that matches the current user. When the DAV:principal-property elementcontains oneis used, a match occurs if the current user is matched by the principal identified by the URI found in the DAV:href element of the propertyon whichidentified by theserver is able to perform a DAV:principal-property-search REPORT. prop: see RFC 2518, Section 12.11 The descriptionDAV:principal-property element. When the DAV:self element is used in ahuman-readable description of what information this property represents. Servers MUST indicateDAV:principal-match report issued against a group, it matches thehuman language ofgroup if a member identifies thedescription usingsame principal as thexml:lang attribute and SHOULD considercurrent user. If DAV:prop is specified in theHTTP Accept-Languagerequestheader when selecting one of multiple available languages. <!ELEMENT description #PCDATA > 9.5.1 Example: DAV:principal-search-property-set REPORT In this example, the client determinesbody, theset of searchable principalpropertiesby requestingspecified in theDAV:principal-search-property-setDAV:prop element MUST be reported in the DAV:response elements. 9.3.1. Example: DAV:principal-match REPORTonThe following example identifies therootmembers of theserver's principal URLcollectionset,identified byhttp://www.example.com/ users/.the URL http://www.example.com/doc that are owned by the current user. The current user ("gclemm") is authenticated using Digest authentication. >> Request << REPORT/users//doc/ HTTP/1.1 Host: www.example.com Authorization: Digest username="gclemm", realm="users@example.com", nonce="...", uri="/papers/", response="...", opaque="..." Content-Type: text/xml; charset="utf-8" Content-Length:xxx Accept-Language: en, de Authorization: BASIC d2FubmFtYWs6cGFzc3dvcmQ=xxxx Depth: 0<?xml version="1.0" encoding="utf-8" ?> <D:principal-search-property-set xmlns:D="DAV:"/>Clemm, et al.Expires June 22, 2004Standards Track [Page60] Internet-Draft50] RFC 3744 WebDAV Access Control ProtocolDecember 2003May 2004 <?xml version="1.0" encoding="utf-8" ?> <D:principal-match xmlns:D="DAV:"> <D:principal-property> <D:owner/> </D:principal-property> </D:principal-match> >> Response << HTTP/1.1200 OK207 Multi-Status Content-Type: text/xml; charset="utf-8" Content-Length:xxxxxxx <?xml version="1.0" encoding="utf-8" ?><D:principal-search-property-set<D:multistatus xmlns:D="DAV:"><D:principal-search-property> <D:prop> <D:displayname/> </D:prop> <D:description xml:lang="en">Full name</D:description> </D:principal-search-property> <D:principal-search-property> <D:prop xmlns:B="http://BigCorp.com/ns/"> <B:title/> </D:prop> <D:description xml:lang="en">Job title</D:description> </D:principal-search-property> </D:principal-search-property-set> 10. XML Processing Implementations of this specification MUST support<D:response> <D:href>http://www.example.com/doc/foo.html</D:href> <D:status>HTTP/1.1 200 OK</D:status> </D:response> <D:response> <D:href>http://www.example.com/doc/img/bar.gif</D:href> <D:status>HTTP/1.1 200 OK</D:status> </D:response> </D:multistatus> 9.4. DAV:principal-property-search REPORT The DAV:principal-property-search REPORT performs a search for all principals whose properties contain character data that matches theXML element ignore rule, assearch criteria specified inSection 23.3.2 of [RFC2518], andtheXML Namespace recommendation [REC-XML-NAMES]. Note thatrequest. One expected use ofthe DAV namespace is reserved for XML elements and property names defined in a standards-track or Experimental IETF RFC. 11. Internationalization Considerations Inthisspecification, the only human-readable content can be found in the description XML element, found withinreport is to discover theDAV:supported-privilege-set property. This element contains a human-readable descriptionURL ofthe capabilities controlled byaprivilege. Asprincipal associated with aresult, the description element must be capable of representing descriptions in multiple character sets. Since the description elementgiven person or group by searching for them by name. This isfound within a WebDAV property, itdone by searching over DAV:displayname, which isrepresenteddefined onthe wire as XML [REC-XML], and hence can leverage XML's language tagging and character set encoding capabilities. Specifically, XML processors at minimum must be ableall principals. The actual search method (exact matching vs. substring matching vs, prefix-matching, case-sensitivity) deliberately is left toread XML elements encoded usingtheUTF-8 [RFC3629] encodingserver implementation to allow implementation on a wide set of possible user management systems. In cases where theISO 10646 multilingual plane. XML examples in this specification demonstrate useimplementation of DAV:principal-property-search is not constrained by thecharset parametersemantics of an underlying user management repository, preferred default semantics are caseless substring matches. For implementation efficiency, servers do not typically support searching on all properties. A search requesting properties that are not searchable for a particular principal will not match that principal. Support for theContent-Type header, as defined in [RFC3023], as well as the XML "encoding" attribute, which togetherDAV:principal-property-search report is REQUIRED. Clemm, et al.Expires June 22, 2004Standards Track [Page61] Internet-Draft51] RFC 3744 WebDAV Access Control ProtocolDecember 2003 provide charset identification information for MIMEMay 2004 Implementation Note: The value of a WebDAV property is a sequence of well-formed XML, andXML processors. Futhermore, this specification requires server implementationshence can include any character in the Unicode/ISO-10646 standard, that is, most known characters in human languages. Due totag description fields withthexml:lang attribute (see Section 2.12idiosyncrasies of[REC-XML]), which specifies thecase mapping across humanlanguage of the description. Additionally, server implementations should take into account the valuelanguages, implementation ofthe Accept-Language HTTP header to determine which description string to return. For XML elements other than the description element, itcase-insensitive matching isexpectednon-trivial. Implementors of servers thatimplementations will treat the property names, privilege names, and values as tokens, and convert these tokens into human-readable text in the user's language and character set when displayeddo perform substring matching are strongly encouraged toa person. Only a generic WebDAV property display utility would display these values inconsult "The Unicode Standard" [UNICODE4], especially Section 5.18, Subsection "Caseless Matching", for guidance when implementing theirraw form to a human user. For error reporting, we follow the conventioncase-insensitive matching algorithms. Implementation Note: Some implementations ofHTTP/1.1 status codes, including withthis protocol will use an LDAP repository for storage of principal metadata. The schema describing eachstatus codeattribute (akin to ashort, English descriptionWebDAV property) in an LDAP repository specifies whether it supports case-sensitive or caseless searching. One of thecode (e.g., 200 (OK)). Whilebenefits of leaving thepossibility exists that a poorly crafted user agent would display this messagesearch method to the discretion of the server implementation is the default LDAP attribute search behavior can be used when implementing the DAV:principal-property-search report. Marshalling: The request body MUST be auser, internationalized applications will ignore this message,DAV:principal-property-search XML element containing a search specification anddisplayanappropriate message inoptional list of properties. For every principal that matches theuser's language and character set. Further internationalization considerations for this protocol are described insearch specification, theWebDAV Distributed Authoring protocol specification [RFC2518]. 12. Security Considerations Applications and usersresponse will contain the value ofthis access control protocol should be awarethe requested properties on that principal. <!ELEMENT principal-property-search ((property-search+), prop?, apply-to-principal-collection-set?) > By default, the report searches all members (at any depth) ofseveral security considerations, detailed below. In addition tothediscussion in this document,collection identified by thesecurity considerations detailedRequest-URI. If DAV:apply-to- principal-collection-set is specified in theHTTP/1.1 specification [RFC2616],request body, theWebDAV Distributed Authoringrequest is applied instead to each collection identified by the DAV:principal-collection-set property of the resource identified by the Request-URI. The DAV:property-search element contains a prop element enumerating the properties to be searched and a match element, containing the search string. <!ELEMENT property-search (prop, match) > prop: see RFC 2518, Section 12.11 <!ELEMENT match #PCDATA > Clemm, et al. Standards Track [Page 52] RFC 3744 WebDAV Access Control Protocolspecification [RFC2518], and the XML Media Types specification [RFC3023] shouldMay 2004 Multiple property-search elements or multiple elements within a DAV:prop element will beconsidered ininterpreted with asecurity analysis of this protocol. 12.1 Increased Risk of Compromised Users Inlogical AND. This report is only defined when theabsence ofDepth header has value "0"; other values result in amechanism for remotely manipulating access control lists,400 (Bad Request) error response. Note that [RFC3253], Section 3.6, states that if the Depth header is not present, it defaults to asingle user's authentication credentials are compromised, only those resourcesvalue of "0". The response body forwhich the user has access permission cana successful request MUST beread, modified, moved, or deleted. With the introduction of this access control protocol, ifasingle compromised user hasDAV:multistatus XML element. In theability to change ACLscase where there are no response elements, the returned multistatus XML element is empty. multistatus: see RFC 2518, Section 12.9 The response body for abroad range of other users (e.g.,successful DAV:principal-property-search REPORT request MUST contain asuper-user),DAV:response element for each principal whose property values satisfy the search specification given in DAV:principal-property-search. If DAV:prop is specified in the request body, the properties specified in the DAV:prop element MUST be reported in the DAV:response elements. Preconditions: None Postconditions: (DAV:number-of-matches-within-limits): The number ofresources that couldmatching principals must fall within server-specific, predefined limits. For example, this condition might bealtered bytriggered if asingle compromised user increases. This risk can be mitigated by limitingsearch specification would cause the return of an extremely large number ofpeople who have write-acl privileges acrossresponses. 9.4.1. Matching There are several cases to consider when matching strings. The easiest case is when abroad rangeproperty value is "simple" and has only character information item content (see [REC-XML-INFOSET]). For example, the search string "julian" would match the DAV:displayname property with value "Julian Reschke". Note that the on-the-wire marshaling ofresources.DAV:displayname in this case is: <D:displayname xmlns:D="DAV:">Julian Reschke</D:displayname> Clemm, et al.Expires June 22, 2004Standards Track [Page62] Internet-Draft53] RFC 3744 WebDAV Access Control ProtocolDecember 2003 12.2 Risks of the DAV:read-acl and DAV:current-user-privilege-set PrivilegesMay 2004 Theability to read the access privileges (stored in the DAV:acl property), or the privileges permitted the currently authenticated user (stored in the DAV:current-user-privilege-set property) on a resource may seem innocuous, since reading an ACL cannot possibly affect the resource's state. However, if all resources have world-readable ACLs, it is possible to perform an exhaustive search for those resources that have inadvertently left themselves in a vulnerable state, such as being world-writeable. In particular,name of the propertyretrieval method PROPFIND, executed with Depth infinity on an entire hierarchy,isa very efficient way to retrieveencoded into theDAV:acl or DAV:current-user-privilege-set properties. Once found, this vulnerability can be exploited by a denialXML element information item, and the character information item content ofservice attack in whichtheopen resourceproperty isrepeatedly overwritten. Alternately, writeable resources can be modified in undesirable ways. To reduce this risk, read-acl privileges should not be granted to unauthenticated principals, and restrictions on read-acl"Julian Reschke". A more complicated case occurs when properties have mixed content (that is, compound values consisting of multiple child element items, other types of information items, andread-current-user-privilege-set privileges for authenticated principals should be carefully analyzed when deploying this protocol. Access tocharacter information item content). Consider thecurrent-user-privilege-setpropertywill involve a tradeoff of usability versus security. When"aprop" in thecurrent-user-privilege-set is visible, user interfaces are expected to provide enhanced information concerning permitted and restricted operations, yetnamespace "http:// www.example.com/props/", marshaled as: <W:aprop xmlns:W="http://www.example.com/props/"> {cdata 0}<W:elem1>{cdata 1}</W:elem1> <W:elem2>{cdata 2}</W:elem2>{cdata 3} </W:aprop> In this case, matching is performed on each individual contiguous sequence of character informationmay also indicateitems. In the example above, avulnerability that couldsearch string would beexploited. Deployment of this protocol will needcompared toevaluate this tradeoff in light of the requirements ofthedeployment environment. 12.3 No Foreknowledge of Initial ACLfour following strings: {cdata 0} {cdata 1} {cdata 2} {cdata 3} That is, four individual matches would be performed, one each for {cdata 0}, {cdata 1}, {cdata 2}, and {cdata 3}. 9.4.2. Example: successful DAV:principal-property-search REPORT Inan effort to reduce protocol complexity,thisprotocol specification intentionally does not addressexample, theissueclient requests the principal URLs ofhow to manage or discoverall users whose DAV:displayname property contains theinitial ACL that is placed upon a resource when it is created. The only way to discoversubstring "doE" and whose "title" property in theinitial ACL isnamespace "http://BigCorp.com/ns/" (that is, their professional title) contains "Sales". In addition, the client requests five properties tocreate a new resource, then retrievebe returned with thevalue ofmatching principals: In theDAV:acl property. This assumesDAV: namespace: displayname In the http://www.example.com/ns/ namespace: department, phone, office, salary Clemm, et al. Standards Track [Page 54] RFC 3744 WebDAV Access Control Protocol May 2004 The response shows that two principalcreating the resource also has been grantedresources meet theDAV:read-acl privilege. As a result, itsearch specification, "John Doe" and "Zygdoebert Smith". The property "salary" in namespace "http://www.example.com/ns/" ispossible that anot returned, since the principalcould create a resource, and then discover that its ACL grants privileges that are undesirable. Furthermore,making the request does not have sufficient access permissions to read thisprotocol makes it possible (though unlikely)property. >> Request << REPORT /users/ HTTP/1.1 Host: www.example.com Content-Type: text/xml; charset=utf-8 Content-Length: xxxx Depth: 0 <?xml version="1.0" encoding="utf-8" ?> <D:principal-property-search xmlns:D="DAV:"> <D:property-search> <D:prop> <D:displayname/> </D:prop> <D:match>doE</D:match> </D:property-search> <D:property-search> <D:prop xmlns:B="http://www.example.com/ns/"> <B:title/> </D:prop> <D:match>Sales</D:match> </D:property-search> <D:prop xmlns:B="http://www.example.com/ns/"> <D:displayname/> <B:department/> <B:phone/> <B:office/> <B:salary/> </D:prop> </D:principal-property-search> >> Response << HTTP/1.1 207 Multi-Status Content-Type: text/xml; charset=utf-8 Content-Length: xxxx <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:" xmlns:B="http://BigCorp.com/ns/"> <D:response> <D:href>http://www.example.com/users/jdoe</D:href> <D:propstat> Clemm, et al. Standards Track [Page 55] RFC 3744 WebDAV Access Control Protocol May 2004 <D:prop> <D:displayname>John Doe</D:displayname> <B:department>Widget Sales</B:department> <B:phone>234-4567</B:phone> <B:office>209</B:office> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> <D:propstat> <D:prop> <B:salary/> </D:prop> <D:status>HTTP/1.1 403 Forbidden</D:status> </D:propstat> </D:response> <D:response> <D:href>http://www.example.com/users/zsmith</D:href> <D:propstat> <D:prop> <D:displayname>Zygdoebert Smith</D:displayname> <B:department>Gadget Sales</B:department> <B:phone>234-7654</B:phone> <B:office>114</B:office> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> <D:propstat> <D:prop> <B:salary/> </D:prop> <D:status>HTTP/1.1 403 Forbidden</D:status> </D:propstat> </D:response> </D:multistatus> 9.5. DAV:principal-search-property-set REPORT The DAV:principal-search-property-set REPORT identifies those properties thatthe creating principal couldmay beunable to modifysearched using theACL, or even deleteDAV:principal-property- search REPORT (defined in Section 9.4). Servers MUST support theresource. Even whenDAV:principal-search-property-set REPORT on all collections identified in theACL can be modified, there will bevalue of ashort periodDAV:principal- collection-set property. An access control protocol user agent could use the results oftime whentheresource exists withDAV:principal-search-property-set REPORT to present a query interface to theinitial ACL before its new ACL can be set.user for retrieving principals. Clemm, et al.Expires June 22, 2004Standards Track [Page63] Internet-Draft56] RFC 3744 WebDAV Access Control ProtocolDecember 2003 Several factors mitigateMay 2004 Support for thisrisk. Human principals are often aware ofreport is REQUIRED. Implementation Note: Some clients will have only limited screen real estate for thedefault access permissions in their editing environments and takedisplay of lists of searchable properties. In thisinto account when writing information. Furthermore, default privilege policies are usually very conservative, limiting the privileges granted bycase, a user might appreciate having theinitial ACL. 13. Authentication Authentication mechanisms definedmost frequently searched properties be displayed on-screen, rather than having to scroll through a long list of searchable properties. One mechanism foruse with HTTP and WebDAV also applysignaling the most frequently searched properties is tothis WebDAV Access Control Protocol, in particularreturn them towards theBasic and Digest authentication mechanisms defined in [RFC2617]. Implementationstart of a list of properties. A client can then preferentially display the list of properties in order, increasing theACL spec requireslikelihood thatBasic authentication, if used, MUST only be supported over secure transport such as TLS. 14. IANA Considerations This document usesthenamespace defined by [RFC2518]most frequently searched properties will appear on-screen, and will not require scrolling for their selection. Marshalling: The request body MUST be an empty DAV:principal-search-property- set XMLelements. That is, this specification uses the "DAV:" URI namespace, previously registered inelement. This report is only defined when theURI schemes registry. AllDepth header has value "0"; otherIANA considerations mentionedvalues result in[RFC2518] are also applicable to this specification. 15. Acknowledgements This protocol isa 400 (Bad Request) error response. Note that [RFC3253], Section 3.6, states that if thecollaborative productDepth header is not present, it defaults to a value ofthe WebDAV ACL design team: Bernard Chester, Geoff Clemm, Anne Hopkins, Barry Lind, Sean Lyndersay, Eric Sedlar, Greg Stein, and Jim Whitehead."0". Theauthors are grateful for the detailed review and comments provided by Jim Amsden, Dylan Barrell, Gino Basso, Murthy Chintalapati, Lisa Dusseault, Stefan Eissing, Tim Ellison, Yaron Goland, Dennis Hamilton, Laurie Harper, Eckehard Hermann, Ron Jacobs, Chris Knight, Remy Maucherat, Larry Masinter, Joe Orton, Peter Raymond, Julian Reschke, and Keith Wannamaker. We thank Keith Wannamakerresponse body MUST be a DAV:principal-search-property-set XML element, containing a DAV:principal-search-property XML element for each property that may be searched with theinitial textDAV:principal- property-search REPORT. A server MAY limit its response to just a subset of theprincipal property search sections. Prior work on WebDAVsearchable properties, such as those likely to be useful to an interactive access controlprotocols has been performed by Yaron Goland, Paul Leach, Lisa Dusseault, Howard Palmer,client. <!ELEMENT principal-search-property-set (principal-search-property*) > Each DAV:principal-search-property XML element contains exactly one searchable property, andJon Radoff. We would like to acknowledge the foundation laid for us by the authorsa description of theDeltaV, WebDAV and HTTP protocols upon which this protocol is layered, and the invaluable feedback fromproperty. <!ELEMENT principal-search-property (prop, description) > The DAV:prop element contains one principal property on which theWebDAV working group. Normative References [REC-XML] Bray, T., Paoli, J., Sperberg-McQueen, C. and E. Maler, "Extensible Markup Language (XML) 1.0 (2nd ed)", W3C REC REC-xml-20001006, October 2000, <http://www.w3.org/TR/ 2000/REC-xml-20001006>. [REC-XML-INFOSET]server is able to perform a DAV:principal-property-search REPORT. prop: see RFC 2518, Section 12.11 Clemm, et al.Expires June 22, 2004Standards Track [Page64] Internet-Draft57] RFC 3744 WebDAV Access Control ProtocolDecember 2003 Cowan, J. and R. Tobin, "XML Information Set", W3C REC REC-xml-infoset-20011024, October 2001, <http:// www.w3.org/TR/2001/REC-xml-infoset-20011024>. [REC-XML-NAMES] Bray, T., Hollander, D. and A. Layman, "Namespaces in XML", W3C REC REC-xml-names-19990114, January 1999, <http://www.w3.org/TR/1999/REC-xml-names-19990114>. [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. [RFC2518] Goland, Y., Whitehead, E., Faizi, A., Carter, S. and D. Jensen, "HTTP Extensions for Distributed Authoring -- WEBDAV", RFC 2518, February 1999. [RFC2616] Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L., Leach, P.May 2004 The description element is a human-readable description of what information this property represents. Servers MUST indicate the human language of the description using the xml:lang attribute andT. Berners-Lee, "Hypertext Transfer Protocol -- HTTP/1.1",SHOULD consider the HTTP Accept-Language request header when selecting one of multiple available languages. <!ELEMENT description #PCDATA > 9.5.1. Example: DAV:principal-search-property-set REPORT In this example, the client determines the set of searchable principal properties by requesting the DAV:principal-search- property-set REPORT on the root of the server's principal URL collection set, identified by http://www.example.com/users/. >> Request << REPORT /users/ HTTP/1.1 Host: www.example.com Content-Type: text/xml; charset="utf-8" Content-Length: xxx Accept-Language: en, de Authorization: BASIC d2FubmFtYWs6cGFzc3dvcmQ= Depth: 0 <?xml version="1.0" encoding="utf-8" ?> <D:principal-search-property-set xmlns:D="DAV:"/> >> Response << HTTP/1.1 200 OK Content-Type: text/xml; charset="utf-8" Content-Length: xxx <?xml version="1.0" encoding="utf-8" ?> <D:principal-search-property-set xmlns:D="DAV:"> <D:principal-search-property> <D:prop> <D:displayname/> </D:prop> <D:description xml:lang="en">Full name</D:description> </D:principal-search-property> <D:principal-search-property> <D:prop xmlns:B="http://BigCorp.com/ns/"> <B:title/> Clemm, et al. Standards Track [Page 58] RFC2616, June 1999. [RFC2617] Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A.3744 WebDAV Access Control Protocol May 2004 </D:prop> <D:description xml:lang="en">Job title</D:description> </D:principal-search-property> </D:principal-search-property-set> 10. XML Processing Implementations of this specification MUST support the XML element ignore rule, as specified in Section 23.3.2 of [RFC2518], andL. Stewart, "HTTP Authentication: Basicthe XML Namespace recommendation [REC-XML-NAMES]. Note that use of the DAV namespace is reserved for XML elements andDigest Access Authentication", RFC 2617, June 1999. [RFC3023] Makoto, M., St.Laurent, S.property names defined in a standards-track or Experimental IETF RFC. 11. Internationalization Considerations In this specification, the only human-readable content can be found in the description XML element, found within the DAV:supported- privilege-set property. This element contains a human-readable description of the capabilities controlled by a privilege. As a result, the description element must be capable of representing descriptions in multiple character sets. Since the description element is found within a WebDAV property, it is represented on the wire as XML [REC-XML], andD. Kohn, "XML Media Types", RFC 3023, January 2001. [RFC3253] Clemm, G., Amsden, J., Ellison, T., Kaler, C.hence can leverage XML's language tagging andJ. Whitehead, "Versioning Extensionscharacter set encoding capabilities. Specifically, XML processors at minimum must be able toWebDAV", RFC 3253, March 2002. [RFC3530] Shepler, S., Ed., Callaghan, B., Robinson, D., Thurlow, R., Beame, C., Eisler, M. and D. Noveck, "Network File System (NFS) version 4 Protocol", RFC 3530, April 2003.read XML elements encoded using the UTF-8 [RFC3629]Yergeau, F., "UTF-8, a transformation formatencoding of the ISO10646", RFC 3629, STD 63, November 2003. Informative References [RFC2026] Bradner, S., "The Internet Standards Process -- Revision 3", BCP 9, RFC 2026, October 1996. [RFC2251] Wahl, M., Howes, T.10646 multilingual plane. XML examples in this specification demonstrate use of the charset parameter of the Content-Type header, as defined in [RFC3023], as well as the XML "encoding" attribute, which together provide charset identification information for MIME andS. Kille, "Lightweight Directory Access Protocol (v3)", RFC 2251, December 1997. [RFC2255] Howes, T.XML processors. Furthermore, this specification requires server implementations to tag description fields with the xml:lang attribute (see Section 2.12 of [REC-XML]), which specifies the human language of the description. Additionally, server implementations should take into account the value of the Accept-Language HTTP header to determine which description string to return. For XML elements other than the description element, it is expected that implementations will treat the property names, privilege names, andM. Smith, "The LDAP URL Format", RFC 2255, Clemm, et al. Expires June 22, 2004 [Page 65] Internet-Draftvalues as tokens, and convert these tokens into human-readable text in the user's language and character set when displayed to a person. Only a generic WebDAVAccess Control Protocol December 2003 December 1997. [UNICODE4] The Unicode Consortium, "The Unicode Standard - Version 4.0", Addison-Wesley , August 2003, <http:// www.unicode.org/versions/Unicode4.0.0/>. ISBN 0321185781 [4]. URIs [1] <mailto:acl@webdav.org> [2] <http://www.example.com/acl/> [3] <http://www.ics.uci.edu/pub/ietf/webdav/> [4] <urn:isbn:0321185781> Authors' Addresses G. Clemm IBM 20 Maguire Road Lexington, MA 02421 EMail: geoffrey.clemm@us.ibm.com Julian F. Reschke greenbytes GmbH Salzmannstrasse 152 Muenster, NW 48159 Germany EMail: julian.reschke@greenbytes.de E. Sedlar Oracle Corporation 500 Oracle Parkway Redwood Shores, CA 94065 EMail: eric.sedlar@oracle.comproperty display utility would display these values in their raw form to a human user. For error reporting, we follow the convention of HTTP/1.1 status codes, including with each status code a short, English description of the code (e.g., 200 (OK)). While the possibility exists that a Clemm, et al.Expires June 22, 2004Standards Track [Page66] Internet-Draft59] RFC 3744 WebDAV Access Control ProtocolDecember 2003 J. Whitehead U.C. Santa Cruz, Dept.May 2004 poorly crafted user agent would display this message to a user, internationalized applications will ignore this message, and display an appropriate message in the user's language and character set. Further internationalization considerations for this protocol are described in the WebDAV Distributed Authoring protocol specification [RFC2518]. 12. Security Considerations Applications and users ofComputer Science 1156 High Street Santa Cruz, CA 95064 EMail: ejw@cse.ucsc.edu Appendix A.this access control protocol should be aware of several security considerations, detailed below. In addition to the discussion in this document, the security considerations detailed in the HTTP/1.1 specification [RFC2616], the WebDAV Distributed Authoring Protocol specification [RFC2518], and the XMLDocument Type Definition Addendum All XML elements definedMedia Types specification [RFC3023] should be considered in a security analysis of thisDocument Type Definition (DTD) belongprotocol. 12.1. Increased Risk of Compromised Users In the absence of a mechanism for remotely manipulating access control lists, if a single user's authentication credentials are compromised, only those resources for which the user has access permission can be read, modified, moved, or deleted. With the introduction of this access control protocol, if a single compromised user has the ability to change ACLs for a broad range of other users (e.g., a super-user), theDAV namespace.number of resources that could be altered by a single compromised user increases. ThisDTD shouldrisk can beviewedmitigated by limiting the number of people who have write-acl privileges across a broad range of resources. 12.2. Risks of the DAV:read-acl and DAV:current-user-privilege-set Privileges The ability to read the access privileges (stored in the DAV:acl property), or the privileges permitted the currently authenticated user (stored in the DAV:current-user-privilege-set property) on a resource may seem innocuous, since reading an ACL cannot possibly affect the resource's state. However, if all resources have world- readable ACLs, it is possible to perform an exhaustive search for those resources that have inadvertently left themselves in a vulnerable state, such as being world-writable. In particular, the property retrieval method PROPFIND, executed with Depth infinity on anaddendumentire hierarchy, is a very efficient way to retrieve theDTD providedDAV:acl or DAV:current-user-privilege-set properties. Once found, this vulnerability can be exploited by a denial of service attack in[RFC2518], section 23.1. <!-- Privileges -- (Section 3)> <!ELEMENT read EMPTY> <!ELEMENT write EMPTY> <!ELEMENT write-properties EMPTY> <!ELEMENT write-content EMPTY> <!ELEMENT unlock EMPTY> <!ELEMENT read-acl EMPTY> <!ELEMENT read-current-user-privilege-set EMPTY> <!ELEMENT write-acl EMPTY> <!ELEMENT bind EMPTY> <!ELEMENT unbind EMPTY> <!ELEMENT all EMPTY> <!-- Principal Properties (Section 4) --> <!ELEMENT principal EMPTY> <!ELEMENT alternate-URI-set (href*)> <!ELEMENT principal-URL (href)> <!ELEMENT group-member-set (href*)> <!ELEMENT group-membership (href*)> <!-- Access Control Properties (Section 5) --> <!-- DAV:owner Property (Section 5.1) --> <!ELEMENT owner (href?)> <!-- DAV:group Property (Section 5.2) --> <!ELEMENT group (href?)>which the open resource is repeatedly overwritten. Alternately, writable resources can be modified in undesirable ways. Clemm, et al.Expires June 22, 2004Standards Track [Page67] Internet-Draft60] RFC 3744 WebDAV Access Control ProtocolDecember 2003 <!-- DAV:supported-privilege-set Property (Section 5.3) --> <!ELEMENT supported-privilege-set (supported-privilege*)> <!ELEMENT supported-privilege (privilege, abstract?, description, supported-privilege*)> <!ELEMENT privilege ANY> <!ELEMENT abstract EMPTY> <!ELEMENT description #PCDATA> <!-- DAV:current-user-privilege-set Property (Section 5.4) --> <!ELEMENT current-user-privilege-set (privilege*)> <!-- DAV:acl Property (Section 5.5) --> <!ELEMENT acl (ace)* > <!ELEMENT ace ((principal | invert), (grant|deny), protected?, inherited?)> <!ELEMENT principal (href) | all | authenticated |May 2004 To reduce this risk, read-acl privileges should not be granted to unauthenticated| property | self)> <!ELEMENT all EMPTY> <!ELEMENTprincipals, and restrictions on read-acl and read- current-user-privilege-set privileges for authenticatedEMPTY> <!ELEMENT unauthenticated EMPTY> <!ELEMENT property ANY> <!ELEMENT self EMPTY> <!ELEMENT invert principal> <!ELEMENT grant (privilege+)> <!ELEMENT deny (privilege+)> <!ELEMENT privilege ANY> <!ELEMENT protected EMPTY> <!ELEMENT inherited (href)> Clemm, et al. Expires June 22, 2004 [Page 68] Internet-Draft WebDAV Access Control Protocol December 2003 <!-- DAV:acl-restrictions Property (Section 5.6) --> <!ELEMENT acl-restrictions (grant-only?, no-invert?, deny-before-grant?, required-principal?)> <!ELEMENT grant-only EMPTY> <!ELEMENT no-invert EMPTY> <!ELEMENT deny-before-grant EMPTY> <!ELEMENT required-principal (all? | authenticated? | unauthenticated? | self? | href* |property*)> <!-- DAV:inherited-acl-set Property (Section 5.7) --> <!ELEMENT inherited-acl-set (href*)> <!-- DAV:principal-collection-set Property (Section 5.8) --> <!ELEMENT principal-collection-set (href*)> <!--principals should be carefully analyzed when deploying this protocol. AccessControlto the current-user-privilege-set property will involve a tradeoff of usability versus security. When the current-user-privilege-set is visible, user interfaces are expected to provide enhanced information concerning permitted and restricted operations, yet this information may also indicate a vulnerability that could be exploited. Deployment of this protocol will need to evaluate this tradeoff in light of the requirements of the deployment environment. 12.3. No Foreknowledge of Initial ACL In an effort to reduce protocol complexity, this protocol specification intentionally does not address the issue of how to manage or discover the initial ACL that is placed upon a resource when it is created. The only way to discover the initial ACL is to create a new resource, then retrieve the value of the DAV:acl property. This assumes the principal creating the resource also has been granted the DAV:read-acl privilege. As a result, it is possible that a principal could create a resource, andExisting Methods (Section 7) --> <!ELEMENT need-privileges (resource)* > <!ELEMENTthen discover that its ACL grants privileges that are undesirable. Furthermore, this protocol makes it possible (though unlikely) that the creating principal could be unable to modify the ACL, or even delete the resource. Even when the ACL can be modified, there will be a short period of time when the resource( href, privilege ) <!--exists with the initial ACLmethod preconditions (Section 8.1.1) --> <!ELEMENT no-ace-conflict EMPTY> <!ELEMENT no-protected-ace-conflict EMPTY> <!ELEMENT no-inherited-ace-conflict EMPTY> <!ELEMENT limited-number-of-aces EMPTY> <!ELEMENT grant-only EMPTY> <!ELEMENT no-invert EMPTY> <!ELEMENT deny-before-grant EMPTY> <!ELEMENT no-abstract EMPTY> <!ELEMENT not-supported-privilege EMPTY> <!ELEMENT missing-required-principal EMPTY> <!ELEMENT recognized-principal EMPTY> <!ELEMENT allowed-principal EMPTY>before its new ACL can be set. Several factors mitigate this risk. Human principals are often aware of the default access permissions in their editing environments and take this into account when writing information. Furthermore, default privilege policies are usually very conservative, limiting the privileges granted by the initial ACL. 13. Authentication Authentication mechanisms defined for use with HTTP and WebDAV also apply to this WebDAV Access Control Protocol, in particular the Basic and Digest authentication mechanisms defined in [RFC2617]. Implementation of the ACL spec requires that Basic authentication, if used, MUST only be supported over secure transport such as TLS. Clemm, et al.Expires June 22, 2004Standards Track [Page69] Internet-Draft61] RFC 3744 WebDAV Access Control ProtocolDecember 2003 <!-- REPORTs (Section 9) --> <!ELEMENT acl-principal-prop-set ANY> ANY value: a sequence of one or more elements, with at most one DAV:prop element. <!ELEMENT principal-match ((principal-property | self), prop?)> <!ELEMENT principal-property ANY> ANY value: an element whose value identifies a property. The expectation isMay 2004 14. IANA Considerations This document uses thevalue ofnamespace defined by [RFC2518] for XML elements. That is, this specification uses thenamed property typically contains an href element that contains"DAV:" URI namespace, previously registered in the URI schemes registry. All other IANA considerations mentioned in [RFC2518] are also applicable to this specification. 15. Acknowledgements This protocol is the collaborative product ofa principal <!ELEMENT self EMPTY> <!ELEMENT principal-property-search ((property-search+), prop?) > <!ELEMENT property-search (prop, match) > <!ELEMENT match #PCDATA > <!ELEMENT principal-search-property-set ( principal-search-property*) > <!ELEMENT principal-search-property (prop, description) > <!ELEMENT description #PCDATA > Appendix B.the WebDAVMethod Privilege Table (Normative)ACL design team: Bernard Chester, Geoff Clemm, Anne Hopkins, Barry Lind, Sean Lyndersay, Eric Sedlar, Greg Stein, and Jim Whitehead. Thefollowing table of WebDAV methods (as defined in RFC 2518, 2616,authors are grateful for the detailed review and comments provided by Jim Amsden, Dylan Barrell, Gino Basso, Murthy Chintalapati, Lisa Dusseault, Stefan Eissing, Tim Ellison, Yaron Goland, Dennis Hamilton, Laurie Harper, Eckehard Hermann, Ron Jacobs, Chris Knight, Remy Maucherat, Larry Masinter, Joe Orton, Peter Raymond, and3253) clarifies which privileges are required for accessKeith Wannamaker. We thank Keith Wannamaker foreach method. Note thattheprivileges listed, if denied, MUST causeinitial text of the principal property search sections. Prior work on WebDAV accessto be denied. However, given that a specific implementation MAY define an additional custom privilege tocontrolaccessprotocols has been performed by Yaron Goland, Paul Leach, Lisa Dusseault, Howard Palmer, and Jon Radoff. We would like toexisting methods, having all ofacknowledge theindicated privileges does not mean that access will be granted. Note that lackfoundation laid for us by the authors of theindicated privileges does not imply that access will be denied, since a particular implementation may use a sub-privilege aggregated underDeltaV, WebDAV and HTTP protocols upon which this protocol is layered, and theindicated privilege to control access. Privileges required refer toinvaluable feedback from thecurrent resource being processed unless otherwise specified.WebDAV working group. 16. References 16.1. Normative References [REC-XML] Bray, T., Paoli, J., Sperberg-McQueen, C. and E. Maler, "Extensible Markup Language (XML) 1.0 ((Third ed)", W3C REC REC-xml-20040204, February 2004, <http://www.w3.org/TR/2004/REC-xml-20040204>. [REC-XML-INFOSET] Cowan, J. and R. Tobin, "XML Information Set (Second Edition)", W3C REC REC-xml-infoset- 20040204, February 2004, <http://www.w3.org/TR/2004/REC-xml-infoset- 20040204/>. [REC-XML-NAMES] Bray, T., Hollander, D. and A. Layman, "Namespaces in XML", W3C REC REC-xml-names-19990114, January 1999, <http://www.w3.org/TR/1999/REC-xml-names- 19990114>. [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. Clemm, et al.ExpiresStandards Track [Page 62] RFC 3744 WebDAV Access Control Protocol May 2004 [RFC2518] Goland, Y., Whitehead, E., Faizi, A., Carter, S. and D. Jensen, "HTTP Extensions for Distributed Authoring -- WEBDAV", RFC 2518, February 1999. [RFC2616] Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L., Leach, P. and T. Berners-Lee, "Hypertext Transfer Protocol -- HTTP/1.1", RFC 2616, June22, 2004 [Page 70] Internet-Draft WebDAV1999. [RFC2617] Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A. and L. Stewart, "HTTP Authentication: Basic and Digest AccessControl Protocol December 2003 +---------------------------------+---------------------------------+ | METHOD | PRIVILEGES | +---------------------------------+---------------------------------+ | GET | <D:read> | | HEAD | <D:read> | | OPTIONS | <D:read> | | PUT (target exists) | <D:write-content> on target | | | resource | | PUT (no target exists) | <D:bind> on parent collection | | | of target | | PROPPATCH | <D:write-properties> | | ACL | <D:write-acl> | | PROPFIND | <D:read> (plus <D:read-acl>Authentication", RFC 2617, June 1999. [RFC3023] Murata, M., St.Laurent, S. and| | | <D:read-current-user-privilege- | | | set> as needed) | | COPY (target exists) | <D:read>, <D:write-content>D. Kohn, "XML Media Types", RFC 3023, January 2001. [RFC3253] Clemm, G., Amsden, J., Ellison, T., Kaler, C. and| | | <D:write-properties> on target | | | resource | | COPY (no target exists) | <D:read>, <D:bind> on target | | | collection | | MOVE (no target exists) | <D:unbind> on source collection | | |J. Whitehead, "Versioning Extensions to WebDAV", RFC 3253, March 2002. [RFC3530] Shepler, S., Ed., Callaghan, B., Robinson, D., Thurlow, R., Beame, C., Eisler, M. and D. Noveck, "Network File System (NFS) version 4 Protocol", RFC 3530, April 2003. [RFC3629] Yergeau, F., "UTF-8, a transformation format of ISO 10646", STD 63, RFC 3629 November 2003. 16.2. Informative References [RFC2251] Wahl, M., Howes, T. and<D:bind> on target | | | collection | | MOVE (target exists) | As above, plus <D:unbind> on | | | the target collection | | DELETE | <D:unbind> on parent collection | | LOCK (target exists) | <D:write-content> | | LOCK (no target exists) | <D:bind> on parent collection | | MKCOL | <D:bind> on parent collection | | UNLOCK | <D:unlock> | | CHECKOUT | <D:write-properties> | | CHECKIN | <D:write-properties> | | REPORT | <D:read> (on all referenced | | | resources) | | VERSION-CONTROL | <D:write-properties> | | MERGE | <D:write-content> | | MKWORKSPACE | <D:write-content> on parent | | | collection | | BASELINE-CONTROL | <D:write-properties>S. Kille, "Lightweight Directory Access Protocol (v3)", RFC 2251, December 1997. [RFC2255] Howes, T. and| | | <D:write-content> | | MKACTIVITY | <D:write-content> on parent | | | collection | +---------------------------------+---------------------------------+M. Smith, "The LDAP URL Format", RFC 2255, December 1997. [UNICODE4] The Unicode Consortium, "The Unicode Standard - Version 4.0", Addison-Wesley , August 2003, <http://www.unicode.org/versions/Unicode4.0.0/>. ISBN 0321185781. Clemm, et al. Standards Track [Page 63] RFC 3744 WebDAV Access Control Protocol May 2004 AppendixC. Resolved issues (toA. WebDAV XML Document Type Definition Addendum All XML elements defined in this Document Type Definition (DTD) belong to the DAV namespace. This DTD should beremoved by RFC Editor before publication)viewed as an addendum to the DTD provided in [RFC2518], section 23.1. <!-- Privileges -- (Section 3)> <!ELEMENT read EMPTY> <!ELEMENT write EMPTY> <!ELEMENT write-properties EMPTY> <!ELEMENT write-content EMPTY> <!ELEMENT unlock EMPTY> <!ELEMENT read-acl EMPTY> <!ELEMENT read-current-user-privilege-set EMPTY> <!ELEMENT write-acl EMPTY> <!ELEMENT bind EMPTY> <!ELEMENT unbind EMPTY> <!ELEMENT all EMPTY> <!-- Principal Properties (Section 4) --> <!ELEMENT principal EMPTY> <!ELEMENT alternate-URI-set (href*)> <!ELEMENT principal-URL (href)> <!ELEMENT group-member-set (href*)> <!ELEMENT group-membership (href*)> <!-- Access Control Properties (Section 5) --> <!-- DAV:owner Property (Section 5.1) --> <!ELEMENT owner (href?)> <!-- DAV:group Property (Section 5.2) --> <!ELEMENT group (href?)> <!-- DAV:supported-privilege-set Property (Section 5.3) --> <!ELEMENT supported-privilege-set (supported-privilege*)> <!ELEMENT supported-privilege (privilege, abstract?, description, supported-privilege*)> <!ELEMENT privilege ANY> <!ELEMENT abstract EMPTY> <!ELEMENT description #PCDATA> Clemm, et al.Expires June 22, 2004Standards Track [Page71] Internet-Draft64] RFC 3744 WebDAV Access Control ProtocolDecember 2003 Issues that were either rejected or resolved in this version of this document. C.1 ED_references_names Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001711.html> julian.reschke@greenbytes.de (2003-11-03): Replace "Informative References" by "Informational References". Resolution (2003-11-06): Section title renamed from "Informative References" to "Informational References" (no change tracking). C.2 ED_RFC2386 Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001711.html> julian.reschke@greenbytes.de (2003-11-03): RFC2386 is listed, but not mentioned in the spec. Resolution (2003-11-06): Entry RFC2386 removed from references (no change tracking). C.3 ED_example_host_names Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001719.html> julian.reschke@greenbytes.de (2003-11-06): When changing the host names, we forgot to also update user names that appear in "Authorization" headers (such as "gclemm@webdav.org"). I'd recommend to just replace "@webdav.org" with "@example.com". Also fix broken realms (always say "users@example.com"). Resolution (2003-11-06): All realms changed to "users@example.com". C.4 ED_authors_list Type: edit geoffrey.clemm@us.ibm.com (2003-11-06): Remove Anne Hopkins from authors list (keep her name in the Acknowledgements section).May 2004 <!-- DAV:current-user-privilege-set Property (Section 5.4) --> <!ELEMENT current-user-privilege-set (privilege*)> <!-- DAV:acl Property (Section 5.5) --> <!ELEMENT acl (ace)* > <!ELEMENT ace ((principal | invert), (grant|deny), protected?, inherited?)> <!ELEMENT principal (href) | all | authenticated | unauthenticated | property | self)> <!ELEMENT all EMPTY> <!ELEMENT authenticated EMPTY> <!ELEMENT unauthenticated EMPTY> <!ELEMENT property ANY> <!ELEMENT self EMPTY> <!ELEMENT invert principal> <!ELEMENT grant (privilege+)> <!ELEMENT deny (privilege+)> <!ELEMENT privilege ANY> <!ELEMENT protected EMPTY> <!ELEMENT inherited (href)> <!-- DAV:acl-restrictions Property (Section 5.6) --> <!ELEMENT acl-restrictions (grant-only?, no-invert?, deny-before-grant?, required-principal?)> <!ELEMENT grant-only EMPTY> <!ELEMENT no-invert EMPTY> <!ELEMENT deny-before-grant EMPTY> <!ELEMENT required-principal (all? | authenticated? | unauthenticated? | self? | href* |property*)> <!-- DAV:inherited-acl-set Property (Section 5.7) --> <!ELEMENT inherited-acl-set (href*)> <!-- DAV:principal-collection-set Property (Section 5.8) --> Clemm, et al.Expires June 22, 2004Standards Track [Page72] Internet-Draft65] RFC 3744 WebDAV Access Control ProtocolDecember 2003 geoffrey.clemm@us.ibm.com (2003-12-20): Add Julian Reschke to authors list. Resolution (2003-12-20): Removed Anne Hopkins from authors list (both in front page and in "authors" section). Added Julian Reschke to authors list. C.5 ED_non_ASCII Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001712.html> julian.reschke@greenbytes.de (2003-11-03): some non-ASCII characters (long dashes and quotes) are present Resolution (2003-11-04): Fixed in Sections 3.1, 3.3, 3.4, 6, 7.1.1. C.6 ED_artwork_line_width Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001712.html> julian.reschke@greenbytes.de (2003-11-03): In request/responses/DTDs, the line width sometimes exceeds what's allowed in an RFC (I think 72 characters). Resolution (2003-11-04): Added line breaks and/or changed indention in some of the figures (no change tracking). C.7 ED_xml_typos Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001712.html> julian.reschke@greenbytes.de (2003-11-03): There were a few typos in the XML examples Resolution (2003-11-04): Several XML message bodies fixed (no change tracking). C.8 1_ref_options Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001718.html> Clemm, et al. Expires June 22,May 2004[Page 73] Internet-Draft WebDAV<!ELEMENT principal-collection-set (href*)> <!-- Access ControlProtocol December 2003 julian.reschke@greenbytes.de (2003-11-04): "Client discoveryand Existing Methods (Section 7) --> <!ELEMENT need-privileges (resource)* > <!ELEMENT resource ( href, privilege ) <!-- ACL method preconditions (Section 8.1.1) --> <!ELEMENT no-ace-conflict EMPTY> <!ELEMENT no-protected-ace-conflict EMPTY> <!ELEMENT no-inherited-ace-conflict EMPTY> <!ELEMENT limited-number-of-aces EMPTY> <!ELEMENT grant-only EMPTY> <!ELEMENT no-invert EMPTY> <!ELEMENT deny-before-grant EMPTY> <!ELEMENT no-abstract EMPTY> <!ELEMENT not-supported-privilege EMPTY> <!ELEMENT missing-required-principal EMPTY> <!ELEMENT recognized-principal EMPTY> <!ELEMENT allowed-principal EMPTY> <!-- REPORTs (Section 9) --> <!ELEMENT acl-principal-prop-set ANY> ANY value: a sequence ofaccess control capability using OPTIONS is described in Section 7.1." The reference should be to "7.2". Resolution (2003-11-04): Replaced "7.1"one or more elements, with"7.2" C.9 3.2_ED_RFC2518 Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001711.html> julian.reschke@greenbytes.de (2003-11-03): Fix references ("[WEBDAV]") to RFC2518. Resolution (2003-11-05): Replaced "[WEBDAV]" by "[RFC2518]". C.10 3.3_ED_priv_section_titles Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001741.html> julian.reschke@greenbytes.de (2003-11-07): Section titles for DAV:write-properties, DAV:write-content and DAV:unlock missing word "Privilege". Resolution (2003-11-07): Added "Privilege" to the section titles (no change tracking). C.11 3.4_write-content-description Type: change <http://mailman.webdav.org/pipermail/acl/2003-November/001757.html> csharp@mac.com (2003-11-18): If DAV:write-content is justat most one DAV:prop element. <!ELEMENT principal-match ((principal-property | self), prop?)> <!ELEMENT principal-property ANY> ANY value: anaggregate of DAV:bind and DAV:unbind why doesn't it state that "the client can safely expect that no other privilege needs to be granted to have access to MKCOL,PUT, DELETE,MOVE, COPY"? If itelement whose value identifies a property. The expectation isnot an aggregate why does it exist? Resolution (2003-11-18): Update descriptionthe value ofDAV:write-content so that it doesn't refer to collection membership; clarifythedistinction between PUT to an existing reource (modifying content) and PUT onnamed property typically contains anunmapped URI (creating a new resource, requiring privileges onhref element that contains theparent collection). Define aggregationURI ofDAV:bind and DAV:unbind in 3.12.a principal <!ELEMENT self EMPTY> <!ELEMENT principal-property-search ((property-search+), prop?) > <!ELEMENT property-search (prop, match) > <!ELEMENT match #PCDATA > <!ELEMENT principal-search-property-set ( principal-search-property*) > <!ELEMENT principal-search-property (prop, description) > <!ELEMENT description #PCDATA > Clemm, et al.Expires June 22, 2004Standards Track [Page74] Internet-Draft66] RFC 3744 WebDAV Access Control ProtocolDecember 2003 C.12 3.12_ED_bad_reference Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001712.html> julian.reschke@greenbytes.de (2003-11-03): section 3.12 talks about "defined above in Sections 3.1-3.9". I think this should be "defined above in Sections 3.1-3.11" or simply "defined in above sections" geoffrey.clemm@us.ibm.com (2003-11-06): For the section 3.12 issue, I'd prefer to change it to say "Sections 3.1-3.10" (the DAV:all privilege from section 3.11 should not be included in another privilege). Resolution (2003-11-06): Replace "Sections 3.1-3.9" by "Sections 3.1-3.10". C.13 4.1_ED_RFC2589 Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001711.html> julian.reschke@greenbytes.de (2003-11-03): text quotes RFC2589 ("Lightweight Directory Access Protocol (v3): Extensions for Dynamic Directory Services"), but references section has RFC2251 ("Lightweight Directory Access Protocol (v3)") geoffrey.clemm@us.ibm.com (2003-11-06): The LDAP reference should be RFC2251 (not RFC2589). Resolution (2003-11-06): Replaced "[RFC2589]" by "[RFC2251]". C.14 5.1_owner_group_details Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001737.html> julian.reschke@greenbytes.de (2003-11-07): State that DAV:owner and DAV:group MAY be protected. Also state that they MAY be empty if the server can't provide the information. Resolution (2003-11-08): Added paragraphs stating both for both properties. Clemm, et al. Expires June 22,May 2004[Page 75] Internet-DraftAppendix B. WebDAVAccess Control Protocol December 2003 C.15 5.1_owner_href_optional Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001728.html> julian.reschke@greenbytes.de (2003-11-06): href element should be optional in case the server doesn't have owner information. Resolution (2003-11-06): Updated DTD fragment. C.16 5.1.2_responsedescription Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001737.html> julian.reschke@greenbytes.de (2003-11-07): Add DAV:error element to DAV:responsedescriptionMethod Privilege Table (Normative) The following table of WebDAV methods (as defined inexampleRFC 2518, 2616, andupdate explanation. Resolution (2003-11-08): DAV:error subelement added to DAV:responsedescription in response. C.17 5.5.5_ED_section_numbering Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001712.html> julian.reschke@greenbytes.de (2003-11-03): missing section numbering3253) clarifies which privileges are required for"Example: Retrieving DAV:acl-restrictions" Resolution (2003-11-04): Added section number (no change tracking). C.18 5.8_unbind Type: change <http://mailman.webdav.org/pipermail/acl/2003-November/001714.html> julian.reschke@greenbytes.de (2003-11-03): A:unbind: mismatch between XML response and privilege tree in figure. eric.sedlar@oracle.com (2003-11-04): The change inaccess for each method. Note that theXML response shouldprivileges listed, if denied, MUST cause access to berolled back. "delete" isdenied. However, given that a specific implementation MAY define an additional custom privilegein the example. Resolution (2003-11-04): Changed example response backtouse Clemm, et al. Expires June 22, 2004 [Page 76] Internet-Draft WebDAV Access Control Protocol December 2003 A:delete. C.19 6_ED_RFC3010 Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001711.html> julian.reschke@greenbytes.de (2003-11-03): Fix references ("[NFSV4]") to RFC3010. Resolution (2003-11-11): Replaced "[NVSV4]" by "[RFC3530]" (which obsoletes RFC3010). C.20 6_group_property Type: change <http://mailman.webdav.org/pipermail/acl/2003-November/001713.html> julian.reschke@greenbytes.de (2003-11-03): in section 6control access to existing methods, having all of thefollowing example is used...: <D:principal><D:property><D:group/></ D:property></D:principal> However, there is no such thing as a DAV:group property. I'mindicated privileges does notsure what the best fix for this would be... If the "group" thing is essential, this maymean thatan important live property is missing? If it'saccess will be granted. Note that lack of the indicated privileges does notessential, can this example rewritten withoutimply thatproperty? (Or with a non-DAV: property from an example namespace?) geoffry.clemm@us.ibm.com (2003-11-06): Proposal to add DAV:group property. eric.sedlar@oracle.com (2003-11-06): I have a problem with adding this property. Ifaccess will be denied, since a particularvendor wantsimplementation may use a sub-privilege aggregated under the indicated privilege toadd <vendor:group> that's great, but I think we are goingcontrol access. Privileges required refer tohave minimal interoperability with this. We discussed this beforethe current resource being processed unless otherwise specified. Clemm, et al. Standards Track [Page 67] RFC 3744 WebDAV Access Control Protocol May 2004 +---------------------------------+---------------------------------+ | METHOD | PRIVILEGES | +---------------------------------+---------------------------------+ | GET | <D:read> | | HEAD | <D:read> | | OPTIONS | <D:read> | | PUT (target exists) | <D:write-content> on target | | | resource | | PUT (no target exists) | <D:bind> on parent collection | | | of target | | PROPPATCH | <D:write-properties> | | ACL | <D:write-acl> | | PROPFIND | <D:read> (plus <D:read-acl> and | | | <D:read-current-user-privilege- | | | set> as needed) | | COPY (target exists) | <D:read>, <D:write-content> and | | | <D:write-properties> on target | | | resource | | COPY (no target exists) | <D:read>, <D:bind> on target | | | collection | | MOVE (no target exists) | <D:unbind> on source collection | | | andweren't able to find anyone who actually wanted to use this. Resolution (2003-11-06): Added section 5.2 ("DAV:group"). Subsequent sections renumbered. C.21 5.5.2_TYPO Type: edit <http://mailman.webdav.org/pipermail/acl/2003-October/001691.html> peter.nevermann@softwareag.com (2003-10-22): Precondition Clemm, et al. Expires June 22, 2004 [Page 77] Internet-Draft WebDAV Access Control Protocol December 2003 DAV:no-invert should refer to section 5.5.2 for<D:bind> on target | | | collection | | MOVE (target exists) | As above, plus <D:unbind> on | | | theDAV:no-invert constraint ... not 6.3.4. Resolution (2003-11-04): Reference fixed. C.22 9.4_ED_reference_casemap Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001711.html> julian.reschke@greenbytes.de (2003-11-03): Update [CaseMap] reference to "[UNICODE4] The Unicode Consortium, "The Unicode Standard - Version 4.0", Addison-Wesley, August 2003. ISBN 0321185781" (section 5.18). Resolution (2003-11-06): Removed "[CaseMap]" from references, add "[UNICODE]" to references. Cite using '...especially Section 2.3 ("Caseless Matching"), Section 5.18, Subsection "Caseless Matching"...'. C.23 11_ED_RFC2279 Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001711.html> julian.reschke@greenbytes.de (2003-11-03): Replace [UTF-8] by [RFC2279] for consistency. Resolution (2003-11-11): Reference name changed both in text and references section to RFC3629 (update of RFC2279). C.24 A_ED_appendices Type: edit <http://mailman.webdav.org/pipermail/acl/2003-November/001712.html> julian.reschke@greenbytes.de (2003-11-03): Appendices should indeed be appendices, not a regular section (see draft-rfc-editor-rfc2223bis). Resolution (2003-11-04): Moved Section 19.1 to Appendix Atarget collection | | DELETE | <D:unbind> on parent collection | | LOCK (target exists) | <D:write-content> | | LOCK (no target exists) | <D:bind> on parent collection | | MKCOL | <D:bind> on parent collection | | UNLOCK | <D:unlock> | | CHECKOUT | <D:write-properties> | | CHECKIN | <D:write-properties> | | REPORT | <D:read> (on all referenced | | | resources) | | VERSION-CONTROL | <D:write-properties> | | MERGE | <D:write-content> | | MKWORKSPACE | <D:write-content> on parent | | | collection | | BASELINE-CONTROL | <D:write-properties> andSection 19.2 to Appendix B.| | | <D:write-content> | | MKACTIVITY | <D:write-content> on parent | | | collection | +---------------------------------+---------------------------------+ Clemm, et al.Expires June 22, 2004Standards Track [Page78] Internet-Draft68] RFC 3744 WebDAV Access Control ProtocolDecember 2003May 2004 Index A ACL method4140 C Condition Names DAV:allowed-principal (pre)4342 DAV:deny-before-grant (pre)4341 DAV:grant-only (pre)4341 DAV:limited-number-of-aces (pre)4341 DAV:missing-required-principal (pre)4342 DAV:no-abstract (pre)4341 DAV:no-ace-conflict (pre)4241 DAV:no-inherited-ace-conflict (pre)4241 DAV:no-invert (pre)4341 DAV:no-protected-ace-conflict (pre)4241 DAV:not-supported-privilege (pre)4342 DAV:number-of-matches-within-limits (post)50, 5548, 53 DAV:recognized-principal (pre)4342 D DAV header compliance class 'access-control'4038 DAV:acl property2423 DAV:acl-principal-prop-set report4948 DAV:acl-restrictions property2827 DAV:all privilege 13 DAV:allowed-principal precondition4342 DAV:alternate-URI-set property 14 DAV:bind privilege1312 DAV:current-user-privilege-set property2221 DAV:deny-before-grant precondition4341 DAV:grant-only precondition4341 DAV:group property 18 DAV:group-member-set property1514 DAV:group-membership property1514 DAV:inherited-acl-set property3129 DAV:limited-number-of-aces precondition4341 DAV:missing-required-principal precondition4342 DAV:no-abstract precondition4341 DAV:no-ace-conflict precondition4241 DAV:no-inherited-ace-conflict precondition4241 DAV:no-invert precondition4341 DAV:no-protected-ace-conflict precondition4241 DAV:not-supported-privilege precondition4342 DAV:number-of-matches-within-limits postcondition50, 5548, 53 DAV:owner property1615 Clemm, et al.Expires June 22, 2004Standards Track [Page79] Internet-Draft69] RFC 3744 WebDAV Access Control ProtocolDecember 2003May 2004 DAV:principal resource type1413 DAV:principal-collection-set property3130 DAV:principal-match report5150 DAV:principal-property-search5351 DAV:principal-search-property-set5856 DAV:principal-URL property1514 DAV:read privilege 10 DAV:read-acl privilege1211 DAV:read-current-user-privilege-set privilege 12 DAV:recognized-principal precondition4342 DAV:supported-privilege-set property1918 DAV:unbind privilege1312 DAV:unlock privilege1211 DAV:write privilege1110 DAV:write-acl privilege1312 DAV:write-content privilege1110 DAV:write-properties privilege1110 M Methods ACL4140 P Privileges DAV:all 13 DAV:bind1312 DAV:read 10 DAV:read-acl1211 DAV:read-current-user-privilege-set 12 DAV:unbind13 DAV:unlock12DAV:writeDAV:unlock 11 DAV:write 10 DAV:write-acl1312 DAV:write-content 11 DAV:write-properties1110 Properties DAV:acl2423 DAV:acl-restrictions2827 DAV:alternate-URI-set 14 DAV:current-user-privilege-set2221 DAV:group 18 DAV:group-member-set1514 DAV:group-membership1514 DAV:inherited-acl-set3129 DAV:owner1615 DAV:principal-collection-set3130 DAV:principal-URL1514 DAV:supported-privilege-set1918 Clemm, et al.Expires June 22, 2004Standards Track [Page80] Internet-Draft70] RFC 3744 WebDAV Access Control ProtocolDecember 2003May 2004 R Reports DAV:acl-principal-prop-set4947 DAV:principal-match5149 DAV:principal-property-search5351 DAV:principal-search-property-set5856 Resource Types DAV:principal1413 Authors' Addresses Geoffrey Clemm IBM 20 Maguire Road Lexington, MA 02421 EMail: geoffrey.clemm@us.ibm.com Julian F. Reschke greenbytes GmbH Salzmannstrasse 152 Muenster, NW 48159 Germany EMail: julian.reschke@greenbytes.de Eric Sedlar Oracle Corporation 500 Oracle Parkway Redwood Shores, CA 94065 EMail: eric.sedlar@oracle.com Jim Whitehead U.C. Santa Cruz, Dept. of Computer Science 1156 High Street Santa Cruz, CA 95064 EMail: ejw@cse.ucsc.edu Clemm, et al.Expires June 22, 2004Standards Track [Page81] Internet-Draft71] RFC 3744 WebDAV Access Control ProtocolDecember 2003May 2004 Full Copyright Statement Copyright (C) The Internet Society (2004). This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the authors retain all their rights. This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Intellectual PropertyStatementThe IETF takes no position regarding the validity or scope of anyintellectual propertyIntellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available;neithernor does it represent that it has made any independent effort to identify any such rights. Information on theIETF'sprocedures with respect to rights instandards-track and standards-related documentationRFC documents can be found inBCP-11.BCP 78 and BCP 79. Copies ofclaims of rightsIPR disclosures madeavailable for publicationto the IETF Secretariat and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights byimplementorsimplementers or users of this specification can be obtained from the IETFSecretariat.on-line IPR repository at http://www.ietf.org/ipr. The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rightswhichthat may cover technology that may be required topracticeimplement this standard. Please address the information to the IETFExecutive Director. Full Copyright Statement Copyright (C) The Internet Society (2003). All Rights Reserved. This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the Internet Society or other Internet organizations, except as needed for the purpose of developing Internet standards in which case the procedures for copyrights defined in the Internet Standards process must be followed, or as required to translate it into languages other than English. The limited permissions granted above are perpetual and will not be revoked by the Internet Society or its successors or assignees. This document and the information contained herein is provided on an "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION Clemm, et al. Expires June 22, 2004 [Page 82] Internet-Draft WebDAV Access Control Protocol December 2003 HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Acknowledgmentat ietf-ipr@ietf.org. Acknowledgement Funding for the RFC Editor function is currently provided by the Internet Society. Clemm, et al.Expires June 22, 2004Standards Track [Page83]72] ----