7 INTERNET-DRAFT Kurt D. Zeilenga
8 Intended Category: Standards Track OpenLDAP Foundation
9 Expires: September 2004 12 April 2004
12 SASLprep: Stringprep profile for user names and passwords
13 <draft-ietf-sasl-saslprep-08.txt>
18 This document is an Internet-Draft and is in full conformance with all
19 provisions of Section 10 of RFC 2026.
21 This document is intended to be, after appropriate review and
22 revision, submitted to the RFC Editor as a Standards Track document.
23 Distribution of this memo is unlimited. Technical discussion of this
24 document will take place on the IETF SASL mailing list
25 <ietf-sasl@imc.org>. Please send editorial comments directly to the
26 document editor <Kurt@OpenLDAP.org>.
28 Internet-Drafts are working documents of the Internet Engineering Task
29 Force (IETF), its areas, and its working groups. Note that other
30 groups may also distribute working documents as Internet-Drafts.
31 Internet-Drafts are draft documents valid for a maximum of six months
32 and may be updated, replaced, or obsoleted by other documents at any
33 time. It is inappropriate to use Internet-Drafts as reference
34 material or to cite them other than as ``work in progress.''
36 The list of current Internet-Drafts can be accessed at
37 <http://www.ietf.org/ietf/1id-abstracts.txt>. The list of
38 Internet-Draft Shadow Directories can be accessed at
39 <http://www.ietf.org/shadow.html>.
41 Copyright (C) The Internet Society (2004). All Rights Reserved.
43 Please see the Full Copyright section near the end of this document
49 This document describes how to prepare Unicode strings representing
50 user names and passwords for comparison. The document defines the
51 "SASLprep" profile of the "stringprep" algorithm to be used for both
52 user names and passwords. This profile is intended to be used by
53 Simple Authentication and Security Layer (SASL) mechanisms (such as
54 PLAIN, CRAM-MD5, and DIGEST-MD5) as well as other protocols exchanging
58 Zeilenga SASLprep [Page 1]
60 INTERNET-DRAFT draft-ietf-sasl-saslprep-07.txt 22 March 2004
63 simple user names and/or passwords.
68 The use of simple user names and passwords in authentication and
69 authorization is pervasive on the Internet. To increase the
70 likelihood that user name and password input and comparison work in
71 ways that make sense for typical users throughout the world, this
72 document defines rules for preparing internationalized user names and
73 passwords for comparison. For simplicity and implementation ease, a
74 single algorithm is defined for both user names and passwords.
76 The algorithm assumes all strings are comprised of characters from the
77 Unicode character set.
79 This document defines the "SASLprep" profile of the "stringprep"
80 algorithm [StringPrep].
82 The profile is designed for use in Simple Authentication and Security
83 Layer ([SASL]) mechanisms such as [PLAIN]. It may be applicable
84 elsewhere simple user names and passwords are used. This profile is
85 not intended to be used to prepare identity strings which are not
86 simple user names (e.g., e-mail addresses, domain names, distinguished
87 names), or where identity or password strings which are not character
91 2. The SASLprep profile
93 This section defines the "SASLprep" profile of the "stringprep"
94 algorithm [StringPrep]. This profile is intended to be used to
95 prepare strings representing simple user names and passwords.
97 This profile uses Unicode 3.2 [Unicode].
99 Character names in this document use the notation for code points and
100 names from the Unicode Standard [Unicode]. For example, the letter
101 "a" may be represented as either <U+0061> or <LATIN SMALL LETTER A>.
102 In the lists of mappings and the prohibited characters, the "U+" is
103 left off to make the lists easier to read. The comments for character
104 ranges are shown in square brackets (such as "[CONTROL CHARACTERS]")
105 and do not come from the standard.
107 Note: a glossary of terms used in Unicode can be found in [Glossary].
108 Information on the Unicode character encoding model can be found in
114 Zeilenga SASLprep [Page 2]
116 INTERNET-DRAFT draft-ietf-sasl-saslprep-07.txt 22 March 2004
121 This profile specifies:
122 - non-ASCII space characters [StringPrep, C.1.2] be mapped to SPACE
125 - the "commonly mapped to nothing" characters [StringPrep, B.1] be
132 This profile specifies using Unicode normalization form KC, as
133 described in Section 4 of [StringPrep].
136 2.3. Prohibited Output
138 This profile specifies the following characters:
140 - Non-ASCII space characters [StringPrep, C.1.2],
141 - ASCII control characters [StringPrep, C.2.1],
142 - Non-ASCII control characters [StringPrep, C.2.2],
143 - Private Use [StringPrep, C.3],
144 - Non-character code points [StringPrep, C.4],
145 - Surrogate code points [StringPrep, C.5],
146 - Inappropriate for plain text [StringPrep, C.6],
147 - Inappropriate for canonical representation [StringPrep, C.7],
148 - Change display properties or are deprecated [StringPrep, C.8], and
149 - Tagging characters [StringPrep, C.9].
151 are prohibited output.
154 2.4. Bidirectional characters
156 This profile specifies checking bidirectional strings as described in
157 [StringPrep, Section 6].
160 2.5. Unassigned Code Points
162 This profile specifies [StringPrep, A.1] table as its list of
163 unassigned code points.
166 3. Security Considerations
170 Zeilenga SASLprep [Page 3]
172 INTERNET-DRAFT draft-ietf-sasl-saslprep-07.txt 22 March 2004
175 This profile is intended to used to prepare simple user names and
176 passwords strings for comparison or use in cryptographic functions
177 (e.g., message digests). The preparation algorithm is specifically
178 designed such that its output is canonical.
180 It is not intended to be used for to prepare identity strings which
181 are not simple user names (e.g., distinguished names and domain
182 names). Nor is the profile intended to be used for simple user names
183 which require different handling. Protocols (or applications of those
184 protocols) which have application-specific identity forms and/or
185 comparison algorithms should use mechanisms specifically designed for
186 these forms and algorithms.
188 Application of string preparation may have an impact upon the
189 feasibility of brute force and dictionary attacks. While the number
190 of possible prepared strings is less than the number of possible
191 Unicode strings, the number of usable names and passwords is greater
192 than if only ASCII was used. Though SASLprep eliminates some of
193 Unicode code point sequences as possible prepared strings, that
194 elimination generally makes the (canonical) output forms practicable
195 and prohibits nonsensical inputs.
197 User names and passwords should be protected from eavesdropping.
199 General "stringprep" and Unicode security considerations apply. Both
200 are discussed in [StringPrep].
203 4. IANA Considerations
205 This document details the "SASLprep" profile of [StringPrep] protocol.
206 Upon Standards Action the profile should be registered in the
207 stringprep profile registry.
209 Name of this profile: SASLprep
210 RFC in which the profile is defined: This RFC
211 Indicator whether or not this is the newest version of the
212 profile: This is the first version of the SASPprep profile.
217 This document borrows text from "Preparation of Internationalized
218 Strings ('stringprep')" and "Nameprep: A Stringprep Profile for
219 Internationalized Domain Names", both by Paul Hoffman and Marc
222 This document is a product of the IETF SASL WG.
226 Zeilenga SASLprep [Page 4]
228 INTERNET-DRAFT draft-ietf-sasl-saslprep-07.txt 22 March 2004
231 6. Normative References
233 [StringPrep] Hoffman, P. and M. Blanchet, "Preparation of
234 Internationalized Strings ('stringprep')", RFC 3454,
237 [Unicode] The Unicode Consortium, "The Unicode Standard, Version
238 3.2.0" is defined by "The Unicode Standard, Version 3.0"
239 (Reading, MA, Addison-Wesley, 2000. ISBN 0-201-61633-5),
240 as amended by the "Unicode Standard Annex #27: Unicode
241 3.1" (http://www.unicode.org/reports/tr27/) and by the
242 "Unicode Standard Annex #28: Unicode 3.2"
243 (http://www.unicode.org/reports/tr28/).
246 7. Informative References
248 [Glossary] The Unicode Consortium, "Unicode Glossary",
249 <http://www.unicode.org/glossary/>.
251 [CharModel] Whistler, K. and M. Davis, "Unicode Technical Report
252 #17, Character Encoding Model", UTR17,
253 <http://www.unicode.org/unicode/reports/tr17/>, August
256 [SASL] Melnikov, A. (Editor), "Simple Authentication and
257 Security Layer (SASL)",
258 draft-ietf-sasl-rfc2222bis-xx.txt, a work in progress.
260 [CRAM-MD5] Nerenberg, L., "The CRAM-MD5 SASL Mechanism",
261 draft-ietf-sasl-crammd5-xx.txt, a work in progress.
263 [DIGEST-MD5] Leach, P., C. Newman, and A. Melnikov, "Using Digest
264 Authentication as a SASL Mechanism",
265 draft-ietf-sasl-rfc2831bis-xx.txt, a work in progress.
267 [PLAIN] Zeilenga, K. (Editor), "The Plain SASL Mechanism",
268 draft-ietf-sasl-plain-xx.txt, a work in progress.
276 Email: Kurt@OpenLDAP.org
282 Zeilenga SASLprep [Page 5]
284 INTERNET-DRAFT draft-ietf-sasl-saslprep-07.txt 22 March 2004
287 Intellectual Property Rights
289 The IETF takes no position regarding the validity or scope of any
290 Intellectual Property Rights or other rights that might be claimed to
291 pertain to the implementation or use of the technology described in
292 this document or the extent to which any license under such rights
293 might or might not be available; nor does it represent that it has
294 made any independent effort to identify any such rights. Information
295 on the procedures with respect to rights in RFC documents can be found
296 in BCP 78 and BCP 79.
298 Copies of IPR disclosures made to the IETF Secretariat and any
299 assurances of licenses to be made available, or the result of an
300 attempt made to obtain a general license or permission for the use of
301 such proprietary rights by implementers or users of this specification
302 can be obtained from the IETF on-line IPR repository at
303 http://www.ietf.org/ipr.
305 The IETF invites any interested party to bring to its attention any
306 copyrights, patents or patent applications, or other proprietary
307 rights that may cover technology that may be required to implement
308 this standard. Please address the information to the IETF at ietf-
314 Copyright (C) The Internet Society (2004). This document is subject
315 to the rights, licenses and restrictions contained in BCP 78 and
316 except as set forth therein, the authors retain all their rights.
318 This document and the information contained herein are provided on an
319 "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
320 OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
321 ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
322 INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
323 INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
324 WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
338 Zeilenga SASLprep [Page 6]