.\"
.\" $Id: auth.nr,v 1.3 1992/06/26 22:59:17 stevea Exp stevea $
.\"
.so rfc.macro
.ds TL Telnet Authentication Option
.ds SB Internet Engineering Task Force
.ds WG Telnet Working Group
.ds RN DRAFT
.ds ED D. Borman
.ds CE Cray Research, Inc.
.HD
Status of this Memo
.IN +0.3i
.nh
.ST
.\".hy
.sp
.LT "1.  Command Names and Codes" 0.3i
.sp
.LR 1.8i AUTHENTICATION 37
.in +0.4i
.LR 1.8i IS 0
.LR 1.8i SEND 1
.LR 1.8i REPLY 2
.LR 1.8i NAME 3
.sp
.LR 1.8i "Authentication Types" ""
.LR 1.8i NULL 0
.LR 1.8i KERBEROS_V4 1
.LR 1.8i KERBEROS_V5 2
.LR 1.8i SPX 3
.LR 1.8i RSA 6
.LR 1.8i LOKI 10
.sp
.LR 1.8i "Modifiers" ""
.LR 2.2i AUTH_WHO_MASK 1
.LR 2.6i AUTH_CLIENT_TO_SERVER 0
.LR 2.6i AUTH_SERVER_TO_CLIENT 1
.sp
.LR 2.2i AUTH_HOW_MASK 2
.LR 2.6i AUTH_HOW_ONE_WAY 0
.LR 2.6i AUTH_HOW_MUTUAL 2
.IN -0.4i
.LT "2.  Command Meanings" 0.3i
.sp
This document makes reference to a "server" and a "client".
For the purposes of this document, the "server" is the side of
the connection that did the passive TCP open (TCP LISTEN state),
and the "client"
is the side of the connection that did the active open.
.sp
IAC WILL AUTHENTICATION
.IN +0.3i
The client side of the connection sends this command to indicate
that it is willing to send and receive authentication information.
.IN -0.3i
IAC DO AUTHENTICATION
.IN +0.3i
The servers side of the connection sends this command to indicate
that it is willing to send and receive
authentication information.
.IN -0.3i
IAC WONT AUTHENTICATION
.IN +0.3i
The client side of the connection sends this command to indicate
that it refuses to send or receive authentication information;
the server side sends this command if it receives a DO AUTHENTICATION
command.
.IN -0.3i
IAC DONT AUTHENTICATION
.IN +0.3i
The server side of the connection sends this command to indicate
that it refuses to send or receive authentication information;
the client side sends this command if it receives a WILL AUTHENTICATION
command.
.IN -0.3i
IAC SB AUTHENTICATION SEND authentication-type-pair-list IAC SE
.IN +0.3i
The sender of this command (the server) requests that the remote side
send authentication information for one of the authentication
types listed in "authentication-type-pair-list".  The "authentication-type-pair-list"
is an ordered list of "authentication-type" pairs.
Only the server side (DO AUTHENTICATION) is allowed to send this.
.IN -0.3i
IAC SB AUTHENTICATION IS authentication-type-pair <auth data> IAC SE
.IN +0.3i
The sender of this command (the client) is sending the authentication
information for authentication type "authentication-type-pair".
Only the client side (WILL AUTHENTICATION) is allowed to send this.
.IN -0.3i
IAC SB AUTHENTICATION REPLY authentication-type-pair <auth data> IAC SE
.IN +0.3i
The sender of this command (the server) is sending a reply to the
the authentication information received in a previous
IS command.
Only the server side (DO AUTHENTICATION) is allowed to send this.
.IN -0.3i
IAC SB AUTHENTICATION NAME remote-user IAC SE
.IN +0.3i
This optional command is sent to specify the
account name on the remote host that the user wishes
to be authorized to use.
Note that authentication may succeed, and the authorization
to use a particular account may still fail.
Some authentication mechanisms may ignore this command.
.IN -0.3i
.sp
The "authentication-type-pair" is two octets, the first is the
authentication type, and the second is a modifier to the type.
There are currently two one bit fields defined in the modifier,
the AUTH_WHO_MASK bit and the AUTH_HOW_MASK bit, so there are
four possible combinations:
.IN +.3i
AUTH_CLIENT_TO_SERVER
.br
AUTH_HOW_ONE_WAY
.br
.IN +.3i
The client will send authentication information
about the local user to the server.
If the negotiation is successful, the
server will have authenticated the user
on the client side of the connection.
.IN -.3i
AUTH_SERVER_TO_CLIENT
.br
AUTH_HOW_ONE_WAY
.br
.IN +.3i
The server will authenticate itself to the client.
If the negotiation is successful, the
client will know that it is connected
to the server that it wants to be connected to.
.IN -.3i
AUTH_CLIENT_TO_SERVER
.br
AUTH_HOW_MUTUAL
.br
.IN +.3i
The client will send authentication information
about the local user to
the server, and then
the server will authenticate itself
to the client.
If the negotiation is successful, the
server will have authenticated the user
on the client side of the connection,
and the client will know that it is connected
to the server that it wants to be connected to.
.IN -.3i
AUTH_SERVER_TO_CLIENT
.br
AUTH_HOW_MUTUAL
.br
.IN +.3i
The server will authenticate itself
to the client, and then
the client will authenticate itself
to the server.
If the negotiation is successful, the
client will know that it is connected
to the server that it wants to be connected to,
and the server will know that the client
is who it claims to be.
.IN -.6i
.LT "3.  Default Specification" 0.3i
.sp
The default specification for this option is
.IN +0.3i
WONT AUTHENTICATION
.br
DONT AUTHENTICATION
.IN -.3i
meaning there will not be any exchange of authentication
information.
.sp
.LT "4.  Motivation" 0.3i
.sp
One of the deficiences of the Telnet protocol is that
in order to log into remote systems, users have to
type their passwords, which are passed
in clear text through the network.
If the connections goes through untrusted networks,
there is the possibility that passwords will be
compromised by someone watching the packets as they go by.
.sp
The purpose of the AUTHENTICATION option is to provide
a framework for the passing of authentication
information through the TELNET session.
This means that: 1) the users password will not be
sent in clear text across the network, and 2) if the
front end telnet process has the appropriate authentication
information, it can automatically send the information,
and the user will not have to type any password.
.sp
It is intended that the AUTHENTICATION option be
general enough that it can be used to pass information
for any authentication system.
.sp
.LT "5.  Security Implications" 0.3i
.sp
The ability to negotiate a common authentication mechanism between
client and server is a feature of the authentication option that
should be used with caution. When the negotiation is performed, no
authentication has yet occurred. Therefore each system has no way of
knowing whether or not it is talking to the system it intends. An
intruder could attempt to negotiate the use of an authentication
system which is either weak, or already compromised by the intruder.
.sp
.LT "6.  Implementation Rules" 0.3i
.sp
WILL and DO are used only at the beginning of the connection
to obtain and grant permission for future negotiations.
.sp
The authentication is only negotiated in one directions;
the server must send the "DO", and the client must
send the "WILL".
This restriction is due to the nature of authentication; there are three
possible cases; server authenticates client, client authenticates
server, and server and client authenticate each other.
By only negotiating the option in one direction, and then
determining which of the three cases is being used via
the suboption, potential ambiguity is removed.
If the server receives a "DO", it must respond with a "WONT".
If the client receives a "WILL", it must respond with a "DONT".
.sp
Once the two hosts have exchanged a DO and a WILL, the server
is free to request authentication information.
In the request, a list of supported authentication
types is sent.
Only the server may send
requests ("IAC SB AUTHENTICATION SEND authentication-type-pair-list IAC SE").
Only
the client may transmit authentication information via the "IAC
SB AUTHENTICATION IS authentication-type ... IAC SE" command.
Only the server may send
replys ("IAC SB AUTHENTICATION REPLY authentication-type ... IAC SE").
As many IS and REPLY suboptions may be exchanged as are needed
for the particular authentication scheme chosen.
.sp
If the client does not support any of the authentication types
listed in the authentication-type-pair-list,
a type of NULL should be used to indicate this in the IS reply.
Note that in this case, the server may choose to close the
connection.
.sp
The order of the authentication types MUST be ordered to indicate a
preference for different authentication types, the first type being
the most preferred, and the last type the least preferred.
.sp
The following is an example of use of the option:
.sp
.EB
.ET Client Server
.ER
IAC DO AUTHENTICATION
.EL
IAC WILL AUTHENTICATION
.BC
The server is now free to request authentication information.
.EC
.ER
IAC SB AUTHENTICATION SEND
KERBEROS_V4 CLIENT|MUTUAL
KERBEROS_V4 CLIENT|ONE_WAY
IAC SE
.BC
The server has requested mutual Kerberos authentication,
but is willing to do just one-way Kerberos authentication.
The client will now respond with the name of the user
that it wants to log in as, and the
Kerberos ticket.
.EC
.EL
IAC SB AUTHENTICATION NAME "joe" IAC SE
.br
IAC SB AUTHENTICATION IS KERBEROS_V4 CLIENT|MUTUAL AUTH
4 7 1 67 82 65 89 46 67 7 9 77 0 48 24 49 244 109 240
50 208 43 35 25 116 104 44 167 21 201 224 229 145 20
2 244 213 220 33 134 148 4 251 249 233 229 152 77 2
109 130 231 33 146 190 248 1 9 31 95 94 15 120 224 0
225 76 205 70 136 245 190 199 147 155 13
IAC SE
.BC
The server responds with an ACCEPT command to state
that the authentication was successful.
.EC
.ER
IAC SB AUTHENTICATION REPLY KERBEROS_V4
CLIENT|MUTUAL ACCEPT IAC SE
.BC
Next, the client sends across a CHALLENGE to verify
that it is really talking to the right server.
.EC
.EL
IAC SB AUTHENTICATION IS KERBEROS_V4
CLIENT|MUTUAL CHALLENGE xx xx xx xx xx xx xx xx IAC SE
.BC
Lastly, the server sends across a RESPONSE to prove
that it really is the right server.
.ER
IAC SB AUTHENTICATION REPLY KERBEROS_V4
CLIENT|MUTUAL RESPONSE yy yy yy yy yy yy yy yy IAC SE
.EE
.sp
It is expected that any implementation that supports the Telnet
AUTHENTICATION option will support all of this specification.
.sp
.LT "7.  References" 0.3i
.sp
.IN +0.4i
.LT "[1]" 0.4i
Reynolds, Joyce, and Postel, Jon, "Assigned Numbers", RFC 1060,
ISI, March 1990
.IN -0.4i
.sp
.LT "Author's Address" 0.3i
.sp
David A. Borman, Editor
.br
Cray Research, Inc.
.br
655F Lone Oak Drive
.br
Eagan, MN 55123
.sp
Phone: (612) 452-6650
.sp
Mailing List: telnet-ietf@CRAY.COM
.br
EMail: dab@CRAY.COM
.sp
.LT "Chair's Address" 0.3i
.sp
The working group can be contacted via the current chair:
.sp
Steve Alexander
.br
INTERACTIVE Systems Corporation
.br
1901 North Naper Boulevard
.br
Naperville, IL 60563-8895
.sp
Phone: (708) 505-9100 x256
.br
EMail: stevea@isc.com
