<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" category="std" consensus="true" docName="draft-ietf-regext-login-security-10" indexInclude="true" ipr="trust200902" number="8807" prepTime="2020-08-07T20:41:06" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="4" tocInclude="true" xml:lang="en">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-regext-login-security-10" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc8807" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="Login Security Extension for the EPP">Login Security Extension for the Extensible Provisioning Protocol (EPP)</title>
    <seriesInfo name="RFC" value="8807" stream="IETF"/>
    <author fullname="James Gould" initials="J." surname="Gould">
      <organization showOnFrontPage="true">VeriSign, Inc.</organization>
      <address>
        <postal>
          <street>12061 Bluemont Way</street>
          <city>Reston</city>
          <region>VA</region>
          <code>20190</code>
          <country>United States of America</country>
        </postal>
        <email>jgould@verisign.com</email>
        <uri>http://www.verisign.com</uri>
      </address>
    </author>
    <author fullname="Matthew Pozun" initials="M." surname="Pozun">
      <organization showOnFrontPage="true">VeriSign, Inc.</organization>
      <address>
        <postal>
          <street>12061 Bluemont Way</street>
          <city>Reston</city>
          <region>VA</region>
          <code>20190</code>
          <country>United States of America</country>
        </postal>
        <email>mpozun@verisign.com</email>
        <uri>http://www.verisign.com</uri>
      </address>
    </author>
    <date month="08" year="2020"/>
    <abstract pn="section-abstract">
      <t pn="section-abstract-1">The Extensible Provisioning Protocol (EPP) includes a client
      authentication scheme that is based on a user identifier and
      password. The structure of the password field is defined by an XML
      Schema data type that specifies minimum and maximum password length
      values, but there are no other provisions for password management other
      than changing the password. 
  
      This document describes an EPP extension
      that allows longer passwords to be created and adds additional security
      features to the EPP login command and response.</t>
    </abstract>
    <boilerplate>
      <section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
        <name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
        <t pn="section-boilerplate.1-1">
            This is an Internet Standards Track document.
        </t>
        <t pn="section-boilerplate.1-2">
            This document is a product of the Internet Engineering Task Force
            (IETF).  It represents the consensus of the IETF community.  It has
            received public review and has been approved for publication by
            the Internet Engineering Steering Group (IESG).  Further
            information on Internet Standards is available in Section 2 of 
            RFC 7841.
        </t>
        <t pn="section-boilerplate.1-3">
            Information about the current status of this document, any
            errata, and how to provide feedback on it may be obtained at
            <eref target="https://www.rfc-editor.org/info/rfc8807" brackets="none"/>.
        </t>
      </section>
      <section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
        <name slugifiedName="name-copyright-notice">Copyright Notice</name>
        <t pn="section-boilerplate.2-1">
            Copyright (c) 2020 IETF Trust and the persons identified as the
            document authors. All rights reserved.
        </t>
        <t pn="section-boilerplate.2-2">
            This document is subject to BCP 78 and the IETF Trust's Legal
            Provisions Relating to IETF Documents
            (<eref target="https://trustee.ietf.org/license-info" brackets="none"/>) in effect on the date of
            publication of this document. Please review these documents
            carefully, as they describe your rights and restrictions with
            respect to this document. Code Components extracted from this
            document must include Simplified BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Simplified BSD License.
        </t>
      </section>
    </boilerplate>
    <toc>
      <section anchor="toc" numbered="false" removeInRFC="false" toc="exclude" pn="section-toc.1">
        <name slugifiedName="name-table-of-contents">Table of Contents</name>
        <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1">
          <li pn="section-toc.1-1.1">
            <t keepWithNext="true" pn="section-toc.1-1.1.1"><xref derivedContent="1" format="counter" sectionFormat="of" target="section-1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introduction">Introduction</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.1.2">
              <li pn="section-toc.1-1.1.2.1">
                <t keepWithNext="true" pn="section-toc.1-1.1.2.1.1"><xref derivedContent="1.1" format="counter" sectionFormat="of" target="section-1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-conventions-used-in-this-do">Conventions Used in This Document</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.2">
            <t keepWithNext="true" pn="section-toc.1-1.2.1"><xref derivedContent="2" format="counter" sectionFormat="of" target="section-2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-migrating-to-newer-versions">Migrating to Newer Versions of This Extension</xref></t>
          </li>
          <li pn="section-toc.1-1.3">
            <t pn="section-toc.1-1.3.1"><xref derivedContent="3" format="counter" sectionFormat="of" target="section-3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-object-attributes">Object Attributes</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2">
              <li pn="section-toc.1-1.3.2.1">
                <t pn="section-toc.1-1.3.2.1.1"><xref derivedContent="3.1" format="counter" sectionFormat="of" target="section-3.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-event">Event</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.2">
                <t pn="section-toc.1-1.3.2.2.1"><xref derivedContent="3.2" format="counter" sectionFormat="of" target="section-3.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-login-security-password">"[LOGIN-SECURITY]" Password</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.3">
                <t pn="section-toc.1-1.3.2.3.1"><xref derivedContent="3.3" format="counter" sectionFormat="of" target="section-3.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-dates-and-times">Dates and Times</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.4">
            <t pn="section-toc.1-1.4.1"><xref derivedContent="4" format="counter" sectionFormat="of" target="section-4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-epp-command-mapping">EPP Command Mapping</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2">
              <li pn="section-toc.1-1.4.2.1">
                <t pn="section-toc.1-1.4.2.1.1"><xref derivedContent="4.1" format="counter" sectionFormat="of" target="section-4.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-epp-login-command">EPP &lt;login&gt; Command</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.5">
            <t pn="section-toc.1-1.5.1"><xref derivedContent="5" format="counter" sectionFormat="of" target="section-5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-formal-syntax">Formal Syntax</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2">
              <li pn="section-toc.1-1.5.2.1">
                <t pn="section-toc.1-1.5.2.1.1"><xref derivedContent="5.1" format="counter" sectionFormat="of" target="section-5.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-login-security-extension-sc">Login Security Extension Schema</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.6">
            <t pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.6.2">
              <li pn="section-toc.1-1.6.2.1">
                <t pn="section-toc.1-1.6.2.1.1"><xref derivedContent="6.1" format="counter" sectionFormat="of" target="section-6.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-xml-namespace">XML Namespace</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.2">
                <t pn="section-toc.1-1.6.2.2.1"><xref derivedContent="6.2" format="counter" sectionFormat="of" target="section-6.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-epp-extension-registry">EPP Extension Registry</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.7">
            <t pn="section-toc.1-1.7.1"><xref derivedContent="7" format="counter" sectionFormat="of" target="section-7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.8">
            <t pn="section-toc.1-1.8.1"><xref derivedContent="8" format="counter" sectionFormat="of" target="section-8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.8.2">
              <li pn="section-toc.1-1.8.2.1">
                <t pn="section-toc.1-1.8.2.1.1"><xref derivedContent="8.1" format="counter" sectionFormat="of" target="section-8.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.2">
                <t pn="section-toc.1-1.8.2.2.1"><xref derivedContent="8.2" format="counter" sectionFormat="of" target="section-8.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.9">
            <t pn="section-toc.1-1.9.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.a"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgements">Acknowledgements</xref></t>
          </li>
          <li pn="section-toc.1-1.10">
            <t pn="section-toc.1-1.10.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-addresses">Authors' Addresses</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t pn="section-1-1">This document describes an Extensible Provisioning Protocol (EPP)
      extension for enhancing the security of the EPP login command in EPP
      <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/>. EPP <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> includes a maximum password length of 16 characters,
      which inhibits implementing stronger password security policies with
      higher entropy. The enhancements include supporting longer passwords (or
      passphrases) than the 16-character maximum and providing a list of
      security events in the login response.  The password (current and new)
      in EPP <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> can be overridden by
      the password included in the extension to extend past the 16-character
      maximum. The security events supported include password expiry, client
      certificate expiry, insecure cipher, insecure TLS protocol, new password
      complexity, login security statistical warning, and a custom event.  The
      attributes supported by the security events include an identified event
      type or a subtype, an indicated security level of
      warning or error, a future or past-due expiration date, the
      value that resulted in the event, the duration of the statistical event,
      and a free-form description with an optional language.</t>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-1.1">
        <name slugifiedName="name-conventions-used-in-this-do">Conventions Used in This Document</name>
        <t pn="section-1.1-1">
    The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>",
    "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>",
    "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>", 
    "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are
    to be interpreted as 
    described in BCP 14 <xref target="RFC2119" format="default" sectionFormat="of" derivedContent="RFC2119"/> <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/> 
    when, and only when, they appear in all capitals, as shown here.
        </t>
        <t pn="section-1.1-2">XML is case sensitive. Unless stated otherwise, XML specifications
	and examples provided in this document <bcp14>MUST</bcp14> be
	interpreted in the character case presented in order to develop a
	conforming implementation.</t>
        <t pn="section-1.1-3">In examples, "C:" represents lines sent by a protocol client and
	"S:" represents lines returned by a protocol server. In
	examples, indentation and
	whitespace are provided only to illustrate element
	relationships and are not a required feature of this protocol.</t>
        <t pn="section-1.1-4">"loginSec-1.0" is used as an abbreviation for
        "urn:ietf:params:xml:ns:epp:loginSec-1.0". The XML namespace prefix
        "loginSec" is used, but implementations <bcp14>MUST NOT</bcp14> depend on
        it.  Instead, they are to employ
        a proper namespace-aware XML parser and serializer to interpret and
        output the XML documents.</t>
        <t pn="section-1.1-5">"whitespace" is defined by the XML Schema whiteSpace data type in
	<xref target="W3C.REC-xmlschema-2-20041028" format="default" sectionFormat="of" derivedContent="W3C.REC-xmlschema-2-20041028"/>, which
	only includes the ASCII whitespace characters #x9 (tab), #xA
	(linefeed), #xD (carriage return), and #x20 (space).</t>
      </section>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-migrating-to-newer-versions">Migrating to Newer Versions of This Extension</name>
      <t pn="section-2-1">Servers that implement this extension <bcp14>SHOULD</bcp14> provide a way for
         clients to progressively update their implementations when a new
         version of the extension is deployed.  A newer version of the extension
         is expected to use an XML namespace with a higher version number than
      the prior versions.</t>
      <t pn="section-2-2">Servers <bcp14>SHOULD</bcp14> (for a temporary migration period up to
      server policy) provide support for 
          older versions of the extension in parallel to the newest version
          and allow clients to select their preferred version via the
          &lt;svcExtension&gt; element of the &lt;login&gt; command.</t>
      <t pn="section-2-3">If a client requests multiple versions of the extension at login,
           then, when preparing responses to commands that do not include
           extension elements, the server <bcp14>SHOULD</bcp14> only include extension elements
           in the namespace of the newest version of the extension requested by
           the client.</t>
      <t pn="section-2-4">When preparing responses to commands that do include extension
           elements, the server <bcp14>SHOULD</bcp14> only include extension elements for the
           extension versions present in the command.</t>
    </section>
    <section anchor="attrs" numbered="true" toc="include" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-object-attributes">Object Attributes</name>
      <t pn="section-3-1">This extension adds additional elements to <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> login command and response.  Only those new elements
      are described here.</t>
      <section anchor="event" numbered="true" toc="include" removeInRFC="false" pn="section-3.1">
        <name slugifiedName="name-event">Event</name>
        <t pn="section-3.1-1">A security event using the &lt;loginSec:event&gt; element
        represents either a warning or error identified by the server after
        the client has connected and submitted the login command. The
	&lt;loginSec:event&gt; element is contained in a list of one or more
	elements in the &lt;loginSec:loginSecData&gt; element, so there
	<bcp14>MAY</bcp14> be multiple events returned that provide
	information for the client to address. The &lt;loginSec:event&gt;
	<bcp14>MAY</bcp14> include a free-form description. All of the
	security events use a consistent set of attributes, where the exact
	set of applicable attributes is based on the event type. The supported
	set of &lt;loginSec:event&gt; element attributes include:</t>
        <dl newline="false" indent="4" spacing="normal" pn="section-3.1-2">
          <dt pn="section-3.1-2.1">"type":</dt>
          <dd pn="section-3.1-2.2">A <bcp14>REQUIRED</bcp14> attribute that defines the type of
	  security event.  The enumerated list of "type" values includes:</dd>
          <dt pn="section-3.1-2.3"/>
          <dd pn="section-3.1-2.4">
            <dl newline="false" indent="4" spacing="normal" pn="section-3.1-2.4.1">
              <dt pn="section-3.1-2.4.1.1">"password":</dt>
              <dd pn="section-3.1-2.4.1.2">Identifies a password expiry event where the password
	      expires in the future or has expired based on the "exDate" date
	      and time. The "exDate" attribute <bcp14>MUST</bcp14> be set with
	      the password expiry date and time.</dd>
              <dt pn="section-3.1-2.4.1.3">"certificate":</dt>
              <dd pn="section-3.1-2.4.1.4">Identifies a client certificate expiry event where the
	      client certificate will expire at the "exDate" date and
	      time. The "exDate" attribute <bcp14>MUST</bcp14> be set with the
	      certificate expiry date and time.</dd>
              <dt pn="section-3.1-2.4.1.5">"cipher":</dt>
              <dd pn="section-3.1-2.4.1.6">Identifies the use of an insecure or deprecated TLS cipher
	      suite. The "name" attribute <bcp14>MUST</bcp14> be set with the
	      name of the cipher suite, which is free-form and is not expected
	      to be parsed and automatically addressed by the client. An
	      example of cipher suite names can be found in the TLS Cipher
	      Suites of the <eref target="https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-4" brackets="none">"Transport
	      Layer Security (TLS) Parameters" registry</eref>.</dd>
              <dt pn="section-3.1-2.4.1.7">"tlsProtocol":</dt>
              <dd pn="section-3.1-2.4.1.8">Identifies the use of an insecure or deprecated TLS
	      protocol. The "name" attribute <bcp14>MUST</bcp14> be set with
	      the name of the TLS protocol, which is free-form and is not
	      expected to be parsed and automatically addressed by the
	      client.</dd>
              <dt pn="section-3.1-2.4.1.9">"newPW":</dt>
              <dd pn="section-3.1-2.4.1.10">The new password does not meet the server password
	      complexity requirements.</dd>
              <dt pn="section-3.1-2.4.1.11">"stat":</dt>
              <dd pn="section-3.1-2.4.1.12">Provides a login security statistical warning that
	      <bcp14>MUST</bcp14> set the "name" attribute to the name of the
	      statistic subtype.</dd>
              <dt pn="section-3.1-2.4.1.13">"custom":</dt>
              <dd pn="section-3.1-2.4.1.14">Custom event type that <bcp14>MUST</bcp14> set the "name"
	      attribute with the custom event type name.</dd>
            </dl>
          </dd>
          <dt pn="section-3.1-2.5">"name":</dt>
          <dd pn="section-3.1-2.6">Used to define a subtype when the "type" attribute is not
	  "custom" or the full type name when the "type" attribute is
	  "custom".  The "name" attribute <bcp14>MUST</bcp14> be set when the
	  "type" attribute is "stat" or "custom". The possible set of "name"
	  values, by event type, can be discovered/negotiated out of band to
	  EPP or using a separate EPP extension designed to provide server
	  policy information to the client.</dd>
          <dt pn="section-3.1-2.7">"level":</dt>
          <dd pn="section-3.1-2.8">Defines the level of the event as either "warning" for a warning
	  event that needs action or "error" for an error event that requires
	  immediate action.</dd>
          <dt pn="section-3.1-2.9">"exDate":</dt>
          <dd pn="section-3.1-2.10">Contains the date and time that a "warning" level has or will
	  become an "error" level. At expiry, there <bcp14>MAY</bcp14> be a
	  connection failure or <bcp14>MAY</bcp14> be a login failure. An
	  example is an expired certification that will result in a connection
	  failure or an expired password that may result in a login
	  failure.</dd>
          <dt pn="section-3.1-2.11">"value":</dt>
          <dd pn="section-3.1-2.12">Identifies the value that resulted in the login security
	  event. An example is the negotiated insecure cipher suite or the
	  negotiated insecure TLS protocol.</dd>
          <dt pn="section-3.1-2.13">"duration":</dt>
          <dd pn="section-3.1-2.14">Defines the duration that a statistical event is associated
	  with, ending when the login command was received.  The format of the
	  duration is defined by the duration primitive data type in Section
	  3.2.6 of <xref target="W3C.REC-xmlschema-2-20041028" format="default" sectionFormat="of" derivedContent="W3C.REC-xmlschema-2-20041028"/>.</dd>
          <dt pn="section-3.1-2.15">"lang":</dt>
          <dd pn="section-3.1-2.16">Identifies the negotiated language of the free-form description.
	  The format of the language is defined by the language primitive
	  data type in Section 3.3.3 of <xref target="W3C.REC-xmlschema-2-20041028" format="default" sectionFormat="of" derivedContent="W3C.REC-xmlschema-2-20041028"/>.  The
	  default is "en" (English).</dd>
        </dl>
        <t pn="section-3.1-3">Example login security event for password expiration, where the
	current date is 2020-03-25:</t>
        <sourcecode type="xml" markers="false" pn="section-3.1-4">
