[MS-BPAU]:

Background Intelligent Transfer Service (BITS) Peer-Caching: Peer Authentication Protocol

Intellectual Property Rights Notice for Open Specifications Documentation

§  Technical Documentation. Microsoft publishes Open Specifications documentation for protocols, file formats, languages, standards as well as overviews of the interaction among each of these technologies.

§  Copyrights. This documentation is covered by Microsoft copyrights. Regardless of any other terms that are contained in the terms of use for the Microsoft website that hosts this documentation, you may make copies of it in order to develop implementations of the technologies described in the Open Specifications and may distribute portions of it in your implementations using these technologies or your documentation as necessary to properly document the implementation. You may also distribute in your implementation, with or without modification, any schema, IDL's, or code samples that are included in the documentation. This permission also applies to any documents that are referenced in the Open Specifications.

§  No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation.

§  Patents. Microsoft has patents that may cover your implementations of the technologies described in the Open Specifications. Neither this notice nor Microsoft's delivery of the documentation grants any licenses under those or any other Microsoft patents. However, a given Open Specification may be covered by Microsoft Open Specification Promise or the Community Promise. If you would prefer a written license, or if the technologies described in the Open Specifications are not covered by the Open Specifications Promise or Community Promise, as applicable, patent licenses are available by contacting .

§  Trademarks. The names of companies and products contained in this documentation may be covered by trademarks or similar intellectual property rights. This notice does not grant any licenses under those rights. For a list of Microsoft trademarks, visit www.microsoft.com/trademarks.

§  Fictitious Names. The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted in this documentation are fictitious. No association with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred.

Reservation of Rights. All other rights are reserved, and this notice does not grant any rights other than specifically described above, whether by implication, estoppel, or otherwise.

Tools. The Open Specifications do not require the use of Microsoft programming tools or programming environments in order for you to develop an implementation. If you have access to Microsoft programming tools and environments you are free to take advantage of them. Certain Open Specifications are intended for use in conjunction with publicly available standard specifications and network programming art, and assumes that the reader either is familiar with the aforementioned material or has immediate access to it.

Revision Summary

Date / Revision History / Revision Class / Comments /
2/22/2007 / 0.01 / Version 0.01 release
6/1/2007 / 1.0 / Major / Updated and revised the technical content.
7/3/2007 / 1.0.1 / Editorial / Changed language and formatting in the technical content.
7/20/2007 / 1.1 / Minor / Made minor corrections to IDL.
8/10/2007 / 1.1.1 / Editorial / Changed language and formatting in the technical content.
9/28/2007 / 1.2 / Minor / Clarified the meaning of the technical content.
10/23/2007 / 1.2.1 / Editorial / Changed language and formatting in the technical content.
11/30/2007 / 1.2.2 / Editorial / Changed language and formatting in the technical content.
1/25/2008 / 1.2.3 / Editorial / Changed language and formatting in the technical content.
3/14/2008 / 1.3 / Minor / Clarified the meaning of the technical content.
5/16/2008 / 1.3.1 / Editorial / Changed language and formatting in the technical content.
6/20/2008 / 1.4 / Minor / Clarified the meaning of the technical content.
7/25/2008 / 1.4.1 / Editorial / Changed language and formatting in the technical content.
8/29/2008 / 1.4.2 / Editorial / Changed language and formatting in the technical content.
10/24/2008 / 1.4.3 / Editorial / Changed language and formatting in the technical content.
12/5/2008 / 1.4.4 / Editorial / Changed language and formatting in the technical content.
1/16/2009 / 1.5 / Minor / Clarified the meaning of the technical content.
2/27/2009 / 1.5.1 / Editorial / Changed language and formatting in the technical content.
4/10/2009 / 1.5.2 / Editorial / Changed language and formatting in the technical content.
5/22/2009 / 1.5.3 / Editorial / Changed language and formatting in the technical content.
7/2/2009 / 1.5.4 / Editorial / Changed language and formatting in the technical content.
8/14/2009 / 1.6 / Minor / Clarified the meaning of the technical content.
9/25/2009 / 1.7 / Minor / Clarified the meaning of the technical content.
11/6/2009 / 2.0 / Major / Updated and revised the technical content.
12/18/2009 / 2.0.1 / Editorial / Changed language and formatting in the technical content.
1/29/2010 / 2.1 / Minor / Clarified the meaning of the technical content.
3/12/2010 / 2.2 / Minor / Clarified the meaning of the technical content.
4/23/2010 / 2.2.1 / Editorial / Changed language and formatting in the technical content.
6/4/2010 / 3.0 / Major / Updated and revised the technical content.
7/16/2010 / 4.0 / Major / Updated and revised the technical content.
8/27/2010 / 4.0 / None / No changes to the meaning, language, or formatting of the technical content.
10/8/2010 / 4.0 / None / No changes to the meaning, language, or formatting of the technical content.
11/19/2010 / 4.0 / None / No changes to the meaning, language, or formatting of the technical content.
1/7/2011 / 4.0 / None / No changes to the meaning, language, or formatting of the technical content.
2/11/2011 / 4.0 / None / No changes to the meaning, language, or formatting of the technical content.
3/25/2011 / 4.0 / None / No changes to the meaning, language, or formatting of the technical content.
5/6/2011 / 4.0 / None / No changes to the meaning, language, or formatting of the technical content.
6/17/2011 / 4.1 / Minor / Clarified the meaning of the technical content.
9/23/2011 / 4.1 / None / No changes to the meaning, language, or formatting of the technical content.
12/16/2011 / 4.1 / None / No changes to the meaning, language, or formatting of the technical content.
3/30/2012 / 4.1 / None / No changes to the meaning, language, or formatting of the technical content.
7/12/2012 / 4.1 / None / No changes to the meaning, language, or formatting of the technical content.
10/25/2012 / 4.1 / None / No changes to the meaning, language, or formatting of the technical content.
1/31/2013 / 4.2 / Minor / Clarified the meaning of the technical content.
8/8/2013 / 4.2 / None / No changes to the meaning, language, or formatting of the technical content.
11/14/2013 / 4.2 / None / No changes to the meaning, language, or formatting of the technical content.
2/13/2014 / 4.2 / None / No changes to the meaning, language, or formatting of the technical content.
5/15/2014 / 4.2 / None / No changes to the meaning, language, or formatting of the technical content.
6/30/2015 / 4.2 / No Change / No changes to the meaning, language, or formatting of the technical content.
10/16/2015 / 4.2 / No Change / No changes to the meaning, language, or formatting of the technical content.

