diff --git a/xep-0309.xml b/xep-0309.xml old mode 100644 new mode 100755 index 356d5dda..43ac1913 --- a/xep-0309.xml +++ b/xep-0309.xml @@ -21,6 +21,12 @@ NOT_YET_ASSIGNED &stpeter; + + 0.3 + 2012-05-29 + psa +

Corrected a number of details in the text, examples, and XMPP Registrar considerations; removed an extraneous section that is better contained in XEP-0267.

+
0.2 2012-01-25 @@ -54,7 +60,7 @@ -

Several directories (e.g., at xmpp.org and jabberes.org) have long provided information about public XMPP services so that end users can more easily find servers to register with, add-on components to use for features such as &xep0045;, etc. These service directories tend to rely on humans to gather and in some cases verify the information they publish before providing it via the World Wide Web or the XMPP network for use by end users and IM client software. However, relying on humans to gather and verify such information can result in significant delays and errors. It would be better to automate the information-gathering functions as much as possible.

+

Several directories (e.g., at xmpp.net and jabberes.org) have long provided information about public XMPP services so that end users can more easily find servers to register with, add-on components to use for features such as &xep0045;, etc. These service directories tend to rely on humans to gather and in some cases verify the information they publish before providing it via the World Wide Web or the XMPP network for use by end users and IM client software. However, relying on humans to gather and verify such information can result in significant delays and errors. It would be better to automate the information-gathering functions as much as possible.

This document shows how to combine and extend a number of existing XMPP protocols for (mostly) automated gathering of information about public XMPP services. Widespread deployment of this specification will result in more timely, accurate information about the services available on the XMPP network.

@@ -67,7 +73,7 @@

Note: Although the entity that gathers information for a directory could be a client or a component, here we assume that it is a server ("xmpp.net").

These two entities use &xep0267;, &xep0030;, and &xep0292; in the following ways.

]]> +

Note: Inclusion of the "directory/server" identity indicates that xmpp.net is a service directory.

- -

If the server wishes to have its information aggregated, it sends a presence subscription request to the directory as described in XEP-0267.

- +

If the service wishes to have its information aggregated, it sends a presence subscription request to the directory as described in XEP-0267.

+ ]]> -

Upon receiving such the presence subscription request, the directory approves it.

+

Upon receiving the presence subscription request, the directory approves it.

]]> -

The server then approves that subscription request, as well.

- The service then approves that subscription request, as well.

+ ]]> - -

The server administator needs a way to trigger the server to send a presence subscription to the directory. This can be done by using &xep0050; as in &xep0133;. Therefore we define a new server administration use case. The command node for this use case SHOULD be "http://jabber.org/protocol/admin#server-buddy".

-

A sample protocol flow for this use case is shown below.

- - - - ]]> -

Unless an error occurs, the service SHOULD return the appropriate form.

- - - - Adding a Server Buddy - Fill out this form to add a "server buddy". - - http://jabber.org/protocol/admin - - - - - - - - ]]> - - - - - http://jabber.org/protocol/admin - - - xmpp.net - - - - - ]]> - - - - ]]> -
-

After the subscription handshake has been completed, the directory queries the server for information. There are two aspects: service discovery information and vCard information.

+

After the subscription handshake has been completed, the directory queries the server for information. There are two aspects: service discovery ("disco") information and vCard information.

In order to determine the exact identity of the server, the directory sends a service discovery information request to the server.

Note: If the server is a public node on the XMPP network, it includes a service discovery feature of "urn:xmpp:public-server". This feature is defined below.

Note: If the server allows &xep0077;, it includes a service discovery feature of "jabber:iq:register". If the server does not allow in-band registration but allows account registration at a website, it includes the registration URL in its vCard as described below.

-

The foregoing examples show the gathering of disco#info data (identity and supported features). An directory MAY also gather disco#items data about components and other services associated with the base XMPP server at a domain.

+

The foregoing examples show the gathering of disco#info data (identity and supported features). A directory MAY also gather disco#items data about components and other services associated with the base XMPP service at a domain.

In order to gather additional information about the server, the directory sends a vCard information request to the server.