&lt;loginSec:event
  type="password"
  level="warning"
  exDate="2020-04-01T22:00:00.0Z"
  lang="en"&gt;
  Password expiration soon
&lt;/loginSec:event&gt;
</sourcecode>
        <t pn="section-3.1-5">Example login security event for identifying 100 failed logins over
	the last day, using the "stat" subtype of "failedLogins":</t>
        <sourcecode type="xml" markers="false" pn="section-3.1-6">
&lt;loginSec:event
  type="stat"
  name="failedLogins"
  level="warning"
  value="100"
  duration="P1D"&gt;
  Excessive invalid daily logins
&lt;/loginSec:event&gt;
</sourcecode>
      </section>
      <section anchor="loginSecurityPassword" numbered="true" toc="include" removeInRFC="false" pn="section-3.2">
        <name slugifiedName="name-login-security-password">"[LOGIN-SECURITY]" Password</name>
        <t pn="section-3.2-1">When the <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> &lt;pw&gt;
	element contains the predefined value of "[LOGIN-SECURITY]", the
	&lt;loginSec:pw&gt; element overrides the &lt;pw&gt; element, which is
	a constant value for the server to use the &lt;loginSec:pw&gt; element
	for the password. Similarly, when the <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> &lt;newPw&gt; element contains the predefined value
	of "[LOGIN-SECURITY]", the &lt;loginSec:newPw&gt; element overrides
	the &lt;newPw&gt; element, which is a constant value for the server to
	use the &lt;loginSec:newPW&gt; element for the new password. The
	"[LOGIN-SECURITY]" predefined string <bcp14>MUST</bcp14> be supported
	by the server for the client to explicitly indicate to the server
	whether to use &lt;loginSec:pw&gt; element in place of the <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> &lt;pw&gt; element or to use the
	&lt;loginSec:newPW&gt; in place of the <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> &lt;newPW&gt; element.  The server <bcp14>MUST NOT</bcp14> allow the client to set the password to the value
	"[LOGIN-SECURITY]".</t>
      </section>
      <section anchor="datestimes" numbered="true" toc="include" removeInRFC="false" pn="section-3.3">
        <name slugifiedName="name-dates-and-times">Dates and Times</name>
        <t pn="section-3.3-1">Date and time attribute values <bcp14>MUST</bcp14> be represented
	in Universal Coordinated Time (UTC) using the Gregorian calendar.  The
	extended date-time form using upper case "T" and "Z" characters
	defined in <xref target="W3C.REC-xmlschema-2-20041028" format="default" sectionFormat="of" derivedContent="W3C.REC-xmlschema-2-20041028"/> <bcp14>MUST</bcp14> be used to represent date-time
	values, as XML Schema does not support truncated date-time forms or
	lower case "T" and "Z" characters.</t>
      </section>
    </section>
    <section anchor="commands" numbered="true" toc="include" removeInRFC="false" pn="section-4">
      <name slugifiedName="name-epp-command-mapping">EPP Command Mapping</name>
      <t pn="section-4-1">A detailed description of the EPP syntax and semantics can be found
      in the EPP core protocol specification <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/>.</t>
      <section anchor="loginCommand" numbered="true" toc="include" removeInRFC="false" pn="section-4.1">
        <name slugifiedName="name-epp-login-command">EPP &lt;login&gt; Command</name>
        <t pn="section-4.1-1">This extension defines additional elements to extend the EPP
	&lt;login&gt; command and response to be used in conjunction with
	<xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/>.</t>
        <t pn="section-4.1-2">The EPP &lt;login&gt; command is used to establish a session with
	an EPP server.  This extension overrides the password that is passed
	with the <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> &lt;pw&gt; or the
	&lt;newPW&gt; element, as defined in <xref target="loginSecurityPassword" format="default" sectionFormat="of" derivedContent="Section 3.2"/>.  A
	&lt;loginSec:loginSec&gt; element is sent along with the <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> &lt;login&gt; command and
	<bcp14>MUST</bcp14> contain at least one of the following child
	elements:</t>
        <dl newline="false" indent="4" spacing="normal" pn="section-4.1-3">
          <dt pn="section-4.1-3.1">&lt;loginSec:userAgent&gt;:</dt>
          <dd pn="section-4.1-3.2">
            <bcp14>OPTIONAL</bcp14> client user-agent information that
	  identifies the client application software, technology, and
	  operating system used by the server to identify functional or
	  security constraints, current security issues, and potential future
	  functional or security issues for the client.  The server may use
	  the information for real-time identification and client notification
	  of security issues, such as keying off of the client application
	  software for executing security rule checks.  The server may capture
	  the information to identify future security policy issues, such as
	  deprecating or removing TLS cipher suites or TLS protocols.  The
	  &lt;loginSec:userAgent&gt; element <bcp14>MUST</bcp14> contain at
	  least one of the following child elements:</dd>
          <dt pn="section-4.1-3.3"/>
          <dd pn="section-4.1-3.4">
            <dl newline="false" indent="4" spacing="normal" pn="section-4.1-3.4.1">
              <dt pn="section-4.1-3.4.1.1">&lt;loginSec:app&gt;:</dt>
              <dd pn="section-4.1-3.4.1.2">
                <t pn="section-4.1-3.4.1.2.1"><bcp14>OPTIONAL</bcp14> name of the client application
		software with version if available, such as the name of the
		client SDK "EPP SDK 1.0.0".  The &lt;loginSec:app&gt; element
		value can be created by appending the version number to the
		name of the application software, such as the Augmented
		Backus-Naur Form (ABNF) grammar <xref target="RFC5234" format="default" sectionFormat="of" derivedContent="RFC5234"/> format:</t>
                <sourcecode type="abnf" markers="false" pn="section-4.1-3.4.1.2.2">