Table of Contents

1 Introduction 6

1.1 Glossary 6

1.2 References 8

1.2.1 Normative References 8

1.2.2 Informative References 8

1.3 Overview 9

1.4 Relationship to Other Protocols 9

1.5 Prerequisites/Preconditions 9

1.6 Applicability Statement 10

1.7 Versioning and Capability Negotiation 10

1.8 Vendor-Extensible Fields 10

1.9 Standards Assignments 10

2 Messages 11

2.1 Transport 11

2.2 Common Data Types 11

2.2.1 KEY_LENGTH 11

2.2.2 CERTIFICATE_BLOB 11

2.2.2.1 Certificate Properties 11

2.2.2.1.1 KEY_PROV_INFO 13

2.2.2.2 Certificate Encoding 14

3 Protocol Details 15

3.1 BitsPeerAuth Server Details 15

3.1.1 Abstract Data Model 15

3.1.1.1 Local Certificate (Public) 15

3.1.1.2 Table of Peer Certificates 15

3.1.2 Timers 15

3.1.3 Initialization 15

3.1.4 Message Processing Events and Sequencing Rules 15

3.1.4.1 ExchangePublicKeys (Opnum 0) 16

3.1.5 Timer Events 17

3.1.6 Other Local Events 17

3.1.6.1 Verifying authentication status 17

3.2 BitsPeerAuth Client Details 17

3.2.1 Abstract Data Model 17

3.2.1.1 Local Certificate (Public) 17

3.2.1.2 Table of Peer Certificates 17

3.2.2 Timers 18

3.2.3 Initialization 18

3.2.4 Message Processing Events and Sequencing Rules 18

3.2.4.1 ExchangePublicKeys (Opnum 0) 18

3.2.5 Timer Events 19

3.2.6 Other Local Events 19

3.2.6.1 Verifying authentication status 19

4 Protocol Examples 20

4.1 Typical Success Scenario 20

4.2 Typical Encoded Certificate from Windows Vista 20

5 Security 23

5.1 Security Considerations for Implementers 23

5.2 Index of Security Parameters 23

6 Appendix A: Full IDL 24

7 Appendix B: Product Behavior 25

8 Change Tracking 26

9 Index 27

1  Introduction

The Background Intelligent Transfer Service (BITS) Peer-Caching: Peer Authentication Protocol provides authentication for computers in a domain in support of the BITS Peer-Caching: Content Retrieval Protocol, as specified in [MS-BPCR]. Peer authentication exchanges X.509 Certificate Authority between computers and associates each certificate with a Kerberos principal in the domain.

