From 63a597656586cc31db281411102053c0e0c267c7 Mon Sep 17 00:00:00 2001 From: stpeter Date: Fri, 26 Aug 2011 14:22:52 -0600 Subject: [PATCH] 0.4 --- xep-0233.xml | 67 ++++++++++++++++++---------------------------------- 1 file changed, 23 insertions(+), 44 deletions(-) diff --git a/xep-0233.xml b/xep-0233.xml index a5679de7..541c2873 100644 --- a/xep-0233.xml +++ b/xep-0233.xml @@ -7,7 +7,7 @@
Domain-Based Service Names in XMPP SASL Negotiation - This specification defines a method by which a connection manager associated with an XMPP server can inform a connecting client about its domain-based service name. + This specification defines a method by a connecting client can learn the domain-based service name of a Kerberos acceptor principal for SASL authentication using the GSSAPI mechanism. &LEGALNOTICE; 0233 Experimental @@ -25,6 +25,12 @@ &linuxwolf; &stpeter; &hildjj; + + 0.4 + 2011-08-26 + psa +

Focused the document purely on the Kerberos use case, with the intent of handling the non-Kerberos use case in a separate specification; incremented the protocol version number to prevent confusion with deployed uses of the non-Kerberos functionality.

+
0.3 2011-06-22 @@ -58,49 +64,30 @@
-

In certain kinds of XMPP deployments, multiple connection managers associated with the XMPP server can be used to handle requests from connecting clients. In such an architecture, the connection manager might need to communicate the hostname to which the client has connected, or information about alternative connection managers.

-

This is especially true in environments that make use of Kerberos V5 (&rfc4120;) and negotiation of Simple Authentication and Security Layer or SASL (&rfc4422;) over XMPP, because the client might need additional information about the Kerberos principal so that it can obtain a proper ticket for authentication.

-

This scenario was not addressed in &rfc3920; or &rfc6120;. However, the problem can be solved using the concept of domain-based service names as described in &rfc5178;. In particular, because XMPP servers typically use the Kerberos V5 ("GSSAPI") SASL mechanism as described in &rfc4752;, they can communicate domain-based names as Kerberos V5 service principal names as described in &rfc5179;.

-

Therefore this document defines a method for communication of authentication hostnames (especially Kerberos V5 domain-based service names) in the context of SASL negotiation by XMPP entities.

+

In environments that make use of Kerberos V5 (&rfc4120;) and negotiation of Simple Authentication and Security Layer or SASL (&rfc4422;) over XMPP, a connecting client often needs to know the identity of the Kerberos acceptor principal so that it can obtain a proper ticket for authentication. This scenario was not addressed in &rfc3920; or &rfc6120;. However, the problem can be solved using the concept of domain-based service names (&rfc5178;). In particular, when an XMPP server uses the Kerberos V5 ("GSSAPI") SASL mechanism (&rfc4752;), it can communicate the identity of the acceptor principal as a Kerberos V5 service principal name (&rfc5179;). This document defines an XMPP method for such communication.

- -

When a connection manager associated with an XMPP server needs to communicate additional information about its service principal name to a connecting client, it can do so by including a child element of the <mechanisms/> element during SASL negotation, as allowed by RFC 6120 (see Section 6.3.5 and the schema for the 'urn:ietf:params:xml:ns:xmpp-sasl' namespace in Appendix A.4). In the case of the Kerberos V5 SASL mechanism, the child element is a <hostname/> element qualified by the 'urn:xmpp:domain-based-name:0' namespace &NSNOTE;. In the context of Kerberos, the <hostname/> element MUST include a 'mechanism' attribute, where the value MUST be "GSSAPI". The XML character data of the <hostname/> element shall specify the fully-qualified name of the connection manager (known as the hostname). The client then generates a domain-based service name from the provided hostname, following the format specified in RFC 5179 (i.e., "protocol/hostname/domainname@REALM") and setting the values as follows:

+ +

The acceptor principal's hostname is communicated by including a child element of the <mechanisms/> element during SASL negotation, as allowed by RFC 6120 (see Section 6.3.5 and the schema for the 'urn:ietf:params:xml:ns:xmpp-sasl' namespace in Appendix A.4). In the case of the Kerberos V5 SASL mechanism, the child element is a <hostname/> element qualified by the 'urn:xmpp:domain-based-name:1' namespace &NSNOTE;. The XML character data of the <hostname/> element specifies the fully-qualified name of the acceptor principal. The client then generates a domain-based service name from the provided hostname, following the format specified in RFC 5179 (i.e., "protocol/hostname/domainname@REALM") and setting the values as follows:

    -
  • The protocol string MUST be "xmpp"
  • -
  • The hostname string MUST be the XML character data of the <hostname/> element
  • -
  • The domainname string MUST be the canonical name of the service
  • -
  • The REALM string SHOULD be determined according to the network policies in effect (usually the domain name, in an uppercase mapping)
  • +
  • The protocol string MUST be "xmpp".
  • +
  • The hostname string MUST be the XML character data of the <hostname/> element.
  • +
  • The domainname string MUST be the canonical name of the service, such as typically communicated in the 'to' address of the initial stream header.
  • +
  • The REALM string SHOULD be determined according to the network policies in effect (usually the domain name, in an uppercase mapping).
-

Consider the example of an XMPP service whose canonical name is "example.com". A user might in fact connect to the physical machine "cm7.us.example.com". The hostname would be communicated as follows.

+

Consider the example of an XMPP service whose canonical name is "example.com". A user might make use of an acceptor principal located at "auth42.us.example.com". The hostname would be communicated as follows.

GSSAPI DIGEST-MD5 - - cm7.us.example.com - - ]]> -

The client would then attempt to obtain a ticket for the domain-based principal "xmpp/cm7.us.example.com/example.com@EXAMPLE.COM".

-
- - -

This protocol can also be used to communicate connection manager hostnames outside the context of Kerberos. In this case, the <hostname/> element MUST NOT include the 'mechanism' attribute, and multiple instances of the <hostname/> element MAY be included. An example follows.

- - GSSAPI - DIGEST-MD5 - - cm3.us.example.com - cm5.us.example.com - cm9.us.example.com + auth42.us.example.com ]]> +

The client would then attempt to obtain a ticket for the domain-based principal "xmpp/auth42.us.example.com/example.com@EXAMPLE.COM".

-

The communication of hostnames during SASL negotiation is not known to introduce new security vulnerabilities, as long as it is done after the underlying channel has been secured using Transport Layer Security (TLS; &rfc5246;) as described for XMPP in RFC 6120. For additional security considerations, refer to RFC5178 and RFC 5179.

+

The communication of acceptor principal hostname during SASL negotiation is not known to introduce new security vulnerabilities, as long as it is done after the underlying channel has been secured using Transport Layer Security (TLS; &rfc5246;) as described for XMPP in RFC 6120. For additional security considerations, refer to RFC5178 and RFC 5179.

@@ -111,7 +98,7 @@

This specification defines the following XML namespace:

    -
  • urn:xmpp:domain-based-name:0:0
  • +
  • urn:xmpp:domain-based-name:1

Upon advancement of this specification from a status of Experimental to a status of Draft, the ®ISTRAR; shall add the foregoing namespace to the registry located at &NAMESPACES;, as described in Section 4 of &xep0053;.

@@ -126,26 +113,18 @@ - - - - - - - - - + ]]>
-

Thanks to Owen Friel, Shane Hannon, Seamus Kerrigan, and Alexey Melnikov for their comments.

+

Thanks to Owen Friel, Shane Hannon, Seamus Kerrigan, Eliot Lear, Alexey Melnikov, and Klaas Wierenga for their comments.