app = name SP version
name = 1*VCHAR
version = 1*VCHAR
</sourcecode>
              </dd>
              <dt pn="section-4.1-3.4.1.3">&lt;loginSec:tech&gt;:</dt>
              <dd pn="section-4.1-3.4.1.4">
                <t pn="section-4.1-3.4.1.4.1"><bcp14>OPTIONAL</bcp14> technology used for the client
		software with version if available, such as "Vendor Java
		11.0.6".  The &lt;loginSec:tech&gt; element value can be
		created by including the technology vendor, technology name,
		and technology version, such as the Augmented Backus-Naur Form
		(ABNF) grammar <xref target="RFC5234" format="default" sectionFormat="of" derivedContent="RFC5234"/>
		format:</t>
                <sourcecode type="abnf" markers="false" pn="section-4.1-3.4.1.4.2">
tech = vendor SP name SP version
vendor = 1*VCHAR
name = 1*VCHAR
version = 1*VCHAR
</sourcecode>
              </dd>
              <dt pn="section-4.1-3.4.1.5">&lt;loginSec:os&gt;:</dt>
              <dd pn="section-4.1-3.4.1.6">
                <t pn="section-4.1-3.4.1.6.1"><bcp14>OPTIONAL</bcp14> client operating system used with
		version if available, such as "x86_64 Mac OS X 10.15.2".  The
		&lt;loginSec:os&gt; element value can be created by including
		the operating system architecture, operating system name, and
		operating system version, such as the Augmented Backus-Naur
		Form (ABNF) grammar <xref target="RFC5234" format="default" sectionFormat="of" derivedContent="RFC5234"/> format:</t>
                <sourcecode type="abnf" markers="false" pn="section-4.1-3.4.1.6.2">