Sections 1.8, 2, and 3 of this specification are normative and can contain the terms MAY, SHOULD, MUST, MUST NOT, and SHOULD NOT as defined in [RFC2119]. Sections 1.5 and 1.9 are also normative but do not contain those terms. All other sections and examples in this specification are informative.

1.1  Glossary

The following terms are specific to this document:

Active Directory: A general-purpose network directory service. Active Directory also refers to the Windows implementation of a directory service. Active Directory stores information about a variety of objects in the network. Importantly, user accounts, computer accounts, groups, and all related credential information used by the Windows implementation of Kerberos are stored in Active Directory. Active Directory is either deployed as Active Directory Domain Services (AD DS) or Active Directory Lightweight Directory Services (AD LDS). [MS-ADTS] describes both forms. For more information, see [MS-AUTHSOD] section 1.1.1.5.2, Lightweight Directory Access Protocol (LDAP) versions 2 and 3, Kerberos, and DNS.

Active Directory domain: A domain hosted on Active Directory. For more information, see [MS-ADTS].

certificate: A certificate is a collection of attributes (1) and extensions that can be stored persistently. The set of attributes in a certificate can vary depending on the intended usage of the certificate. A certificate securely binds a public key to the entity that holds the corresponding private key. A certificate is commonly used for authentication (2) and secure exchange of information on open networks, such as the Internet, extranets, and intranets. Certificates are digitally signed by the issuing certification authority (CA) and can be issued for a user, a computer, or a service. The most widely accepted format for certificates is defined by the ITU-T X.509 version 3 international standards. For more information about attributes and extensions, see [RFC3280] and [X509] sections 7 and 8.

certification authority (CA): A third party that issues public key certificates. Certificates serve to bind public keys to a user identity. Each user and certification authority (CA) can decide whether to trust another user or CA for a specific purpose, and whether this trust should be transitive. For more information, see [RFC3280].

domain: A set of users and computers sharing a common namespace and management infrastructure. At least one computer member of the set must act as a domain controller (DC) and host a member list that identifies all members of the domain, as well as optionally hosting the Active Directory service. The domain controller provides authentication (2) of members, creating a unit of trust for its members. Each domain has an identifier that is shared among its members. For more information, see [MS-AUTHSOD] section 1.1.1.5 and [MS-ADTS].

domain account: A stored set of attributes (2) representing a principal used to authenticate a user or machine to an Active Directory domain.

dynamic endpoint: A network-specific server address that is requested and assigned at run time. For more information, see [C706].

fully qualified domain name (FQDN): In Active Directory, a fully qualified domain name (FQDN) that identifies a domain.

Interface Definition Language (IDL): The International Standards Organization (ISO) standard language for specifying the interface for remote procedure calls. For more information, see [C706] section 4.

Kerberos principal: A unique individual account known to the Key Distribution Center (KDC). Often a user, but it can be a service offering a resource on the network.

NDR64: See 64-bit Network Data Representation (NDR64).

Network Data Representation (NDR): A specification that defines a mapping from Interface Definition Language (IDL) data types onto octet streams. NDR also refers to the runtime environment that implements the mapping facilities (for example, data provided to NDR). For more information, see [MS-RPCE] and [C706] section 14.

opnum: An operation number or numeric identifier that is used to identify a specific remote procedure call (RPC) method or a method in an interface. For more information, see [C706] section 12.5.2.12 or [MS-RPCE].

remote procedure call (RPC): A context-dependent term commonly overloaded with three meanings. Note that much of the industry literature concerning RPC technologies uses this term interchangeably for any of the three meanings. Following are the three definitions: (*) The runtime environment providing remote procedure call facilities. The preferred usage for this meaning is "RPC runtime". (*) The pattern of request and response message exchange between two parties (typically, a client and a server). The preferred usage for this meaning is "RPC exchange". (*) A single message from an exchange as defined in the previous definition. The preferred usage for this term is "RPC message". For more information about RPC, see [C706].

RPC protocol sequence: A character string that represents a valid combination of a remote procedure call (RPC) protocol, a network layer protocol, and a transport layer protocol, as described in [C706] and [MS-RPCE].

RPC transfer syntax: A method for encoding messages defined in an Interface Definition Language (IDL) file. Remote procedure call (RPC) can support different encoding methods or transfer syntaxes. For more information, see [C706].