<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc rfcedstyle="yes"?>
<?rfc subcompact="no"?>
<?rfc symrefs="yes"?>
<?rfc comments="yes" ?>
<?rfc inline="yes" ?>

<rfc ipr="trust200902" category="info" docName='draft-kille-ldap-xmpp-schema-04'>
  <front>
    <title abbrev="LDAP Schema for XMPP">
      LDAP Schema for supporting XMPP in White Pages
    </title>
    <author initials="S." surname="Kille" fullname="Steve Kille">
      <organization>Isode Ltd</organization>
      <address>
	<postal>
	  <street>14 Castle Mews</street>
	  <city>Hampton</city>
	  <region>Middlesex</region>
	  <code>TW12 2NP</code>
	  <country>UK</country>
	</postal>
	<email>Steve.Kille@isode.com</email>
      </address>
    </author>
      
    <date year="2017"  month="September"/>
    
    <!--One or more extra keywords which don't appear in the title-->
    <keyword></keyword>
      
    <abstract>

    <t>
      The Extensible Messaging and Presence Protocol (XMPP) 
      identifies users by use of JID (Jabber IDs).   Lightweight Directory Access Protocol (LDAP) enables provision of a white pages service with schema relating to users and support for internet protocols.  This specification defines schema to enable XMPP JIDs to be associated with objects in an LDAP directory so that this information can be used with white pages applications. 
    </t>
	
    </abstract>
    
  </front>
  <middle>

    <section title="Introduction">
      
      <t>
        Extensible Messaging and Presence Protocol (XMPP) <xref target="RFC6120"/>
        identifies users by use of JID (Jabber IDs).   Lightweight Directory Access Protocol (LDAP) <xref target="RFC4510"/> enables provision of a white pages service with schema relating to users and support for internet protocols defined in <xref target="RFC4519"/>.  This specification defines schema to enable XMPP JIDs to be associated with LDAP directory objects so that this information can be used with white pages applications. 
   
      </t>

<t>The LDAP schema for storing JIDs is defined to enable JIDs to be associated with any object stored in the directory.  This is done by associating the new JID Attribute with a new Auxiliary Object Class (JIDObject).</t>

    </section>
    
    <section title="Conventions Used in This Document">
      
      <t>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
	    <xref target="RFC2119"/>.</t>

    </section>

   <section title="Schema Definition">
     
     <t>This section defines the schema used to store JIDs in the directory.</t>
     
     <section title="Object Class">
       <t>This section defines a new Auxiliary Object Class (JIDObject) which MAY be associated with any structural Object Class.
      This Object Class is used to augment entries for objects that act or may act as an XMPP client.   The JID attribute is optional, to enable configuring an object that is allowed to have an associated JID but does not currently have one.
       </t>
 
 
<t>    
 <figure>
   <artwork>
    ( TBA.1 NAME 'JIDObject'
     AUXILIARY
     MAY jid )   
   </artwork>
 </figure>
</t>       
     </section>
     
     <section title="Attribute">
       <t>This section defines the JID attribute referenced by the JIDObject Auxiliary Object Class.   The syntax of the JID attribute MUST follow the rules of <xref target="RFC7622"/>. The JID stored MUST be a bare JID (e.g., a JID such as romeo@shakespeare.lit representing a user) and not a full JID (e.g. a JID such as romeo@shakespare.lit/AABBCC representing a specific client).  Note that the LDAP directory server is NOT expected to enforce this syntax.    The syntax rules are for LDAP clients setting this attribute, noting that human usage is a key target.  Applications using this attribute should format that string in a manner  appropriate to the application and XMPP applications SHOULD apply <xref target="RFC7622"/> to the attribute.   The directory service doesn't enforce the JID syntax and values are compared according to the matching rules specified in the attribute definition.</t>
       
       <t>
         
       </t>
       
<t>    
  <figure>
    <artwork>
      ( TBA.2 NAME 'jid'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
    </artwork>
  </figure>
</t> 
       
 <t>
   1.3.6.1.4.1.1466.115.121.1.15 refers to the Directory String syntax defined in <xref target="RFC4517"/>.

 </t>
     </section>
   </section>

    <section title="IANA Considerations">

 
      <t>The following registrations are requested in the LDAP Registry 
        &lt;https://www.iana.org/assignments/ldap-parameters/ldap-parameters.xhtml&gt; in line with BP 64 <xref target="RFC4520"/>. This will lead to assignment of the two Object Identifiers, referenced as TBA.1 and TBA.2 in this draft.
        
      </t>
      
      <t>Object Identifier Registration</t>
      
      <t>    
        <figure>
          <artwork>
            Subject: Request for LDAP OID Registration (Internet 
              Directory Numbers)
            Person &amp; email address to contact for further 
              information: S. Kille &lt;steve.kille@isode.com&gt;
            Specification: This document
            Author/Change Controller: IESG
            Comments: Identifies the XMPP schema elements assigned         
          </artwork>
        </figure>
      </t>     
      
      <t>In the following two registrations,  TBD is replaced with the OID assigned in the preceding registration.</t>
      
      <t>'JIDObject' Descriptor Registration</t>
      
      <t>    
        <figure>
          <artwork>
            Subject: Request for LDAP Descriptor Registration (Object 
              Identifier Descriptors)
            Descriptor (short name): JIDObject
            Object Identifier: TBD.1
            Person &amp; email address to contact for further 
              information: S. Kille &lt;steve.kille@isode.com&gt;
            Usage: Object Class
            Specification: this document
            Author/Change Controller: IESG
          </artwork>
        </figure>
      </t>   
      
      <t>'jid' Descriptor Registration</t>
      
      <t>    
        <figure>
          <artwork>
            Subject: Request for LDAP Descriptor Registration (Object 
              Identifier Descriptors)
            Descriptor (short name): jid
            Object Identifier: TBD.2
            Person &amp; email address to contact for further 
              information: S. Kille &lt;steve.kille@isode.com&gt;
            Usage: Attribute Type
            Specification: this document
            Author/Change Controller: IESG
          </artwork>
        </figure>
      </t>   
      

    </section>

    <section title="Security Considerations" anchor="seccons">

      <t>XMPP JIDs are often personal identifiers enabling electronic communication, with similar considerations to email addresses.   This schema enables publishing of this information in LDAP directories which may be corporate or public services.   
     
     Care should be taken to only publish JID information which is acceptable to be linked to the LDAP object and be made accessible to all LDAP users.
      
      The general LDAP Security Considerations specified in  <xref target="RFC4510"/> also apply.</t>

    </section>
    
  </middle>
  <back>
    <references title="Normative References">
      <?rfc include="reference.RFC.2119"?> <!-- Keywords -->
      <?rfc include="reference.RFC.4510"?>
      <?rfc include="reference.RFC.4517"?>
      <?rfc include="reference.RFC.4519"?>
      <?rfc include="reference.RFC.4520"?>
      <?rfc include="reference.RFC.6120"?>
      <?rfc include="reference.RFC.7622"?>
    </references>

<!--    
    <references title="Informative References">
    </references>
-->


    <section title="Acknowledgements">
	
      <t>Thanks to Alexey Melnikov for suggestions on preparing this draft.  Thanks to Alan Murdock, Yoav Nir, Peter Saint-Andre and Kurt Zeilenga for review comments.</t>

      
    </section>


    
  </back>
</rfc>