os = arch SP name SP version
arch = 1*VCHAR
name = 1*VCHAR
version = 1*VCHAR
</sourcecode>
              </dd>
            </dl>
          </dd>
          <dt pn="section-4.1-3.5">&lt;loginSec:pw&gt;:</dt>
          <dd pn="section-4.1-3.6">
            <bcp14>OPTIONAL</bcp14> plain text password that is case
	  sensitive, has a minimum length of 6 characters, and has a maximum
	  length that is up to server policy.  All leading and trailing
	  whitespace is removed, and all internal contiguous whitespace that
	  includes #x9 (tab), #xA (linefeed), #xD (carriage return), and #x20
	  (space) is replaced with a single #x20 (space).  This element
	  <bcp14>MUST</bcp14> only be set if the <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> &lt;pw&gt; element is set to the
	  "[LOGIN-SECURITY]" value.</dd>
          <dt pn="section-4.1-3.7">&lt;loginSec:newPW&gt;:</dt>
          <dd pn="section-4.1-3.8">
            <bcp14>OPTIONAL</bcp14> plain text new password that is case
	  sensitive, has a minimum length of 6 characters, and has a maximum
	  length that is up to server policy.  All leading and trailing
	  whitespace is removed, and all internal contiguous whitespace that
	  includes #x9 (tab), #xA (linefeed), #xD (carriage return), and #x20
	  (space) is replaced with a single #x20 (space).  This element
	  <bcp14>MUST</bcp14> only be set if the <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> &lt;newPW&gt; element is set to the
	  "[LOGIN-SECURITY]" value.</dd>
        </dl>
        <t pn="section-4.1-4">It is <bcp14>RECOMMENDED</bcp14> that the plain text password in
	the &lt;loginSec:pw&gt; and &lt;loginSec:newPw&gt; elements use
	printable ASCII characters #x20 (space) - #x7E (~) with high entropy,
	such as 128 bits.  If non-ASCII characters are supported with the
	plain text password, then use a standard for passwords with
	international characters; the OpaqueString PRECIS profile in <xref target="RFC8265" format="default" sectionFormat="of" derivedContent="RFC8265"/> is recommended in the absence of
	other considerations.</t>
        <t pn="section-4.1-5">Example login command that uses the &lt;loginSec:pw&gt; element
	instead of the &lt;pw&gt;
	element  (<xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/>) to establish the session and includes the
	&lt;loginSec:userAgent&gt; element:</t>
        <sourcecode type="" markers="false" pn="section-4.1-6">
C:&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
C:&lt;epp xmlns="urn:ietf:params:xml:ns:epp-1.0"&gt;
C:  &lt;command&gt;
C:    &lt;login&gt;
C:      &lt;clID&gt;ClientX&lt;/clID&gt;
C:      &lt;pw&gt;[LOGIN-SECURITY]&lt;/pw&gt;
C:      &lt;options&gt;
C:        &lt;version&gt;1.0&lt;/version&gt;
C:        &lt;lang&gt;en&lt;/lang&gt;
C:      &lt;/options&gt;
C:      &lt;svcs&gt;
C:        &lt;objURI&gt;urn:ietf:params:xml:ns:obj1&lt;/objURI&gt;
C:        &lt;objURI&gt;urn:ietf:params:xml:ns:obj2&lt;/objURI&gt;
C:        &lt;objURI&gt;urn:ietf:params:xml:ns:obj3&lt;/objURI&gt;
C:        &lt;svcExtension&gt;
C:          &lt;extURI&gt;urn:ietf:params:xml:ns:epp:loginSec-1.0&lt;/extURI&gt;
C:        &lt;/svcExtension&gt;
C:      &lt;/svcs&gt;
C:    &lt;/login&gt;
C:    &lt;extension&gt;
C:      &lt;loginSec:loginSec
C:        xmlns:loginSec=
C:          "urn:ietf:params:xml:ns:epp:loginSec-1.0"&gt;
C:        &lt;loginSec:userAgent&gt;
C:          &lt;loginSec:app&gt;EPP SDK 1.0.0&lt;/loginSec:app&gt;
C:          &lt;loginSec:tech&gt;Vendor Java 11.0.6&lt;/loginSec:tech&gt;
C:          &lt;loginSec:os&gt;x86_64 Mac OS X 10.15.2&lt;/loginSec:os&gt;
C:        &lt;/loginSec:userAgent&gt;
C:        &lt;loginSec:pw&gt;this is a long password&lt;/loginSec:pw&gt;
C:      &lt;/loginSec:loginSec&gt;
C:    &lt;/extension&gt;
C:    &lt;clTRID&gt;ABC-12345&lt;/clTRID&gt;
C:  &lt;/command&gt;
C:&lt;/epp&gt;
</sourcecode>
        <t pn="section-4.1-7">Example login command that uses the &lt;loginSec:pw&gt; element
	instead of the &lt;pw&gt;
	element (<xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/>) to
	establish the session and that uses the &lt;loginSec:newPW&gt;
	element instead of the 
	&lt;newPW&gt; element (<xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/>) to set the new password:</t>
        <sourcecode type="" markers="false" pn="section-4.1-8">
