Rename.
[libidn.git] / draft-ietf-idn-nameprep-11.txt
blobd1331d62069b7e67b0d92295bbeccb3f5df86b18
1 Internet Draft                                          Paul Hoffman
2 draft-ietf-idn-nameprep-11.txt                            IMC & VPNC
3 June 24, 2002                                          Marc Blanchet
4 Expires in six months                                       ViaGenie
6    Nameprep: A Stringprep Profile for Internationalized Domain Names
8 Status of this memo
10 This document is an Internet-Draft and is in full conformance with all
11 provisions of Section 10 of RFC2026.
13 Internet-Drafts are working documents of the Internet Engineering Task
14 Force (IETF), its areas, and its working groups. Note that other groups
15 may also distribute working documents as Internet-Drafts.
17 Internet-Drafts are draft documents valid for a maximum of six months
18 and may be updated, replaced, or obsoleted by other documents at any
19 time. It is inappropriate to use Internet-Drafts as reference material
20 or to cite them other than as "work in progress."
22 To view the list Internet-Draft Shadow Directories, see
23 http://www.ietf.org/shadow.html.
26 Abstract
28 This document describes how to prepare internationalized domain name
29 labels in order to increase the likelihood that name input and name
30 comparison work in ways that make sense for typical users throughout the
31 world. This profile of the stringprep protocol is used as part of a
32 suite of on-the-wire protocols for internationalizing the DNS.
34 1. Introduction
36 This document specifies processing rules that will allow users to enter
37 internationalized domain names in applications and have the highest
38 chance of getting the content of the strings correct. It is a profile of
39 stringprep [STRINGPREP]. These processing rules are only intended for
40 internationalized domain names, not for arbitrary text.
42 This profile defines the following, as required by [STRINGPREP]
44 - The intended applicability of the profile: internationalized
45 domain names processed by IDNA
47 - The character repertoire that is the input and output to stringprep:
48 Unicode 3.2, specified in section 2
50 - The mappings used: specified in section 3
52 - The Unicode normalization used: specified in section 4
54 - The characters that are prohibited as output: specified in section 5
56 - Bidirectional character handling: specified in section 6.
58 1.1 Interaction of protocol parts
60 Nameprep is used by the IDNA [IDNA] protocol for preparing domain names;
61 it is not designed for any other purpose. It is explicitly not designed
62 for processing arbitrary free text and SHOULD NOT be used for that
63 purpose. Nameprep is a profile of Stringprep [STRINGPREP].
64 Implementations of Nameprep MUST fully implement Stringprep.
66 Nameprep is used to process domain name labels, not domain names. IDNA
67 calls nameprep for each label in a domain name, not for the whole domain
68 name.
70 1.2 Terminology
72 The key words "MUST", "MUST NOT", "SHOULD", "SHOULD NOT", and
73 "MAY" in this document are to be interpreted as described in RFC 2119
74 [RFC2119].
77 2. Character Repertoire
79 This profile uses Unicode 3.2, as defined in [STRINGPREP] Appendix
80 A.1.
82 3. Mapping
84 This profile specifies mapping using the following tables from
85 [STRINGPREP]:
86 Table B.1
87 Table B.2
89 4. Normalization
91 This profile specifies using Unicode normalization form KC, as described
92 in [STRINGPREP].
95 5. Prohibited Output
97 This profile specifies prohibiting using the following tables from
98 [STRINGPREP]:
99 Table C.1.2
100 Table C.2.2
101 Table C.3
102 Table C.4
103 Table C.5
104 Table C.6
105 Table C.7
106 Table C.8
107 Table C.9
109 IMPORTANT NOTE: This profile MUST be used with the IDNA protocol. The
110 IDNA protocol has additional prohibitions that are checked outside of
111 this profile.
114 6. Bidirectional characters
116 This profile specifies checking bidirectional strings as described
117 in [STRINGPREP] section 6.
120 7. Unassigned Code Points in Internationalized Domain Names
122 If the processing in [IDNA] specifies that a list of unassigned code
123 points be used, the system uses table A.1 from [STRINGPREP] as its list
124 of unassigned code points.
127 8. References
129 8.1 Normative references
131 [IDNA] Patrik Faltstrom, Paul Hoffman, and Adam M. Costello,
132 "Internationalizing Domain Names in Applications (IDNA)",
133 draft-ietf-idn-idna, work-in-progress.
135 [STRINGPREP] Paul Hoffman and Marc Blanchet, "Preparation of
136 Internationalized Strings ("stringprep")", draft-hoffman-stringprep,
137 work in progress.
139 8.2 Informative references
141 [RFC2119] Scott Bradner, "Key words for use in RFCs to Indicate
142 Requirement Levels", March 1997, RFC 2119.
144 [STD13] Paul Mockapetris, "Domain names - concepts and facilities" (RFC
145 1034) and "Domain names - implementation and specification" (RFC 1035,
146 STD 13, November 1987.
149 9. Security Considerations
151 The Unicode and ISO/IEC 10646 repertoires have many characters that look
152 similar. In many cases, users of security protocols might do visual
153 matching, such as when comparing the names of trusted third parties.
154 Because it is impossible to map similar-looking characters without a
155 great deal of context such as knowing the fonts used,
156 stringprep does nothing to map similar-looking characters together nor
157 to prohibit some characters because they look like others.
159 Security on the Internet partly relies on the DNS. Thus, any change
160 to the characteristics of the DNS can change the security of much of the
161 Internet.
163 Domain names are used by users to connect to Internet servers. The
164 security of the Internet would be compromised if a user entering a
165 single internationalized name could be connected to different servers
166 based on different interpretations of the internationalized domain name.
168 Current applications might assume that the characters allowed in domain
169 names will always be the same as they are in [STD13]. This document
170 vastly increases the number of characters available in domain names.
171 Every program that uses "special" characters in conjunction with domain
172 names may be vulnerable to attack based on the new characters allowed by
173 this specification.
176 10. IANA Considerations
178 This is a profile of stringprep. When it becomes an RFC, it should be
179 registered in the stringprep profile registry.
181 Name of this profile:
182    Nameprep
184 RFC in which the profile is defined:
185    This document
187 Indicator whether or not this is the newest version of the
188 profile:
189    This is the first version of Nameprep.
192 11. Acknowledgements
194 Many people from the IETF IDN Working Group and the Unicode Technical
195 Committee contributed ideas that went into the first draft of this
196 document.
198 The IDN namprep design team made many useful changes to the first
199 draft. That team and its advisors include:
201 Asmus Freytag
202 Cathy Wissink
203 Francois Yergeau
204 James Seng
205 Marc Blanchet
206 Mark Davis
207 Martin Duerst
208 Patrik Faltstrom
209 Paul Hoffman
211 Additional significant improvements were proposed by:
213 Jonathan Rosenne
214 Kent Karlsson
215 Scott Hollenbeck
216 Dave Crocker
217 Erik Nordmark
218 Matitiahu Allouche
222 12. Author Contact Information
224 Paul Hoffman
225 Internet Mail Consortium and VPN Consortium
226 127 Segre Place
227 Santa Cruz, CA  95060 USA
228 paul.hoffman@imc.org and paul.hoffman@vpnc.org
230 Marc Blanchet
231 Viagenie inc.
232 2875 boul. Laurier, bur. 300
233 Ste-Foy, Quebec, Canada, G1V 2M2
234 Marc.Blanchet@viagenie.qc.ca
237 A. Changes from -10 to -11
239 [[ To be removed when published as an RFC ]]
241 Change Unicode 3.1 to Unicode 3.2 in sections 1 and 2.
243 In the list in section 1, add:
244 - Bidirectional character handling: specified in section 6.
246 In the list in section 5, change to Table C.1.2 and Table C.2.2
247 in stringprep to just get the non-ASCII characters.
249 Remove section 5.1 and the paragraph preceding it about the
250 additional prohibitions.
252 Add section 6 and renumber current sections 6 through 11.
254 ----------
256 6. Bidirectional characters
258 This profile specifies checking bidirectional strings as described
259 in [STRINGPREP] section 6.
260 ----------
262 Add to the text of section 9 with:
264 ----------
265 Name of this profile:
266    Nameprep
268 RFC in which the profile is defined:
269    This document
271 Indicator whether or not this is the most current version of the
272 profile:
273    This is the first version of Nameprep.
274 ----------
276 Add Matitiahu Allouche to acknowledgements.