RFC 
 TOC 
Network Working Group  G. Clemm 
INTERNET DRAFT  IBM 
<draft-ietf-webdav-acl-13>   J. F. Reschke 
Category: Standards Track  greenbytes 
Expires: June 2004  E. Sedlar 
  Oracle Corporation 
  J. Whitehead 
  U.C. Santa Cruz 
  December 2003 

WebDAV Access Control Protocol
draft-ietf-webdav-acl-13

Status of this Memo

This document is an Internet-Draft and is in full conformance with all provisions of Section 10 of RFC2026.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts.

Internet-Drafts are draft documents valid for a maximum of six months and may 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 list of current Internet-Drafts can be accessed at <http://www.ietf.org/ietf/1id-abstracts.txt>.

The list of Internet-Draft Shadow Directories can be accessed at <http://www.ietf.org/shadow.html>.

This Internet-Draft will expire in June 2004.

Copyright Notice

Copyright (C) The Internet Society (2003). 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 Web resources 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 mailing list. Other related documents can be found at <http://www.example.com/acl/>, and <http://www.ics.uci.edu/pub/ietf/webdav/>.


 RFC 
 TOC 

Table of Contents

Introduction
 1.1  Terms
 1.2  Notational Conventions
Principals
Privileges
 3.1  DAV:read Privilege
 3.2  DAV:write Privilege
 3.3  DAV:write-properties Privilege
 3.4  DAV:write-content Privilege
 3.5  DAV:unlock Privilege
 3.6  DAV:read-acl Privilege
 3.7  DAV:read-current-user-privilege-set Privilege
 3.8  DAV:write-acl Privilege
 3.9  DAV:bind Privilege
 3.10  DAV:unbind Privilege
 3.11  DAV:all Privilege
 3.12  Aggregation of Predefined Privileges
Principal Properties
 4.1  DAV:alternate-URI-set
 4.2  DAV:principal-URL
 4.3  DAV:group-member-set
 4.4  DAV:group-membership
Access Control Properties
 5.1  DAV:owner
  5.1.1  Example: Retrieving DAV:owner
  5.1.2  Example: An Attempt to Set DAV:owner
 5.2  DAV:group
 5.3  DAV:supported-privilege-set
  5.3.1  Example: Retrieving a List of Privileges Supported on a Resource
 5.4  DAV:current-user-privilege-set
  5.4.1  Example: Retrieving the User's Current Set of Assigned Privileges
 5.5  DAV:acl
  5.5.1  ACE Principal
  5.5.2  ACE Grant and Deny
  5.5.3  ACE Protection
  5.5.4  ACE Inheritance
  5.5.5  Example: Retrieving a Resource's Access Control List
 5.6  DAV:acl-restrictions
  5.6.1  DAV:grant-only
  5.6.2  DAV:no-invert ACE Constraint
  5.6.3  DAV:deny-before-grant
  5.6.4  Required Principals
  5.6.5  Example: Retrieving DAV:acl-restrictions
 5.7  DAV:inherited-acl-set
 5.8  DAV:principal-collection-set
  5.8.1  Example: Retrieving DAV:principal-collection-set
 5.9  Example: PROPFIND to retrieve access control properties
ACL Evaluation
Access Control and existing methods
 7.1  Any HTTP method
  7.1.1  Error Handling
 7.2  OPTIONS
  7.2.1  Example - OPTIONS
 7.3  MOVE
 7.4  COPY
 7.5  LOCK
Access Control Methods
 8.1  ACL
  8.1.1  ACL Preconditions
  8.1.2  Example: the ACL method
  8.1.3  Example: ACL method failure due to protected ACE conflict
  8.1.4  Example: ACL method failure due to an inherited ACE conflict
  8.1.5  Example: ACL method failure due to an attempt to set grant and deny in a single ACE
Access Control Reports
 9.1  REPORT Method
 9.2  DAV:acl-principal-prop-set Report
  9.2.1  Example: DAV:acl-principal-prop-set Report
 9.3  DAV:principal-match REPORT
  9.3.1  Example: DAV:principal-match REPORT
 9.4  DAV:principal-property-search REPORT
  9.4.1  Matching
  9.4.2  Example: successful DAV:principal-property-search REPORT
 9.5  DAV:principal-search-property-set REPORT
  9.5.1  Example: DAV:principal-search-property-set REPORT