C:&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
C:&lt;epp xmlns="urn:ietf:params:xml:ns:epp-1.0"&gt;
C:  &lt;command&gt;
C:    &lt;login&gt;
C:      &lt;clID&gt;ClientX&lt;/clID&gt;
C:      &lt;pw&gt;[LOGIN-SECURITY]&lt;/pw&gt;
C:      &lt;newPW&gt;[LOGIN-SECURITY]&lt;/newPW&gt;
C:      &lt;options&gt;
C:        &lt;version&gt;1.0&lt;/version&gt;
C:        &lt;lang&gt;en&lt;/lang&gt;
C:      &lt;/options&gt;
C:      &lt;svcs&gt;
C:        &lt;objURI&gt;urn:ietf:params:xml:ns:obj1&lt;/objURI&gt;
C:        &lt;objURI&gt;urn:ietf:params:xml:ns:obj2&lt;/objURI&gt;
C:        &lt;objURI&gt;urn:ietf:params:xml:ns:obj3&lt;/objURI&gt;
C:        &lt;svcExtension&gt;
C:          &lt;extURI&gt;urn:ietf:params:xml:ns:epp:loginSec-1.0&lt;/extURI&gt;
C:        &lt;/svcExtension&gt;
C:      &lt;/svcs&gt;
C:    &lt;/login&gt;
C:    &lt;extension&gt;
C:      &lt;loginSec:loginSec
C:        xmlns:loginSec=
C:          "urn:ietf:params:xml:ns:epp:loginSec-1.0"&gt;
C:        &lt;loginSec:pw&gt;this is a long password
C:        &lt;/loginSec:pw&gt;
C:        &lt;loginSec:newPW&gt;new password that is still long
C:        &lt;/loginSec:newPW&gt;
C:      &lt;/loginSec:loginSec&gt;
C:    &lt;/extension&gt;
C:    &lt;clTRID&gt;ABC-12345&lt;/clTRID&gt;
C:  &lt;/command&gt;
C:&lt;/epp&gt;
</sourcecode>
        <t pn="section-4.1-9">Example login command that uses the &lt;pw&gt; element (<xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/>) to establish the session and
	that uses the &lt;loginSec:newPW&gt; element instead of the  &lt;newPW&gt; element (<xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/>) to set the
	new password:</t>
        <sourcecode type="" markers="false" pn="section-4.1-10">
C:&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
C:&lt;epp xmlns="urn:ietf:params:xml:ns:epp-1.0"&gt;
C:  &lt;command&gt;
C:    &lt;login&gt;
C:      &lt;clID&gt;ClientX&lt;/clID&gt;
C:      &lt;pw&gt;shortpassword&lt;/pw&gt;
C:      &lt;newPW&gt;[LOGIN-SECURITY]&lt;/newPW&gt;
C:      &lt;options&gt;
C:        &lt;version&gt;1.0&lt;/version&gt;
C:        &lt;lang&gt;en&lt;/lang&gt;
C:      &lt;/options&gt;
C:      &lt;svcs&gt;
C:        &lt;objURI&gt;urn:ietf:params:xml:ns:obj1&lt;/objURI&gt;
C:        &lt;objURI&gt;urn:ietf:params:xml:ns:obj2&lt;/objURI&gt;
C:        &lt;objURI&gt;urn:ietf:params:xml:ns:obj3&lt;/objURI&gt;
C:        &lt;svcExtension&gt;
C:          &lt;extURI&gt;urn:ietf:params:xml:ns:epp:loginSec-1.0&lt;/extURI&gt;
C:        &lt;/svcExtension&gt;
C:      &lt;/svcs&gt;
C:    &lt;/login&gt;
C:    &lt;extension&gt;
C:      &lt;loginSec:loginSec
C:        xmlns:loginSec=
C:          "urn:ietf:params:xml:ns:epp:loginSec-1.0"&gt;
C:        &lt;loginSec:newPW&gt;new password that is still long
C:        &lt;/loginSec:newPW&gt;
C:      &lt;/loginSec:loginSec&gt;
C:    &lt;/extension&gt;
C:    &lt;clTRID&gt;ABC-12345&lt;/clTRID&gt;
C:  &lt;/command&gt;
C:&lt;/epp&gt;
</sourcecode>
        <t pn="section-4.1-11">Upon a completed login command (success or failed), the extension
	<bcp14>MUST</bcp14> be included in the response when both of the
	following conditions hold:</t>
        <dl newline="false" indent="4" spacing="normal" pn="section-4.1-12">
          <dt pn="section-4.1-12.1">Client supports extension:</dt>
          <dd pn="section-4.1-12.2">The client supports the extension based on the
	  &lt;svcExtension&gt; element of the &lt;login&gt; command.</dd>
          <dt pn="section-4.1-12.3">At least one login security event:</dt>
          <dd pn="section-4.1-12.4">The server has identified at least one login security event to
	  communicate to the client.</dd>
        </dl>
        <t pn="section-4.1-13">The extension to the EPP response uses the
	&lt;loginSec:loginSecData&gt; element that contains the following
	child elements:</t>
        <dl newline="false" indent="4" spacing="normal" pn="section-4.1-14">
          <dt pn="section-4.1-14.1">&lt;loginSec:event&gt;:</dt>
          <dd pn="section-4.1-14.2">One or more &lt;loginSec:event&gt; elements defined in <xref target="event" format="default" sectionFormat="of" derivedContent="Section 3.1"/>.</dd>
        </dl>
        <t pn="section-4.1-15">Example EPP response to a successful login command on 2020-03-25,
	where the password will expire in a week:</t>
        <sourcecode type="" markers="false" pn="section-4.1-16">
S:&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
S:&lt;epp xmlns="urn:ietf:params:xml:ns:epp-1.0"&gt;
S:  &lt;response&gt;
S:    &lt;result code="1000"&gt;
S:      &lt;msg&gt;Command completed successfully&lt;/msg&gt;
S:    &lt;/result&gt;
S:    &lt;extension&gt;
S:      &lt;loginSec:loginSecData
S:        xmlns:loginSec=
S:          "urn:ietf:params:xml:ns:epp:loginSec-1.0"&gt;
S:        &lt;loginSec:event
S:          type="password"
S:          level="warning"
S:          exDate="2020-04-01T22:00:00.0Z"
S:          lang="en"&gt;
S:          Password expiring in a week
S:        &lt;/loginSec:event&gt;
S:      &lt;/loginSec:loginSecData&gt;
S:    &lt;/extension&gt;
S:    &lt;trID&gt;
S:      &lt;clTRID&gt;ABC-12345&lt;/clTRID&gt;
S:      &lt;svTRID&gt;54321-XYZ&lt;/svTRID&gt;
S:    &lt;/trID&gt;
S:  &lt;/response&gt;
S:&lt;/epp&gt;
</sourcecode>
        <t pn="section-4.1-17">Example EPP response to a failed login command where the password
	has expired and the new password does not meet the server complexity
	requirements:</t>
        <sourcecode type="" markers="false" pn="section-4.1-18">
