mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-22 01:02:17 -05:00
1.1rc7
This commit is contained in:
parent
c73893d844
commit
d951d1fb8d
126
xep-0178.xml
126
xep-0178.xml
@ -24,8 +24,8 @@
|
|||||||
&stpeter;
|
&stpeter;
|
||||||
&pgmillard;
|
&pgmillard;
|
||||||
<revision>
|
<revision>
|
||||||
<version>1.1rc6</version>
|
<version>1.1rc7</version>
|
||||||
<date>in progress, last updated 2011-04-25</date>
|
<date>in progress, last updated 2011-05-11</date>
|
||||||
<initials>psa</initials>
|
<initials>psa</initials>
|
||||||
<remark><p>Updated text and examples to be consistent with RFC 6120 and RFC 6125.</p></remark>
|
<remark><p>Updated text and examples to be consistent with RFC 6120 and RFC 6125.</p></remark>
|
||||||
</revision>
|
</revision>
|
||||||
@ -112,18 +112,18 @@
|
|||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<p>Client initiates stream to server.</p>
|
<p>Client initiates stream to server.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<stream:stream
|
<stream:stream
|
||||||
xmlns:stream='http://etherx.jabber.org/streams'
|
xmlns:stream='http://etherx.jabber.org/streams'
|
||||||
xmlns='jabber:client'
|
xmlns='jabber:client'
|
||||||
from='juliet@example.com'
|
from='juliet@example.com'
|
||||||
to='example.com'
|
to='example.com'
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server replies with stream header.</p>
|
<p>Server replies with stream header.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<stream:stream
|
<stream:stream
|
||||||
xmlns:stream='http://etherx.jabber.org/streams'
|
xmlns:stream='http://etherx.jabber.org/streams'
|
||||||
xmlns='jabber:client'
|
xmlns='jabber:client'
|
||||||
@ -131,47 +131,47 @@
|
|||||||
from='example.com'
|
from='example.com'
|
||||||
to='juliet@example.com'
|
to='juliet@example.com'
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server advertises TLS stream feature, which might indicate that TLS is mandatory-to-negotiate.</p>
|
<p>Server advertises TLS stream feature, which might indicate that TLS is mandatory-to-negotiate.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<stream:features>
|
<stream:features>
|
||||||
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'>
|
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'>
|
||||||
<required/>
|
<required/>
|
||||||
</starttls>
|
</starttls>
|
||||||
</stream:features>
|
</stream:features>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Client sends STARTTLS command to server.</p>
|
<p>Client sends STARTTLS command to server.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
|
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server informs client to proceed.</p>
|
<p>Server informs client to proceed.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
|
<proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server requests, and client presents, the client certificate during TLS negotiation.</p>
|
<p>Server requests, and client presents, the client certificate during TLS negotiation.</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server and client successfully complete the TLS negotiation and client initiates a new initial stream header to server over the encrypted TCP connection.</p>
|
<p>Server and client successfully complete the TLS negotiation and client initiates a new initial stream header to server over the encrypted TCP connection.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<stream:stream
|
<stream:stream
|
||||||
xmlns:stream='http://etherx.jabber.org/streams'
|
xmlns:stream='http://etherx.jabber.org/streams'
|
||||||
xmlns='jabber:client'
|
xmlns='jabber:client'
|
||||||
from='juliet@example.com'
|
from='juliet@example.com'
|
||||||
to='example.com'
|
to='example.com'
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server replies with response stream header.</p>
|
<p>Server replies with response stream header.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<stream:stream
|
<stream:stream
|
||||||
xmlns:stream='http://etherx.jabber.org/streams'
|
xmlns:stream='http://etherx.jabber.org/streams'
|
||||||
xmlns='jabber:client'
|
xmlns='jabber:client'
|
||||||
@ -179,44 +179,43 @@
|
|||||||
from='example.com'
|
from='example.com'
|
||||||
to='juliet@example.com'
|
to='juliet@example.com'
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server advertises SASL mechanisms. Because the client presented a client certificate, here the server offers the SASL EXTERNAL mechanism (see Section 6.3.4 of <cite>RFC 6120</cite> for recommendations regarding the conditions under which to offer the SASL EXTERNAL mechanism).</p>
|
<p>Server advertises SASL mechanisms. Because the client presented a client certificate, here the server offers the SASL EXTERNAL mechanism (see Section 6.3.4 of <cite>RFC 6120</cite> for recommendations regarding the conditions under which to offer the SASL EXTERNAL mechanism).</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<stream:features>
|
<stream:features>
|
||||||
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
||||||
<mechanism>EXTERNAL<mechanism>
|
<mechanism>EXTERNAL<mechanism>
|
||||||
<mechanism>DIGEST-MD5<mechanism>
|
<mechanism>DIGEST-MD5<mechanism>
|
||||||
<mechanism>ANONYMOUS<mechanism>
|
<mechanism>ANONYMOUS<mechanism>
|
||||||
<required/>
|
|
||||||
</mechanisms>
|
</mechanisms>
|
||||||
</stream:features>
|
</stream:features>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Client considers EXTERNAL to be its preferred SASL mechanism so it attempts to complete SASL negotiation using that mechanism. The following paragraphs illustrate several possible paths, depending on whether the client includes an authorization identity (for the official rules regarding when to include the authorization identity, see Section 6.3.8 of <cite>RFC 6120</cite>).</p>
|
<p>Client considers EXTERNAL to be its preferred SASL mechanism so it attempts to complete SASL negotiation using that mechanism. The following paragraphs illustrate several possible paths, depending on whether the client includes an authorization identity (for the official rules regarding when to include the authorization identity, see Section 6.3.8 of <cite>RFC 6120</cite>).</p>
|
||||||
<ol style='list-style-type:lower-alpha'>
|
<ol style='list-style-type:lower-alpha'>
|
||||||
<li>
|
<li>
|
||||||
<p>If the client certificate contains only one JID, then the client MAY include an authorization identity, but only if it desires to be authorized as a JID other than the address in the client certificate; else it MUST NOT include an authorization identity (this is shown in the following example by setting the XML character data of the <auth/> element to "=").</p>
|
<p>If the client certificate contains only one JID, then the client MAY include an authorization identity, but only if it desires to be authorized as a JID other than the address in the client certificate; else it MUST NOT include an authorization identity (this is shown in the following example by setting the XML character data of the <auth/> element to "=").</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
|
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
|
||||||
mechanism='EXTERNAL'>=</auth>
|
mechanism='EXTERNAL'>=</auth>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>If the client certificate contains more than one JID, then the client MUST include an authorization identity so that the server can determine which JID to use (this is shown in the following example by setting the XML character data of the <auth/> element to "anVsaWV0QGV4YW1wbGUuY29t", which is the base 64 encoding for "juliet@example.com").</p>
|
<p>If the client certificate contains more than one JID, then the client MUST include an authorization identity so that the server can determine which JID to use (this is shown in the following example by setting the XML character data of the <auth/> element to "anVsaWV0QGV4YW1wbGUuY29t", which is the base 64 encoding for "juliet@example.com").</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
|
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
|
||||||
mechanism='EXTERNAL'>anVsaWV0QGV4YW1wbGUuY29t</auth>
|
mechanism='EXTERNAL'>anVsaWV0QGV4YW1wbGUuY29t</auth>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>If the client certificate does not contain a JID, then the client MAY include an authorization identity, but only if it desires to be authorized as a JID other than the address in the client certificate; else it MUST NOT include an authorization identity (this is shown in the following example by setting the XML character data of the <auth/> element to "=").</p>
|
<p>If the client certificate does not contain a JID, then the client MAY include an authorization identity, but only if it desires to be authorized as a JID other than the address in the client certificate; else it MUST NOT include an authorization identity (this is shown in the following example by setting the XML character data of the <auth/> element to "=").</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
|
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
|
||||||
mechanism='EXTERNAL'>=</auth>
|
mechanism='EXTERNAL'>=</auth>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
@ -225,42 +224,42 @@
|
|||||||
<ol style='list-style-type:lower-alpha'>
|
<ol style='list-style-type:lower-alpha'>
|
||||||
<li>
|
<li>
|
||||||
<p>If (1) the certificate presented by the client contains only one valid XMPP address that corresponds to a registered account on the server and (2) the client did not pass an authorization identity in the SASL exchange, then the server SHOULD allow authentication and authorization of that JID.</p>
|
<p>If (1) the certificate presented by the client contains only one valid XMPP address that corresponds to a registered account on the server and (2) the client did not pass an authorization identity in the SASL exchange, then the server SHOULD allow authentication and authorization of that JID.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
|
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>If the certificate contains more than one valid XMPP address that corresponds to a registered account on the server (e.g., because the server offers virtual hosting), then the server SHOULD allow authentication and authorization of the JID specified as the authorization identity in the SASL exchange.</p>
|
<p>If the certificate contains more than one valid XMPP address that corresponds to a registered account on the server (e.g., because the server offers virtual hosting) and during the SASL exchange the client specified an authorization identity that corresponds to one of the JIDs presented in the client certificate, then the server SHOULD allow authentication and authorization of the JID specified as the authorization identity.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
|
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
|
||||||
]]></code>
|
]]></example>
|
||||||
<p>If no authorization identity is included, then the server SHOULD return a SASL failure case of <invalid-authzid/> and close the stream.</p>
|
<p>If no authorization identity is included, then the server SHOULD return a SASL failure case of <invalid-authzid/> and close the stream.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
||||||
<invalid-authzid/>
|
<invalid-authzid/>
|
||||||
</failure>
|
</failure>
|
||||||
</stream:stream>
|
</stream:stream>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>If the certificate does not contain an XMPP address, then the server MAY attempt to determine if there is a registered account associated with the user, for example by performing an LDAP lookup based on the Common Name or other information presented by the client in the certificate; if such a JID mapping is successful and the mapped JID matches the authorization identity provided, then the server SHOULD allow authentication and authorization of that mapped JID.</p>
|
<p>If the certificate does not contain an XMPP address, then the server MAY attempt to determine if there is a registered account associated with the user, for example by performing an LDAP lookup based on the Common Name or other information presented by the client in the certificate; if such a JID mapping is successful and the mapped JID matches the authorization identity provided, then the server SHOULD allow authentication and authorization of that mapped JID.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
|
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
|
||||||
]]></code>
|
]]></example>
|
||||||
<p>If JID mapping is unsuccessful, then the server MUST return a SASL failure condition of <not-authorized/> and close the stream.</p>
|
<p>If JID mapping is unsuccessful, then the server SHOULD return a SASL failure condition of <not-authorized/> and close the stream.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
||||||
<not-authorized/>
|
<not-authorized/>
|
||||||
</failure>
|
</failure>
|
||||||
</stream:stream>
|
</stream:stream>
|
||||||
]]></code>
|
]]></example>
|
||||||
<p>If JID mapping is successful but the mapped JID does not match the authorization identity provided (if any), then the server MUST return a SASL failure condition of <invalid-authzid/> and close the stream.</p>
|
<p>If JID mapping is successful but the mapped JID does not match the authorization identity provided (if any), then the server SHOULD return a SASL failure condition of <invalid-authzid/> and close the stream.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
||||||
<invalid-authzid/>
|
<invalid-authzid/>
|
||||||
</failure>
|
</failure>
|
||||||
</stream:stream>
|
</stream:stream>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
@ -275,18 +274,18 @@
|
|||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<p>Server1 initiates stream to server2.</p>
|
<p>Server1 initiates stream to server2.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<stream:stream
|
<stream:stream
|
||||||
xmlns:stream='http://etherx.jabber.org/streams'
|
xmlns:stream='http://etherx.jabber.org/streams'
|
||||||
xmlns='jabber:server'
|
xmlns='jabber:server'
|
||||||
from='conference.example.org'
|
from='conference.example.org'
|
||||||
to='example.com'
|
to='example.com'
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server2 replies with stream header.</p>
|
<p>Server2 replies with stream header.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<stream:stream
|
<stream:stream
|
||||||
xmlns:stream='http://etherx.jabber.org/streams'
|
xmlns:stream='http://etherx.jabber.org/streams'
|
||||||
xmlns='jabber:server'
|
xmlns='jabber:server'
|
||||||
@ -294,29 +293,29 @@
|
|||||||
from='example.com'
|
from='example.com'
|
||||||
to='conference.example.org'
|
to='conference.example.org'
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server2 advertises TLS stream feature, which might indicate that TLS is mandatory-to-negotiate.</p>
|
<p>Server2 advertises TLS stream feature, which might indicate that TLS is mandatory-to-negotiate.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<stream:features>
|
<stream:features>
|
||||||
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'>
|
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'>
|
||||||
<required/>
|
<required/>
|
||||||
</starttls>
|
</starttls>
|
||||||
</stream:features>
|
</stream:features>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server1 sends STARTTLS command to Server2.</p>
|
<p>Server1 sends STARTTLS command to Server2.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
|
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server2 informs Server1 to proceed.</p>
|
<p>Server2 informs Server1 to proceed.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
|
<proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server2 requests, and Server1 presents, Server1's certificate during TLS negotiation.</p>
|
<p>Server2 requests, and Server1 presents, Server1's certificate during TLS negotiation.</p>
|
||||||
@ -329,20 +328,20 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Else Server2 completes successful TLS negotiation and Server1 sends a new initial stream header to Server2 over the encrypted TCP connection.</p>
|
<p>Else Server2 completes successful TLS negotiation and Server1 sends a new initial stream header to Server2 over the encrypted TCP connection.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<stream:stream
|
<stream:stream
|
||||||
xmlns:stream='http://etherx.jabber.org/streams'
|
xmlns:stream='http://etherx.jabber.org/streams'
|
||||||
xmlns='jabber:server'
|
xmlns='jabber:server'
|
||||||
from='conference.example.org'
|
from='conference.example.org'
|
||||||
to='example.com'
|
to='example.com'
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server2 replies with stream header.</p>
|
<p>Server2 replies with stream header.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<stream:stream
|
<stream:stream
|
||||||
xmlns:stream='http://etherx.jabber.org/streams'
|
xmlns:stream='http://etherx.jabber.org/streams'
|
||||||
xmlns='jabber:server'
|
xmlns='jabber:server'
|
||||||
@ -350,25 +349,24 @@
|
|||||||
from='example.com'
|
from='example.com'
|
||||||
to='conference.example.org'
|
to='conference.example.org'
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server2 advertises SASL mechanisms. If the 'from' attribute of the stream header sent by Server1 can be matched against one of the identifiers provided in the certificate following the matching rules from <cite>RFC 6125</cite>, Server2 SHOULD advertise the SASL EXTERNAL mechanism. If no match is found, Server2 MAY either close Server1's TCP connection or continue with a &xep0220; negotiation.</p>
|
<p>Server2 advertises SASL mechanisms. If the 'from' attribute of the stream header sent by Server1 can be matched against one of the identifiers provided in the certificate following the matching rules from <cite>RFC 6125</cite>, Server2 SHOULD advertise the SASL EXTERNAL mechanism. If no match is found, Server2 MAY either close Server1's TCP connection or continue with a &xep0220; negotiation.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<stream:features>
|
<stream:features>
|
||||||
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
||||||
<mechanism>EXTERNAL<mechanism>
|
<mechanism>EXTERNAL<mechanism>
|
||||||
<required/>
|
|
||||||
</mechanisms>
|
</mechanisms>
|
||||||
</stream:features>
|
</stream:features>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Server1 considers EXTERNAL to be its preferred SASL mechanism. For server-to-server authentication, the <auth/> element MAY include an authorization identity, however a future version of this specification might disallow use of the authorization identity in server-to-server authentication (in the following example, Server1 includes an empty response of "=" as shown in <cite>RFC 6120</cite>).</p>
|
<p>Server1 considers EXTERNAL to be its preferred SASL mechanism. For server-to-server authentication, the <auth/> element MAY include an authorization identity, however a future version of this specification might disallow use of the authorization identity in server-to-server authentication (in the following example, Server1 includes an empty response of "=" as shown in <cite>RFC 6120</cite>).</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
|
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
|
||||||
mechanism='EXTERNAL'>=</auth>
|
mechanism='EXTERNAL'>=</auth>
|
||||||
]]></code>
|
]]></example>
|
||||||
<p>Interoperability Note: Previous versions of this specification stated that the receiving server always relied on the connecting server's inclusion of the authorization identity. Even though this is no longer required, the connecting server SHOULD include the authorization identity for backward compability.</p>
|
<p>Interoperability Note: Previous versions of this specification stated that the receiving server always relied on the connecting server's inclusion of the authorization identity. Even though this is no longer required, the connecting server SHOULD include the authorization identity for backward compability.</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -376,19 +374,19 @@
|
|||||||
<ol style='list-style-type:lower-alpha'>
|
<ol style='list-style-type:lower-alpha'>
|
||||||
<li>
|
<li>
|
||||||
<p>If the 'from' attribute of stream header sent by Server1 can be matched against one of the identifiers provided in the certificate following the matching rules from <cite>RFC 6125</cite>, Server2 returns success.</p>
|
<p>If the 'from' attribute of stream header sent by Server1 can be matched against one of the identifiers provided in the certificate following the matching rules from <cite>RFC 6125</cite>, Server2 returns success.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
|
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
|
||||||
]]></code>
|
]]></example>
|
||||||
<p>Implementation Note: If Server2 needs to assign an authorization identity during SASL negotiation, it SHOULD use the value of the 'from' attribute of the stream header sent by Server1.</p>
|
<p>Implementation Note: If Server2 needs to assign an authorization identity during SASL negotiation, it SHOULD use the value of the 'from' attribute of the stream header sent by Server1.</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Else Server2 MUST return a ¬authorized; stream error and close the stream.</p>
|
<p>Else Server2 SHOULD return a ¬authorized; stream error and close the stream.</p>
|
||||||
<code><![CDATA[
|
<example><![CDATA[
|
||||||
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
||||||
<not-authorized/>
|
<not-authorized/>
|
||||||
</failure>
|
</failure>
|
||||||
</stream:stream>
|
</stream:stream>
|
||||||
]]></code>
|
]]></example>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user