@@ -296,7 +230,7 @@ Directory Server
  • The country where the service is located (<adr><country/></adr>)
  • An email address or alias for contacting the administrators (<email/>)
  • The XMPP address for the service (<impp/>)
  • -
  • A vCard KIND of "application" (<kind><text>application</text></kind>)
  • +
  • A vCard KIND of "application" (<kind><text>application</text></kind>) as defined in &rfc6473;
  • It is OPTIONAL for public server vCards to include the following information:

      @@ -306,16 +240,16 @@ Directory Server
    • Geographical coordinates for the service (<geo/>)
    • Registration URI (<registration xmlns='urn:xmpp:vcard:registration:1'/> and its <uri/> child)
    • Certification authority name and URI (<ca xmlns='urn:xmpp:vcard:ca:0'/> and its <name/> and <uri/> children)
    • -
    • Software name (<name/> element qualified by the 'jabber:iq:version' namespace defined)
    • +
    • Software name (<name/> element qualified by the 'jabber:iq:version' namespace defined in &xep0092;)
    -

    It is best for the server directory to discover the last two elements in-band (by means of TLS negotiation and &xep0092;, respectively), then add them to the contact vCard as described in the next section.

    +

    It is best for the server directory to discover the last two elements in-band (by means of TLS negotiation and software version, respectively), then add them to the contact vCard as described in the next section.

    -

    Currently, service directories such as xmpp.org and jabberes.org publish their information on the World Wide Web, typically via a human-friendly website and sometimes also via machine-readable files at a well-known URI for use by IM clients to pre-populate drop-down boxes showing XMPP servers that allow in-band registration. (For example, the xmpp.org service publishes a file listing registered public servers using the &xep0030; format.)

    -

    In addition to publishing such information on the web, this document defines a second publishing path: the XMPP network itself. The directory can do this by creating a public &xep0060; node at the directory's bare domain (e.g., xmpp.net) that pushes data in the vCard4 format shown above, as described more fully in XEP-0292. Other entities can then subscribe to this node to receive updated information about services that are added to or removed from the directory.

    +

    Currently, service directories such as xmpp.net and jabberes.org publish their information on the World Wide Web, typically at a human-friendly website and sometimes also by means of machine-readable files at a well-known URI for use by IM clients to pre-populate drop-down boxes showing XMPP servers that allow in-band registration. (For example, the xmpp.net service publishes a file listing registered public servers using the &xep0030; format.)

    +

    In addition to publishing such information on the web, this document defines a second publishing path: the XMPP network itself. The directory can do this by creating a public &xep0060; node at the directory's bare domain (e.g., xmpp.net) that pushes data in the vCard4 format, as described more fully in XEP-0292. Other entities can then subscribe to this node to receive updated information about services that are added to or removed from the directory.

    For example, the following stanza shows an information push from the xmpp.net directory about the jabber.org service, sent to a subscriber at example.com.

    -

    Because a service directory does not know about an XMPP server unless the administrator of the server initiates a presence subscription to the directory, information leakage is minimized.

    +

    Because a service directory does not know about an XMPP service unless the administrator of the service initiates a presence subscription to the directory, information leakage is minimized.

    Use of the "urn:xmpp:public-server" service discovery feature provides a way for an XMPP server to explicitly indicate that its information is public.

    Use of the "directory/server" service discovery identity provides a way for a service directory to explicitly indicate that it gathers service information obtained from XMPP servers that contact it.

    @@ -370,8 +304,12 @@ Directory Server -

    This document specifies that the 'urn:xmpp:vcard:registration' namespace is used to qualify the XMPP-specific vCard4 extension for account registration URLs.

    -

    The XMPP Registrar shall add this namespace to its registry at &NAMESPACES;.

    +

    This document registers the following XML namespaces:

    +
      +
    • 'urn:xmpp:vcard:registration:1' (used to qualify the XMPP-specific vCard4 extension for account registration URLs)
    • +
    • 'urn:xmpp:vcard:ca:0' (used to qualify the XMPP-specific vCard4 extension for information about certification authorities)
    • +
    +

    The XMPP Registrar shall add these namespaces to its registry at &NAMESPACES;.

    This document specifies that a service directory is identified by the "directory" category and the "server" type within XMPP Service Discovery.

    @@ -382,7 +320,7 @@ Directory Server server A directory of XMPP servers - [TBD] + XEP-0309 ]]>
    @@ -394,7 +332,7 @@ Directory Server urn:xmpp:public-server The server is a public node on the XMPP network - [TBD] + XEP-0309 ]]>