7 INTERNET-DRAFT Editor: Kurt D. Zeilenga
8 Intended Category: Standards Track OpenLDAP Foundation
9 Expires in six months 4 November 2002
15 <draft-zeilenga-sasl-plain-01.txt>
20 This document is an Internet-Draft and is in full conformance with all
21 provisions of Section 10 of RFC2026.
23 This document is intended to be, after appropriate review and
24 revision, submitted to the RFC Editor as a Standards Track document.
25 Distribution of this memo is unlimited. Technical discussion of this
26 document will take place on the IETF SASL mailing list
27 <ietf-sasl@imc.org>. Please send editorial comments directly to the
28 document editor <Kurt@OpenLDAP.org>.
30 Internet-Drafts are working documents of the Internet Engineering Task
31 Force (IETF), its areas, and its working groups. Note that other
32 groups may also distribute working documents as Internet-Drafts.
33 Internet-Drafts are draft documents valid for a maximum of six months
34 and may be updated, replaced, or obsoleted by other documents at any
35 time. It is inappropriate to use Internet-Drafts as reference
36 material or to cite them other than as ``work in progress.''
38 The list of current Internet-Drafts can be accessed at
39 <http://www.ietf.org/ietf/1id-abstracts.txt>. The list of
40 Internet-Draft Shadow Directories can be accessed at
41 <http://www.ietf.org/shadow.html>.
43 Copyright 2002, The Internet Society. All Rights Reserved.
45 Please see the Copyright section near the end of this document for
51 This document defines a simple clear-text user/password Simple
52 Authentication and Security Layer (SASL) mechanism called the PLAIN
53 mechanism. The PLAIN mechanism intended to be used, in combination
54 with data confidentiality services provided by a lower layer, in
58 Zeilenga Plain SASL Mechanism [Page 1]
60 INTERNET-DRAFT draft-zeilenga-sasl-plain-01.txt 4 November 2002
63 protocols which lack a simple password authentication command.
68 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
69 "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
70 document are to be interpreted as described in [KEYWORDS].
73 1. Background and Intended Usage
75 Clear-text passwords are simple, interoperate with almost all existing
76 operating system authentication databases, and are useful for a smooth
77 transition to a more secure password-based authentication mechanism.
78 The drawback is that they are unacceptable for use over an unencrypted
81 This document defines the PLAIN Simple Authentication and Security
82 Layer ([SASL]) mechanism for use in protocols with no clear-text login
85 The name associated with this mechanism is "PLAIN".
87 The PLAIN SASL mechanism does not provide a security layer. This
88 mechanism MUST NOT be used without adequate security protection as the
89 mechanism affords no integrity nor confidentiality protection itself.
90 The PLAIN SASL mechanism MUST NOT be advertised unless a strong
91 encryption layer, such as provided by Transport Layer Security
94 This document updates RFC 2595, replacing Section 6. Changes since
95 RFC 2595 are detailed in Appendix A.
98 2. PLAIN SASL mechanism
100 The mechanism consists of a single message from the client to the
101 server. The client sends the authorization identity (identity to
102 login as), followed by a NUL character, followed by the authentication
103 identity (identity whose password will be used), followed by a NUL
104 character, followed by the clear-text password. The client may leave
105 the authorization identity empty if wishes the server to derive the
106 authorization identity from the provided the authentication identity.
108 The authorization identity (authzid), authentication identity
109 (authcid) and password (passwd) SHALL be transferred as [UTF-8]
110 encoded strings of printable [Unicode] characters in Unicode
114 Zeilenga Plain SASL Mechanism [Page 2]
116 INTERNET-DRAFT draft-zeilenga-sasl-plain-01.txt 4 November 2002
119 Normalisation Form KC [NFKC] delimitated by the NUL (U+0000)
122 The following characters are considered non-printable:
123 - control characters: U+0000..U+001F, U+007F..U+009F;
124 - replacement character: U+FFFD; and
125 - special characters and noncharacter: U+FEFF, U+FFFE, U+FFFF.
127 The server will verify the authentication identity (authcid) and
128 password (passwd) with the system authentication database and verify
129 that the authentication credentials permit the client to login as the
130 authorization identity (authzid). If both steps succeed, the user is
133 The server MAY also use the password to initialize any new
134 authentication database, such as one suitable for [CRAM-MD5] or
137 The formal grammar for the client message using Augmented BNF [ABNF]
140 message = [authzid] NUL authcid NUL passwd
141 authcid = 1*SAFE ; MUST accept up to 255 octets
142 authzid = 1*SAFE ; MUST accept up to 255 octets
143 passwd = 1*SAFE ; MUST accept up to 255 octets
146 SAFE = UTF1 / UTF2 / UTF3 / UTF4 / UTF5 / UTF6 / UTF7
147 ;; any UTF-8 encoded Unicode printable character
150 UTF2 = %xC0-DF 1(UTF0)
151 UTF3 = %xE0-EF 2(UTF0)
152 UTF4 = %xF0-F7 3(UTF0)
153 UTF5 = %xF8-FB 4(UTF0)
154 UTF6 = %xFC-FD 5(UTF0)
161 Here is an example of how this might be used to initialize a CRAM-MD5
162 authentication database for ACAP. "C:" and "S:" indicate lines sent
163 by the client and server respectively.
165 S: * ACAP (SASL "CRAM-MD5") (STARTTLS)
166 C: a001 AUTHENTICATE "CRAM-MD5"
170 Zeilenga Plain SASL Mechanism [Page 3]
172 INTERNET-DRAFT draft-zeilenga-sasl-plain-01.txt 4 November 2002
175 S: + "<1896.697170952@postoffice.reston.mci.net>"
176 C: "tim b913a602c7eda7a495b4e6e7334d3890"
177 S: a001 NO (TRANSITION-NEEDED)
178 "Please change your password, or use TLS to login"
180 S: a002 OK "Begin TLS negotiation now"
181 <TLS negotiation, further commands are under TLS layer>
182 S: * ACAP (SASL "CRAM-MD5" "PLAIN" "EXTERNAL")
183 C: a003 AUTHENTICATE "PLAIN" {21+}
184 C: <NUL>tim<NUL>tanstaaftanstaaf
185 S: a003 OK CRAM-MD5 password initialized
187 In this example, <NUL> represents a single NUL (U+0000) character.
190 5. Security Considerations
192 The PLAIN mechanism relies on the TLS encryption layer for security.
193 When used without TLS, it is vulnerable to a common network
194 eavesdropping attack. Therefore PLAIN MUST NOT be advertised or used
195 unless a suitable TLS encryption layer is active or backwards
196 compatibility dictates otherwise.
198 When the PLAIN mechanism is used, the server gains the ability to
199 impersonate the user to all services with the same password regardless
200 of any encryption provided by TLS or other network privacy mechanisms.
201 While many other authentication mechanisms have similar weaknesses,
202 stronger SASL mechanisms such as the Kerberos-based GSSAPI mechanism
203 address this issue. Clients are encouraged to have an operational
204 mode where all mechanisms which are likely to reveal the user's
205 password to the server are disabled.
207 Clients are encouraged to have an operational mode where all
208 mechanisms which are likely to reveal the user's password to the
209 server are disabled. It is RECOMMENDED that this mode be the default.
211 General SASL security considerations apply to this mechanism.
214 6. IANA Considerations
216 It is requested that the SASL Mechanism registry [IANA-SASL] entry for
217 the PLAIN mechanism be updated to reflect that this document now
218 provides its technical specification.
221 Subject: Updated Registration of SASL mechanism PLAIN
226 Zeilenga Plain SASL Mechanism [Page 4]
228 INTERNET-DRAFT draft-zeilenga-sasl-plain-01.txt 4 November 2002
231 SASL mechanism name: PLAIN
232 Security considerations: See RFC XXXX.
233 Published specification (optional, recommended): RFC XXXX
234 Person & email address to contact for further information:
235 Kurt Zeilenga <kurt@openldap.org>
236 Chris Neuman <chris.newman@innosoft.com>
237 Intended usage: COMMON
238 Author/Change controller: IESG <iesg@ietf.org>
239 Note: Updates existing entry for PLAIN
244 This document is a revision of RFC 2595 by Chris Newman.
247 8. Normative References
249 [ABNF] Crocker, D. and P. Overell, "Augmented BNF for Syntax
250 Specifications: ABNF", RFC 2234, November 1997.
252 [KEYWORDS] S. Bradner, "Key words for use in RFCs to Indicate
253 Requirement Levels", BCP 14 (also RFC 2119), March 1997.
255 [NFKC] Davis, M., M. Durst, "Unicode Standard Annex #15: Unicode
256 Normalisation Forms", An integral part of The Unicode
257 Standard, Version 3.2.0
258 (http://www.unicode.org/reports/tr15/tr15-22.html).
260 [SASL] Myers, J., "Simple Authentication and Security Layer
261 (SASL)", RFC 2222bis (a work in progress).
263 [UNICODE] The Unicode Consortium, "The Unicode Standard, Version
264 3.2.0", defined by: The Unicode Standard, Version 3.0
265 (Reading, MA, Addison-Wesley, 2000. ISBN 0-201-61633-5),
266 as amended by the Unicode Standard Annex #28: Unicode 3.2
267 (http://www.unicode.org/reports/tr28/tr28-3.html).
269 [UTF-8] Yergeau, F., "UTF-8, a transformation format of ISO
270 10646", RFC 2279, January 1998.
272 [TLS] T. Dierks, C. Allen, "The TLS Protocol Version 1.0", RFC
276 9. Informative References
278 [CRAM-MD5] J. Klensin, R. Catoe, and P. Krumviede, "IMAP/POP
282 Zeilenga Plain SASL Mechanism [Page 5]
284 INTERNET-DRAFT draft-zeilenga-sasl-plain-01.txt 4 November 2002
287 AUTHorize Extension for Simple Challenge/Response", RFC
288 2195, September 1997.
290 [DIGEST-MD5] P. Leach, C. Newman, "Using Digest Authentication as a
291 SASL Mechanism", RFC 2831, May 2000.
293 [IANA-SASL] IANA, "SIMPLE AUTHENTICATION AND SECURITY LAYER (SASL)
294 MECHANISMS", http://www.iana.org/assignments/sasl-
303 Email: kurt@OpenLDAP.org
306 Appendix A. Changes since RFC 2595
308 This appendix is non-normative.
310 This document replaces Section 6 of RFC 2595.
312 The specification clarifies the normalized form to be used and details
313 which characters are considered to be printable. The ABNF grammar was
316 Additionally, a number of editorial changes were made.
319 Full Copyright Statement
321 Copyright 2002, The Internet Society. All Rights Reserved.
323 This document and translations of it may be copied and furnished to
324 others, and derivative works that comment on or otherwise explain it
325 or assist in its implementation may be prepared, copied, published and
326 distributed, in whole or in part, without restriction of any kind,
327 provided that the above copyright notice and this paragraph are
328 included on all such copies and derivative works. However, this
329 document itself may not be modified in any way, such as by removing
330 the copyright notice or references to the Internet Society or other
331 Internet organizations, except as needed for the purpose of
332 developing Internet standards in which case the procedures for
333 copyrights defined in the Internet Standards process must be followed,
334 or as required to translate it into languages other than English.
338 Zeilenga Plain SASL Mechanism [Page 6]
340 INTERNET-DRAFT draft-zeilenga-sasl-plain-01.txt 4 November 2002
343 The limited permissions granted above are perpetual and will not be
344 revoked by the Internet Society or its successors or assigns.
346 This document and the information contained herein is provided on an
347 "AS IS" basis and THE AUTHORS, THE INTERNET SOCIETY, AND THE INTERNET
348 ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
349 INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
350 INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
351 WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
394 Zeilenga Plain SASL Mechanism [Page 7]