S:&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
S:&lt;epp xmlns="urn:ietf:params:xml:ns:epp-1.0"&gt;
S:  &lt;response&gt;
S:    &lt;result code="2200"&gt;
S:      &lt;msg&gt;Authentication error&lt;/msg&gt;
S:    &lt;/result&gt;
S:    &lt;extension&gt;
S:      &lt;loginSec:loginSecData
S:        xmlns:loginSec=
S:          "urn:ietf:params:xml:ns:epp:loginSec-1.0"&gt;
S:        &lt;loginSec:event
S:          type="password"
S:          level="error"
S:          exDate="2020-03-24T22:00:00.0Z"&gt;
S:          Password has expired
S:        &lt;/loginSec:event&gt;
S:        &lt;loginSec:event
S:          type="newPW"
S:          level="error"&gt;
S:          New password does not meet complexity requirements
S:        &lt;/loginSec:event&gt;
S:      &lt;/loginSec:loginSecData&gt;
S:    &lt;/extension&gt;
S:    &lt;trID&gt;
S:      &lt;clTRID&gt;ABC-12345&lt;/clTRID&gt;
S:      &lt;svTRID&gt;54321-XYZ&lt;/svTRID&gt;
S:    &lt;/trID&gt;
S:  &lt;/response&gt;
S:&lt;/epp&gt;
</sourcecode>
        <t pn="section-4.1-19">Example EPP response to a successful login command where
            there is a set of login security events:</t>
        <sourcecode type="" markers="false" pn="section-4.1-20">
S:&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
S:&lt;epp xmlns="urn:ietf:params:xml:ns:epp-1.0"&gt;
S:  &lt;response&gt;
S:    &lt;result code="1000"&gt;
S:      &lt;msg&gt;Command completed successfully&lt;/msg&gt;
S:    &lt;/result&gt;
S:    &lt;extension&gt;
S:      &lt;loginSec:loginSecData
S:        xmlns:loginSec=
S:          "urn:ietf:params:xml:ns:epp:loginSec-1.0"&gt;
S:        &lt;loginSec:event
S:          type="password"
S:          level="warning"
S:          exDate="2020-04-01T22:00:00.0Z"
S:          lang="en"&gt;
S:          Password expiration soon
S:        &lt;/loginSec:event&gt;
S:        &lt;loginSec:event
S:          type="certificate"
S:          level="warning"
S:          exDate="2020-04-02T22:00:00.0Z"/&gt;
S:        &lt;loginSec:event
S:          type="cipher"
S:          level="warning"
S:          value="TLS_RSA_WITH_AES_128_CBC_SHA"&gt;
S:          Non-PFS Cipher negotiated
S:        &lt;/loginSec:event&gt;
S:        &lt;loginSec:event
S:          type="tlsProtocol"
S:          level="warning"
S:          value="TLSv1.0"&gt;
S:          Insecure TLS protocol negotiated
S:        &lt;/loginSec:event&gt;
S:        &lt;loginSec:event
S:          type="stat"
S:          name="failedLogins"
S:          level="warning"
S:          value="100"
S:          duration="P1D"&gt;
S:          Excessive invalid daily logins
S:        &lt;/loginSec:event&gt;
S:        &lt;loginSec:event
S:          type="custom"
S:          name="myCustomEvent"
S:          level="warning"&gt;
S:          A custom login security event occurred
S:        &lt;/loginSec:event&gt;
S:      &lt;/loginSec:loginSecData&gt;
S:    &lt;/extension&gt;
S:    &lt;trID&gt;
S:      &lt;clTRID&gt;ABC-12345&lt;/clTRID&gt;
S:      &lt;svTRID&gt;54321-XYZ&lt;/svTRID&gt;
S:    &lt;/trID&gt;
S:  &lt;/response&gt;
S:&lt;/epp&gt;
</sourcecode>
      </section>
    </section>
    <section anchor="syntax" numbered="true" toc="include" removeInRFC="false" pn="section-5">
      <name slugifiedName="name-formal-syntax">Formal Syntax</name>
      <t pn="section-5-1">The EPP Login Security Extension schema is presented here.</t>
      <t pn="section-5-2">The formal
      syntax shown here is a complete XML Schema representation of the object
      mapping suitable for automated validation of EPP XML instances. The
      &lt;CODE BEGINS&gt; and &lt;CODE ENDS&gt; tags are not part of the XML Schema; they are used to note the
      beginning and ending of the XML Schema for URI registration purposes.</t>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-5.1">
        <name slugifiedName="name-login-security-extension-sc">Login Security Extension Schema</name>
        <sourcecode type="xml" markers="true" pn="section-5.1-1">
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;schema xmlns="http://www.w3.org/2001/XMLSchema"
  xmlns:epp="urn:ietf:params:xml:ns:epp-1.0"
  xmlns:eppcom="urn:ietf:params:xml:ns:eppcom-1.0"
  xmlns:loginSec="urn:ietf:params:xml:ns:epp:loginSec-1.0"
  targetNamespace="urn:ietf:params:xml:ns:epp:loginSec-1.0"
  elementFormDefault="qualified"&gt;
  &lt;!--
  Import common element types.
  --&gt;
  &lt;import namespace="urn:ietf:params:xml:ns:eppcom-1.0" /&gt;
  &lt;import namespace="urn:ietf:params:xml:ns:epp-1.0" /&gt;
  &lt;annotation&gt;
    &lt;documentation&gt;Extensible Provisioning Protocol v1.0
       Login Security Extension Schema.&lt;/documentation&gt;
  &lt;/annotation&gt;
  &lt;!-- Login command extension elements --&gt;
  &lt;element name="loginSec" type="loginSec:loginSecType" /&gt;
  &lt;!--
    Attributes associated with the login command extension.
   --&gt;
  &lt;complexType name="loginSecType"&gt;
    &lt;sequence&gt;
      &lt;element name="userAgent"
        type="loginSec:userAgentType" minOccurs="0" /&gt;
      &lt;element name="pw"
        type="loginSec:pwType" minOccurs="0" /&gt;
      &lt;element name="newPW"
        type="loginSec:pwType" minOccurs="0" /&gt;
    &lt;/sequence&gt;
  &lt;/complexType&gt;
  &lt;simpleType name="pwType"&gt;
    &lt;restriction base="token"&gt;
      &lt;minLength value="6" /&gt;
    &lt;/restriction&gt;
  &lt;/simpleType&gt;
  &lt;complexType name="userAgentType"&gt;
    &lt;choice&gt;
      &lt;sequence&gt;
        &lt;element name="app"
          type="token" /&gt;
        &lt;element name="tech"
          type="token" minOccurs="0" /&gt;
        &lt;element name="os"
          type="token" minOccurs="0" /&gt;
      &lt;/sequence&gt;
      &lt;sequence&gt;
        &lt;element name="tech"
          type="token" /&gt;
        &lt;element name="os"
          type="token" minOccurs="0" /&gt;
      &lt;/sequence&gt;
      &lt;element name="os"
        type="token" /&gt;
    &lt;/choice&gt;
  &lt;/complexType&gt;
  &lt;!-- Login response extension elements --&gt;
  &lt;element name="loginSecData"
    type="loginSec:loginSecDataType" /&gt;
  &lt;complexType name="loginSecDataType"&gt;
    &lt;sequence&gt;
      &lt;element name="event"
        type="loginSec:eventType"
        minOccurs="1" maxOccurs="unbounded" /&gt;
    &lt;/sequence&gt;
  &lt;/complexType&gt;
  &lt;!-- Security event element --&gt;
  &lt;complexType name="eventType"&gt;
    &lt;simpleContent&gt;
      &lt;extension base="normalizedString"&gt;
        &lt;attribute name="type"
          type="loginSec:typeEnum" use="required" /&gt;
        &lt;attribute name="name"
          type="token" /&gt;
        &lt;attribute name="level"
          type="loginSec:levelEnum" use="required" /&gt;
        &lt;attribute name="exDate"
          type="dateTime" /&gt;
        &lt;attribute name="value"
          type="token" /&gt;
        &lt;attribute name="duration"
          type="duration" /&gt;
        &lt;attribute name="lang"
          type="language" default="en" /&gt;
      &lt;/extension&gt;
    &lt;/simpleContent&gt;
  &lt;/complexType&gt;
  &lt;!--
    Enumerated list of event types, with extensibility via "custom".
    --&gt;
  &lt;simpleType name="typeEnum"&gt;
    &lt;restriction base="token"&gt;
      &lt;enumeration value="password" /&gt;
      &lt;enumeration value="certificate" /&gt;
      &lt;enumeration value="cipher" /&gt;
      &lt;enumeration value="tlsProtocol" /&gt;
      &lt;enumeration value="newPW" /&gt;
      &lt;enumeration value="stat" /&gt;
      &lt;enumeration value="custom" /&gt;
    &lt;/restriction&gt;
  &lt;/simpleType&gt;
  &lt;!--
    Enumerated list of levels.
    --&gt;
  &lt;simpleType name="levelEnum"&gt;
    &lt;restriction base="token"&gt;
      &lt;enumeration value="warning" /&gt;
      &lt;enumeration value="error" /&gt;
    &lt;/restriction&gt;
  &lt;/simpleType&gt;
  &lt;!--
 End of schema.
 --&gt;
