1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389
|
<pre>Network Working Group S. Josefsson
Request for Comments: 5021 SJD
Updates: <a href="./rfc4120">4120</a> August 2007
Category: Standards Track
<span class="h1">Extended Kerberos Version 5 Key Distribution Center (KDC)</span>
<span class="h1">Exchanges over TCP</span>
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The IETF Trust (2007).
Abstract
This document describes an extensibility mechanism for the Kerberos
V5 protocol when used over TCP transports. The mechanism uses the
reserved high-bit in the length field. It can be used to negotiate
TCP-specific Kerberos extensions.
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2">2</a>. Conventions Used in This Document . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-3">3</a>. Extension Mechanism for TCP Transport . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-4">4</a>. Interoperability Consideration . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-5">5</a>. Security Considerations . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-6">6</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-7">7</a>. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-8">8</a>. Normative References . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#appendix-A">Appendix A</a>. Copying Conditions . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<span class="grey">Josefsson Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc5021">RFC 5021</a> Kerberos V5 TCP Extension August 2007</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The Kerberos V5 [<a href="#ref-3" title=""The Kerberos Network Authentication Service (V5)"">3</a>] specification, in <a href="#section-7.2.2">section 7.2.2</a>, reserves the
high order bit in the initial length field for TCP transport for
future expansion. This document updates [<a href="#ref-3" title=""The Kerberos Network Authentication Service (V5)"">3</a>] to describe the
behaviour when that bit is set. This mechanism is intended for
extensions that are specific for the TCP transport.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions Used in This Document</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="#ref-1" title=""Key words for use in RFCs to Indicate Requirement Levels"">1</a>].
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Extension Mechanism for TCP Transport</span>
The reserved high bit of the request length field is used to signal
the use of this extension mechanism. When the reserved high bit is
set in the length field, the remaining 31 bits of the initial 4
octets are interpreted as a bitmap. Each bit in the bitmask can be
used to request a particular extension. The 31 bits form the
"extension bitmask". It is expected that other documents will
describe the details associated with particular bits.
A 4-octet value with only the high bit set, and thus the extension
bitmask all zeros, is called a PROBE. A client may send a probe to
find out which extensions a KDC supports. A client may also set
particular bits in the extension bitmask directly, if it does not
need to query the KDC for available extensions before deciding which
extension to request.
Note that clients are not forced to use this extension mechanism, and
further, clients are expected to only use it when they wish to
negotiate a particular extension.
The protocol is as follows. The client MUST begin by sending a
4-octet value with the high bit set. The packet is thus either a
PROBE or a specific request for some extension(s). The client MUST
NOT send additional data before the server has responded.
If a KDC receives a request for a set of extensions that it supports,
it MUST respond by sending a 4-octet zero value, i.e., 0x00000000.
The KDC MAY directly send additional data after the zero value,
without waiting for the client to respond, as specified by the
particular negotiated extension. (Note: A 4-octet zero value can
never be sent by an implementation that conforms to <a href="./rfc4120">RFC 4120</a> and that
does not support this extension mechanism, because a KRB-ERROR is
always of non-zero size.)
<span class="grey">Josefsson Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc5021">RFC 5021</a> Kerberos V5 TCP Extension August 2007</span>
If a KDC receives a PROBE, or if a KDC does not support all
extensions corresponding to set bits in the extension bitmask, the
KDC MUST return 4 octets with the high bit set, and with the
remaining bitmask indicating which extensions it supports. The KDC
then MUST wait, and the client MUST send a second 4-octet value with
the high bit set. If the second 4-octet value is a PROBE or an
unsupported extension, the KDC MUST close the connection. This can
be used by the client to shut down a session when the KDC did not
support an extension that is required by the client. If the second
4-octet value is a supported extension, the KDC MUST respond by
sending a 4-octet zero value, i.e., 0x00000000. The KDC MAY directly
send additional data after the zero value, as specified by the
particular negotiated extension.
The client and KDC SHOULD wait for the other side to respond
according to this protocol, and the client and KDC SHOULD NOT close
the connection prematurely. Resource availability considerations may
influence whether, and for how long, the client and KDC will wait for
the other side to respond to a request.
The KDC MUST NOT support the extension mechanism if it does not
support any extensions. If no extensions are supported, the KDC MUST
return a KRB-ERROR message with the error KRB_ERR_FIELD_TOOLONG and
MUST close the TCP stream, similar to what an implementation that
does not understand this extension mechanism would do.
The behaviour when more than one non-high bit is set depends on the
particular extension mechanisms. If a requested extension (bit X)
does not specify how it interacts with another requested extension
(bit Y), the KDC MUST treat the request as a PROBE or unsupported
extension, and proceed as above.
Each extension MUST describe the structure of protocol data beyond
the length field, and the behaviour of the client and KDC. In
particular, the structure may be a protocol with its own message
framing. If an extension mechanism reserves multiple bits, it MUST
describe how they interact.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Interoperability Consideration</span>
Implementations with support for TCP that do not claim to conform to
<a href="./rfc4120">RFC 4120</a> may not handle the high bit correctly. The KDC behaviour
may include closing the TCP connection without any response, and
logging an error message in the KDC log. When this was written, this
problem existed in modern versions of popular KDC implementations.
Implementations experiencing trouble getting the expected responses
from a KDC might assume that the KDC does not support this extension
mechanism. A client might remember this semi-permanently, to avoid
<span class="grey">Josefsson Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc5021">RFC 5021</a> Kerberos V5 TCP Extension August 2007</span>
triggering the same problematic behaviour on the KDC every time.
Care should be taken to avoid unexpected behaviour for the user when
the KDC is eventually upgraded. Implementations might also provide a
way to enable and disable this extension on a per-realm basis. How
to handle these backwards compatibility quirks are in general left
unspecified.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Security Considerations</span>
Because the initial length field is not protected, it is possible for
an active attacker (i.e., one that is able to modify traffic between
the client and the KDC) to make it appear to the client that the
server does not support this extension mechanism (a downgrade
attack). Further, active attackers can also interfere with the
negotiation of which extensions are supported, which may also result
in a downgrade attack. This problem can be solved by having a policy
in the clients and in the KDC to reject connections that do not have
the desired properties. The problem can also be mitigated by having
the negotiated extension send a cryptographic checksum of the offered
extensions.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. IANA Considerations</span>
IANA has created a new registry for "Kerberos TCP Extensions". The
initial contents of this registry are:
Bit # Reference
----- ---------
0..29 AVAILABLE for registration.
30 RESERVED. <a href="./rfc5021">RFC 5021</a>
IANA will register values 0 to 29 after IESG Approval, as defined in
<a href="https://www.rfc-editor.org/bcp/bcp64">BCP 64</a> [<a href="#ref-2" title="">2</a>]. Assigning value 30 requires a Standards Action that
updates or obsoletes this document.
Registration policy: The IESG will act as a steward for the
namespace, considering whether the registration is justified given
the limited size of the namespace. The IESG will also confirm that
proposed registrations are not harmful to the Internet.
<span class="grey">Josefsson Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc5021">RFC 5021</a> Kerberos V5 TCP Extension August 2007</span>
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Acknowledgements</span>
Nicolas Williams, Jeffrey Hutzelman, Sam Hartman, and Chris Newman
provided comments that improved the protocol and document.
Thanks to Andrew Bartlett who pointed out that some implementations
(MIT Kerberos and Heimdal) did not follow <a href="./rfc4120">RFC 4120</a> properly with
regards to the high bit, which resulted in an Interoperability
Consideration.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Normative References</span>
[<a id="ref-1">1</a>] Bradner, S., "Key words for use in RFCs to Indicate Requirement
Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-2">2</a>] Narten, T. and H. Alvestrand, "Guidelines for Writing an IANA
Considerations Section in RFCs", <a href="https://www.rfc-editor.org/bcp/bcp26">BCP 26</a>, <a href="./rfc2434">RFC 2434</a>, October 1998.
[<a id="ref-3">3</a>] Neuman, C., Yu, T., Hartman, S., and K. Raeburn, "The Kerberos
Network Authentication Service (V5)", <a href="./rfc4120">RFC 4120</a>, July 2005.
<span class="grey">Josefsson Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc5021">RFC 5021</a> Kerberos V5 TCP Extension August 2007</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. Copying Conditions</span>
Regarding this entire document or any portion of it, the author makes
no guarantees and is not responsible for any damage resulting from
its use. The author grants irrevocable permission to anyone to use,
modify, and distribute it in any way that does not diminish the
rights of anyone else to use, modify, and distribute it, provided
that redistributed derivative works do not contain misleading author
or version information. Derivative works need not be licensed under
similar terms.
Author's Address
Simon Josefsson
SJD
EMail: simon@josefsson.org
<span class="grey">Josefsson Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc5021">RFC 5021</a> Kerberos V5 TCP Extension August 2007</span>
Full Copyright Statement
Copyright (C) The IETF Trust (2007).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Josefsson Standards Track [Page 7]
</pre>
|