10  XML Processing
11  Internationalization Considerations
12  Security Considerations
 12.1  Increased Risk of Compromised Users
 12.2  Risks of the DAV:read-acl and DAV:current-user-privilege-set Privileges
 12.3  No Foreknowledge of Initial ACL
13  Authentication
14  IANA Considerations
15  Acknowledgements
16  References
 16.1  Normative References
 16.2  Informative References
§  Author's Addresses
WebDAV XML Document Type Definition Addendum
WebDAV Method Privilege Table (Normative)
§  Intellectual Property and Copyright Statements
§  Index

Issues list

11_ED_RFC2279 edit closed 2003-11-03 julian.reschke@greenbytes.de
1_ref_options edit closed 2003-11-04 julian.reschke@greenbytes.de
3.12_ED_bad_reference edit closed 2003-11-03 julian.reschke@greenbytes.de
3.2_ED_RFC2518 edit closed 2003-11-03 julian.reschke@greenbytes.de
3.3_ED_priv_section_titles edit closed 2003-11-07 julian.reschke@greenbytes.de
3.4_write-content-description change closed 2003-11-18 csharp@mac.com
4.1_ED_RFC2589 edit closed 2003-11-03 julian.reschke@greenbytes.de
5.1.2_responsedescription edit closed 2003-11-07 julian.reschke@greenbytes.de
5.1_owner_group_details edit closed 2003-11-07 julian.reschke@greenbytes.de
5.1_owner_href_optional edit closed 2003-11-06 julian.reschke@greenbytes.de
5.5.2_TYPO edit closed 2003-10-22 peter.nevermann@softwareag.com
5.5.5_ED_section_numbering edit closed 2003-11-03 julian.reschke@greenbytes.de
5.8_unbind change closed 2003-11-03 julian.reschke@greenbytes.de
6_ED_RFC3010 edit closed 2003-11-03 julian.reschke@greenbytes.de
6_group_property change closed 2003-11-03 julian.reschke@greenbytes.de
9.4_ED_reference_casemap edit closed 2003-11-03 julian.reschke@greenbytes.de
A_ED_appendices edit closed 2003-11-03 julian.reschke@greenbytes.de
ED_artwork_line_width edit closed 2003-11-03 julian.reschke@greenbytes.de
ED_authors_list edit closed 2003-11-06 geoffrey.clemm@us.ibm.com
ED_example_host_names edit closed 2003-11-06 julian.reschke@greenbytes.de
ED_non_ASCII edit closed 2003-11-03 julian.reschke@greenbytes.de
ED_references_names edit closed 2003-11-03 julian.reschke@greenbytes.de
ED_RFC2386 edit closed 2003-11-03 julian.reschke@greenbytes.de
ED_xml_typos edit closed 2003-11-03 julian.reschke@greenbytes.de
 I  ED_references_names   (type: edit, status: closed)
julian.reschke@greenbytes.de 2003-11-03 Replace "Informative References" by "Informational References".
2003-11-06 Resolution:  Section title renamed from "Informative References" to "Informational References" (no change tracking).
 I  ED_RFC2386   (type: edit, status: closed)
julian.reschke@greenbytes.de 2003-11-03 RFC2386 is listed, but not mentioned in the spec.
2003-11-06 Resolution:  Entry RFC2386 removed from references (no change tracking).
 I  ED_example_host_names   (type: edit, status: closed)
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").
2003-11-06 Resolution:  All realms changed to "users@example.com".
Associated changes in this document: 5.1.1, 5.1.2, 5.3.1, 5.4.1, 5.5.5, 5.6.5, 5.8.1, 5.9, 8.1.2, 8.1.3, 8.1.4, 8.1.5, 9.3.1.
 I  ED_authors_list   (type: edit, status: closed)
geoffrey.clemm@us.ibm.com 2003-11-06 Remove Anne Hopkins from authors list (keep her name in the Acknowledgements section).
geoffrey.clemm@us.ibm.com 2003-12-20 Add Julian Reschke to authors list.
2003-12-20 Resolution:  Removed Anne Hopkins from authors list (both in front page and in "authors" section). Added Julian Reschke to authors list.
 I  ED_non_ASCII   (type: edit, status: closed)
julian.reschke@greenbytes.de 2003-11-03 some non-ASCII characters (long dashes and quotes) are present
2003-11-04 Resolution:  Fixed in Sections 3.1, 3.3, 3.4, 6, 7.1.1.
Associated changes in this document: 3.1, 3.3, del-, 6, 7.1.1.
 I  ED_artwork_line_width   (type: edit, status: closed)
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).
2003-11-04 Resolution:  Added line breaks and/or changed indention in some of the figures (no change tracking).
 I  ED_xml_typos   (type: edit, status: closed)