&lt;/schema&gt;
</sourcecode>
      </section>
    </section>
    <section anchor="IANA" numbered="true" toc="include" removeInRFC="false" pn="section-6">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <section anchor="IANA-XML-Namespace" numbered="true" toc="include" removeInRFC="false" pn="section-6.1">
        <name slugifiedName="name-xml-namespace">XML Namespace</name>
        <t pn="section-6.1-1">This document uses URNs to describe XML namespaces and XML schemas
	conforming to a registry mechanism described in <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>. The following URI assignment has been made by
	IANA:</t>
        <t pn="section-6.1-2">Registration request for the loginSec namespace:</t>
        <dl newline="false" spacing="compact" pn="section-6.1-3">
          <dt pn="section-6.1-3.1">URI:</dt>
          <dd pn="section-6.1-3.2">urn:ietf:params:xml:ns:epp:loginSec-1.0</dd>
          <dt pn="section-6.1-3.3">Registrant Contact:</dt>
          <dd pn="section-6.1-3.4">IESG</dd>
          <dt pn="section-6.1-3.5">XML:</dt>
          <dd pn="section-6.1-3.6">None. Namespace URIs do not represent an XML specification.</dd>
        </dl>
        <t pn="section-6.1-4">Registration request for the loginSec XML Schema:</t>
        <dl newline="false" spacing="compact" pn="section-6.1-5">
          <dt pn="section-6.1-5.1">URI:</dt>
          <dd pn="section-6.1-5.2">urn:ietf:params:xml:schema:epp:loginSec-1.0</dd>
          <dt pn="section-6.1-5.3">Registrant Contact:</dt>
          <dd pn="section-6.1-5.4">IESG</dd>
          <dt pn="section-6.1-5.5">XML:</dt>
          <dd pn="section-6.1-5.6">See the "Formal Syntax" section of this document.</dd>
        </dl>
      </section>
      <section anchor="EPP-Extension-Registry" numbered="true" toc="include" removeInRFC="false" pn="section-6.2">
        <name slugifiedName="name-epp-extension-registry">EPP Extension Registry</name>
        <t pn="section-6.2-1">The EPP extension described in this document has been registered
	by IANA in the "Extensions for the Extensible Provisioning
	Protocol (EPP)" registry described in <xref target="RFC7451" format="default" sectionFormat="of" derivedContent="RFC7451"/>.  The details of the registration
	are as follows:</t>
        <dl newline="false" spacing="compact" pn="section-6.2-2">
          <dt pn="section-6.2-2.1">Name of Extension:</dt>
          <dd pn="section-6.2-2.2">"Login Security Extension for the Extensible
	Provisioning Protocol (EPP)"</dd>
          <dt pn="section-6.2-2.3">Document status:</dt>
          <dd pn="section-6.2-2.4">Standards Track</dd>
          <dt pn="section-6.2-2.5">Reference:</dt>
          <dd pn="section-6.2-2.6">RFC 8807</dd>
          <dt pn="section-6.2-2.7">Registrant Name and Email Address:</dt>
          <dd pn="section-6.2-2.8">IESG, &lt;iesg@ietf.org&gt;</dd>
          <dt pn="section-6.2-2.9">Top-Level Domains(TLDs):</dt>
          <dd pn="section-6.2-2.10">Any</dd>
          <dt pn="section-6.2-2.11">IPR Disclosure:</dt>
          <dd pn="section-6.2-2.12">None</dd>
          <dt pn="section-6.2-2.13">Status:</dt>
          <dd pn="section-6.2-2.14">Active</dd>
          <dt pn="section-6.2-2.15">Notes:</dt>
          <dd pn="section-6.2-2.16">None</dd>
        </dl>
      </section>
    </section>
    <section anchor="Security" numbered="true" toc="include" removeInRFC="false" pn="section-7">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t pn="section-7-1">The security considerations of <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> apply in this document, and this document enhances
      these considerations.</t>
      <t pn="section-7-2">The extension leaves the password (&lt;pw&gt; element) and new
      password (&lt;newPW&gt; element) minimum length greater than 6
      characters and the maximum length up to server policy.  The server
      <bcp14>SHOULD</bcp14> enforce minimum and maximum length requirements
      that are appropriate for their operating environment.  One example of a
      guideline for password length policies can be found in Section 5 of
      <eref target="https://pages.nist.gov/800-63-3/sp800-63b.html" brackets="none">NIST
      Special Publication 800-63B</eref>.</t>
      <t pn="section-7-3">The client <bcp14>SHOULD NOT</bcp14> decrease
      the security of a new password by decreasing the length of the current
      password.  For example, a client with a 20-character password set using 
      the extension should not use the login command in <xref target="RFC5730" format="default" sectionFormat="of" derivedContent="RFC5730"/> without using the extension to set
      a new password that is less than or equal to 16 characters.</t>
      <t pn="section-7-4">The extension provides an extensible list of login security events to
      inform clients of connection and login warnings and errors. The server
      returning of security events to unauthenticated users needs to take into
      account the security/privacy issues of returning information to
      potential attackers.</t>
      <t pn="section-7-5">The user-agent information represents the client system of a
      system-to-system interface, so the user-agent information <bcp14>MUST NOT</bcp14> provide any ability to track individual users or classes of
      users.</t>
    </section>
  </middle>
  <back>
    <references pn="section-8">
      <name slugifiedName="name-references">References</name>
      <references pn="section-8.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" quoteTitle="true" derivedAnchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author initials="S." surname="Bradner" fullname="S. Bradner">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="1997" month="March"/>
            <abstract>
              <t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC3688" target="https://www.rfc-editor.org/info/rfc3688" quoteTitle="true" derivedAnchor="RFC3688">
          <front>
            <title>The IETF XML Registry</title>
            <author initials="M." surname="Mealling" fullname="M. Mealling">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2004" month="January"/>
            <abstract>
              <t>This document describes an IANA maintained registry for IETF standards which use Extensible Markup Language (XML) related items such as Namespaces, Document Type Declarations (DTDs), Schemas, and Resource Description Framework (RDF) Schemas.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="81"/>
          <seriesInfo name="RFC" value="3688"/>
          <seriesInfo name="DOI" value="10.17487/RFC3688"/>
        </reference>
        <reference anchor="RFC5234" target="https://www.rfc-editor.org/info/rfc5234" quoteTitle="true" derivedAnchor="RFC5234">
          <front>
            <title>Augmented BNF for Syntax Specifications: ABNF</title>
            <author initials="D." surname="Crocker" fullname="D. Crocker" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="P." surname="Overell" fullname="P. Overell">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2008" month="January"/>
            <abstract>
              <t>Internet technical specifications often need to define a formal syntax.  Over the years, a modified version of Backus-Naur Form (BNF), called Augmented BNF (ABNF), has been popular among many Internet specifications.  The current specification documents ABNF. It balances compactness and simplicity with reasonable representational power.  The differences between standard BNF and ABNF involve naming rules, repetition, alternatives, order-independence, and value ranges.  This specification also supplies additional rule definitions and encoding for a core lexical analyzer of the type common to several Internet specifications.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="68"/>
          <seriesInfo name="RFC" value="5234"/>
          <seriesInfo name="DOI" value="10.17487/RFC5234"/>
        </reference>
        <reference anchor="RFC5730" target="https://www.rfc-editor.org/info/rfc5730" quoteTitle="true" derivedAnchor="RFC5730">
          <front>
            <title>Extensible Provisioning Protocol (EPP)</title>
            <author initials="S." surname="Hollenbeck" fullname="S. Hollenbeck">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2009" month="August"/>
            <abstract>
              <t>This document describes an application-layer client-server protocol for the provisioning and management of objects stored in a shared central repository.  Specified in XML, the protocol defines generic object management operations and an extensible framework that maps protocol operations to objects.  This document includes a protocol specification, an object mapping template, and an XML media type registration.  This document obsoletes RFC 4930.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="69"/>
          <seriesInfo name="RFC" value="5730"/>
          <seriesInfo name="DOI" value="10.17487/RFC5730"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" quoteTitle="true" derivedAnchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author initials="B." surname="Leiba" fullname="B. Leiba">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2017" month="May"/>
            <abstract>
              <t>RFC 2119 specifies common key words that may be used in protocol  specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the  defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="W3C.REC-xmlschema-2-20041028" target="http://www.w3.org/TR/2004/REC-xmlschema-2-20041028" quoteTitle="true" derivedAnchor="W3C.REC-xmlschema-2-20041028">
          <front>
            <title>XML Schema Part 2: Datatypes Second Edition</title>
            <seriesInfo name="W3C Recommendation" value="REC-xmlschema-2-20041028"/>
            <author initials="P." surname="Biron" fullname="Paul V. Biron">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Malhotra" fullname="Ashok Malhotra">
              <organization showOnFrontPage="true"/>
            </author>
            <date month="October" year="2004"/>
          </front>
        </reference>
      </references>
      <references pn="section-8.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="RFC7451" target="https://www.rfc-editor.org/info/rfc7451" quoteTitle="true" derivedAnchor="RFC7451">
          <front>
            <title>Extension Registry for the Extensible Provisioning Protocol</title>
            <author initials="S." surname="Hollenbeck" fullname="S. Hollenbeck">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2015" month="February"/>
            <abstract>
              <t>The Extensible Provisioning Protocol (EPP) includes features to add functionality by extending the protocol.  It does not, however, describe how those extensions are managed.  This document describes a procedure for the registration and management of extensions to EPP, and it specifies a format for an IANA registry to record those extensions.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7451"/>
          <seriesInfo name="DOI" value="10.17487/RFC7451"/>
        </reference>
        <reference anchor="RFC8265" target="https://www.rfc-editor.org/info/rfc8265" quoteTitle="true" derivedAnchor="RFC8265">
          <front>
            <title>Preparation, Enforcement, and Comparison of Internationalized Strings Representing Usernames and Passwords</title>
            <author initials="P." surname="Saint-Andre" fullname="P. Saint-Andre">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Melnikov" fullname="A. Melnikov">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2017" month="October"/>
            <abstract>
              <t>This document describes updated methods for handling Unicode strings representing usernames and passwords.  The previous approach was known as SASLprep (RFC 4013) and was based on Stringprep (RFC 3454). The methods specified in this document provide a more sustainable approach to the handling of internationalized usernames and passwords.  This document obsoletes RFC 7613.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8265"/>
          <seriesInfo name="DOI" value="10.17487/RFC8265"/>
        </reference>
      </references>
    </references>
    <section anchor="Acknowledgements" numbered="false" toc="include" removeInRFC="false" pn="section-appendix.a">
      <name slugifiedName="name-acknowledgements">Acknowledgements</name>
      <t pn="section-appendix.a-1">The authors wish to thank the following persons for their feedback
      and suggestions: <contact fullname="Martin Casanova"/>, <contact fullname="Scott Hollenbeck"/>, <contact fullname="Barry Leiba"/>,
      <contact fullname="Patrick Mevzek"/>, and <contact fullname="Joseph       Yee"/>.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.b">
      <name slugifiedName="name-authors-addresses">Authors' Addresses</name>
      <author fullname="James Gould" initials="J." surname="Gould">
        <organization showOnFrontPage="true">VeriSign, Inc.</organization>
        <address>
          <postal>
            <street>12061 Bluemont Way</street>
            <city>Reston</city>
            <region>VA</region>
            <code>20190</code>
            <country>United States of America</country>
          </postal>
          <email>jgould@verisign.com</email>
          <uri>http://www.verisign.com</uri>
        </address>
      </author>
      <author fullname="Matthew Pozun" initials="M." surname="Pozun">
        <organization showOnFrontPage="true">VeriSign, Inc.</organization>
        <address>
          <postal>
            <street>12061 Bluemont Way</street>
            <city>Reston</city>
            <region>VA</region>
            <code>20190</code>
            <country>United States of America</country>
          </postal>
          <email>mpozun@verisign.com</email>
          <uri>http://www.verisign.com</uri>
        </address>
      </author>
    </section>
  </back>
</rfc>