julian.reschke@greenbytes.de 2003-11-03 There were a few typos in the XML examples
2003-11-04 Resolution:  Several XML message bodies fixed (no change tracking).
Associated changes in this document: 8.1.4.

 TOC 

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 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:

 I  1_ref_options   (type: edit, status: closed)
julian.reschke@greenbytes.de 2003-11-04 "Client discovery of access control capability using OPTIONS is described in Section 7.1." The reference should be to "7.2".
2003-11-04 Resolution:  Replaced "7.1" with "7.2"
Associated changes in this document: 1.

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  I Section 7.1 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

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 context of an XML fragment, the string "DAV:" will be prefixed to the element name.


 TOC 

2 Principals

A principal is a network resource that represents a distinct human or computational actor that initiates access to 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, which is a 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 has to be an http(s) scheme URL. Although an implementation SHOULD support PROPFIND and MAY support PROPPATCH to access and modify information about a principal, it is not required to do so.

A principal resource may be a group, where a group is a principal that represents a set of other principals, called the members of the group. If a person or computational agent matches a principal resource that is a member of a group, they also match the group. Membership in a group is recursive, so if a principal is a member of group GRPA, and GRPA is a member of group GRPB, then the principal is also a member of GRPB.


 TOC 

3 Privileges

Ability to perform a given method on a resource MUST be controlled by one or more privileges. Authors of protocol extensions that define new HTTP methods SHOULD specify which privileges (by defining new privileges, or mapping to ones below) are required to perform the method. A principal with no privileges to a resource MUST be denied any HTTP access to that resource, unless the principal matches an ACE constructed using the DAV:all, DAV:authenticated, or DAV:unauthenticated pseudo-principals (see Section 5.5.1). Servers MUST report a 403 "Forbidden" error if access is denied, except in the case where the privilege restricts the ability to know the resource exists, in which case 404 "Not Found" may be returned.

Privileges may be containers of other privileges, in which case they are termed "aggregate privileges". If a principal is granted or denied an aggregate privilege, it is semantically equivalent to granting or denying each of the aggregated privileges individually. For example, an implementation may define add-member and remove-member privileges that control the ability to add and remove a member of a group. Since these privileges control the ability to update the state of a group, these privileges would be aggregated by the DAV:write privilege on a group, 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 a given resource, in which case they cannot be set in an ACE on that resource. Aggregate 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 implementing the privileges defined in this specification. For example, if a server is incapable of separating the read resource capability from the read 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) that holds DAV:read, and DAV:read-acl. In this way, it is possible to set the aggregate privilege, read-all, thus coupling the setting of 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 contain itself. For example, DAV:read cannot contain DAV:read.

The set of privileges that apply to a particular resource may vary with the DAV:resourcetype of the resource, as well as between different server implementations. To promote interoperability, however, this specification defines a set 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 the other privileges defined on a particular resource. The access permissions on null resources (defined in [RFC2518], Section 3) are solely those they inherit (if any), and they are not discoverable (i.e., the access control properties specified in Section 5 are not defined on null resources). On the transition from null to stateful 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 I  - if an ACL grants access to DAV:read, the client may expect that no other privilege needs to be granted to have access to GET and PROPFIND. Additionally, the read privilege MUST control the OPTIONS method.

<!ELEMENT read EMPTY> 

3.2 DAV:write Privilege

 I  3.2_ED_RFC2518   (type: edit, status: closed)
julian.reschke@greenbytes.de 2003-11-03 Fix references ("[WEBDAV]") to RFC2518.
2003-11-05 Resolution:  Replaced "[WEBDAV]" by "[RFC2518]".
Associated changes in this document: 3.2.

The write privilege controls methods that lock a resource or modify the content, dead properties, or (in the case of a collection) membership of the resource, such as PUT and PROPPATCH. Note that state modification is also controlled via locking (see section 5.3 of  I [WEBDAV] [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 to be granted to have access to PUT and PROPPATCH.

<!ELEMENT write EMPTY> 

3.3 DAV:write-properties Privilege

 I  3.3_ED_priv_section_titles   (type: edit, status: closed)
julian.reschke@greenbytes.de 2003-11-07 Section titles for DAV:write-properties, DAV:write-content and DAV:unlock missing word "Privilege".
2003-11-07 Resolution:  Added "Privilege" to the section titles (no change tracking).

The DAV:write-properties privilege controls methods that modify the dead properties of the resource, such as PROPPATCH. Whether this privilege may be used to control access to any live properties is determined by the implementation. Any implementation-defined privilege that also controls access to methods modifying dead properties must be aggregated under DAV:write-properties I  - e.g. if an ACL grants access to DAV:write-properties, the client can safely expect that no other privilege needs to be granted to have access to PROPPATCH.

<!ELEMENT write-properties EMPTY> 

3.4 DAV:write-content Privilege

 I  3.4_write-content-description   (type: change, status: closed)
csharp@mac.com 2003-11-18 If DAV:write-content is just an aggregate 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 it is not an aggregate why does it exist?
2003-11-18 Resolution:  Update description of DAV:write-content so that it doesn't refer to collection membership; clarify the distinction between PUT to an existing reource (modifying content) and PUT on an unmapped URI (creating a new resource, requiring privileges on the parent collection). Define aggregation of DAV:bind and DAV:unbind in 3.12.
Associated changes in this document: 3.4, 3.12.
 I  

The DAV:write-content privilege controls methods that modify the content or (in the case of a collection) membership of the resource, such as PUT and DELETE. Any implementation-defined privilege that also controls access to content or alteration of collection membership must be aggregated under DAV:write-content I  - e.g. if an ACL grants access to DAV:write-content, the client can safely expect that no other privilege needs to be granted to have access to PUT or DELETE.

The DAV:write-content privilege controls methods that modify the content of an existing resource, such as PUT. Any implementation-defined privilege that also controls access to content must be aggregated under DAV:write-content - e.g. if an ACL grants access to DAV:write-content, the client can safely expect that no other privilege needs to be granted to have access to PUT. Note that PUT - when applied to an unmapped URI - creates a new resource and therefore is controlled by the DAV:bind privilege on the parent collection.

<!ELEMENT write-content EMPTY> 

3.5 DAV:unlock Privilege

The DAV:unlock privilege controls the use of the UNLOCK method by a principal other than the lock owner (the principal that created a lock can always perform an UNLOCK). While the set of users who may lock a resource is most commonly the same set of users who may modify a resource, servers may allow various kinds of administrators to unlock resources locked by others. Any privilege controlling access by non-lock owners to UNLOCK 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 remove a lock only if they have DAV:unlock privilege and they issue an UNLOCK with the correct lock token. Lock timeout is not affected by the DAV:unlock privilege.

<!ELEMENT unlock EMPTY> 

3.6 DAV:read-acl Privilege

The DAV:read-acl privilege controls the use of PROPFIND to retrieve the DAV:acl property of the resource.

<!ELEMENT read-acl EMPTY> 

3.7 DAV:read-current-user-privilege-set Privilege

The DAV:read-current-user-privilege-set privilege controls the use of PROPFIND to retrieve the DAV:current-user-privilege-set property of the resource.

Clients are intended to use this property to visually indicate in their UI items that are dependent on the permissions of a resource, for example, by graying out resources that are not writeable.

This privilege is separate from DAV:read-acl because there is a need to allow most users access to the privileges permitted the current user (due to its use in creating the UI), while the full ACL contains information that may not be appropriate for the current authenticated user. As a result, the set of users who can view the full ACL is expected to be much 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> 

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 privilege allows a method to add a new member URL to the specified collection (for example via PUT or MKCOL). It is ignored for resources that are not collections.

<!ELEMENT bind EMPTY> 

3.10 DAV:unbind Privilege

The DAV: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 that are not collections.

<!ELEMENT unbind EMPTY> 

3.11 DAV:all Privilege

DAV:all is an aggregate privilege that contains the entire set of privileges that can be applied to the resource.

<!ELEMENT all EMPTY> 

3.12 Aggregation of Predefined Privileges

 I  3.12_ED_bad_reference   (type: edit, status: closed)
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).
2003-11-06 Resolution:  Replace "Sections 3.1-3.9" by "Sections 3.1-3.10".
Associated changes in this document: 3.12.

Server implementations are free to aggregate the predefined privileges (defined above in Sections  I 3.1-3.9 3.1-3.10) subject to the 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  I DAV:bind, DAV:unbind, DAV:write-properties and DAV:write-content.


 TOC 

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 in Section 13.2 of [RFC2518]), and a DAV:resourcetype property (defined in Section 13.9 of [RFC2518]). Additionally, a principal MUST report the DAV:principal XML element in the value of the DAV:resourcetype property. The element type declaration for DAV:principal is:

<!ELEMENT principal EMPTY> 

This protocol 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

 I  4.1_ED_RFC2589   (type: edit, status: closed)
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).
2003-11-06 Resolution:  Replaced "[RFC2589]" by "[RFC2251]".
Associated changes in this document: 4.1.

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) that may be consulted by a client to gain additional knowledge concerning a principal. One expected use for this property is the storage of an LDAP [RFC2255] scheme URL. A user-agent encountering an LDAP URL could use LDAP  I [RFC2589] [RFC2251] to retrieve additional machine-readable directory information about the principal, and display that information in its user interface. Support for this property is REQUIRED, and the value is empty if no alternate URI exists for the principal.

<!ELEMENT alternate-URI-set (href*)> 

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 contains the URL that MUST be used to identify this principal in an ACL request. Support for this property is REQUIRED.

<!ELEMENT principal-URL (href)> 

4.3 DAV:group-member-set

This property of a group principal identifies the principals that are direct members of this group. Since a group may be a member of another group, a group may also have indirect members (i.e. the members of its direct members). A URL in the DAV:group-member-set for a principal MUST be the DAV: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 that a server may allow a group to be a member of another group, in which case the DAV:group-membership of those other groups would need to be queried in order to determine the groups in which the principal is indirectly a member. Support for this property is REQUIRED.

<!ELEMENT group-membership (href*)> 

 TOC 

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 the properties defined in this section.

Access control properties (especially DAV:acl and DAV:inherited-acl-set) are defined on the resource identified by the Request-URI of a PROPFIND request. A direct consequence is that if the resource is accessible via multiple URI, the value of access control properties is the same across these URI.

HTTP resources that support the WebDAV Access Control Protocol MUST contain the following properties. Null resources (described in Section 3 of [RFC2518]) MUST NOT contain the following properties.

5.1 DAV:owner

 I  5.1_owner_group_details   (type: edit, status: closed)
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.
2003-11-08 Resolution:  Added paragraphs stating both for both properties.
Associated changes in this document: 5.1, 5.1, 5.1.2.

This  I protected property identifies a particular principal as being the "owner" of the resource. Since the owner of a resource often has special access control capabilities (e.g., the owner frequently has permanent DAV:write-acl privilege), clients might display the resource owner in their user interface.

 I  

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.

 I  5.1_owner_href_optional   (type: edit, status: closed)
julian.reschke@greenbytes.de 2003-11-06 href element should be optional in case the server doesn't have owner information.
2003-11-06 Resolution:  Updated DTD fragment.
Associated changes in this document: 5.1, A.
 I  
<!ELEMENT owner (href)> 
<!ELEMENT owner (href?)> 

5.1.1 Example: Retrieving DAV:owner

This example shows a client request for the value of the DAV:owner property from a collection resource with URL http://www.example.com/papers/. The principal making the request is authenticated using Digest authentication. The value of DAV:owner is the URL http://www.example.com/acl/users/gstein, wrapped in the DAV:href XML element.

 I  

>> 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="jim@webdav.org", 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> 

>> 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: An Attempt to Set DAV:owner

 I  5.1.2_responsedescription   (type: edit, status: closed)
julian.reschke@greenbytes.de 2003-11-07 Add DAV:error element to DAV:responsedescription in example and update explanation.
2003-11-08 Resolution:  DAV:error subelement added to DAV:responsedescription in response.
Associated changes in this document: 5.1.2, 5.1.2, 5.1.2.

The following example shows a client request to modify the value of the DAV:owner property on the resource with URL <http://www.example.com/papers>. Since DAV:owner is a protected property  I , the server on this 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,  I and Section 11 of [RFC2518] describes the Multi-Status response  I and Sections 1.6 and 3.12 of [RFC3253] describe additional error marshalling for PROPPATCH attempts on protected properties .

 I  

>> 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="jim@webdav.org", 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> 

>> 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> 
 I  

>> 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> 
        Failure to set protected property (DAV:owner) 
      </D:responsedescription> 
    </D:propstat> 
  </D:response> 
</D:multistatus> 

>> 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 to set protected property (DAV:owner) 
      </D:responsedescription> 
    </D:propstat> 
  </D:response> 
</D:multistatus> 
 I  

5.2 DAV:group

This property identifies a particular principal as being the "group" of the 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 an empty DAV:group element as property value in case no group information is available.

<!ELEMENT group (href?)> 

5.3 DAV:supported-privilege-set