Network Working Group D. Borman, Editor
Request for Comments: 1411 Cray Research, Inc.
January 1993
Telnet Authentication: Kerberos Version 4
1. Command Names and Codes
Authentication Types
2. Command Meanings
IAC SB AUTHENTICATION IS <authentication-type-pair> AUTH <kerberos ticket and authenticator> IAC SE
Telnet Working Group [Page 1]
RFC 1411 Kerberos Version 4 for Telnet January 1993
These two commands are used to perform mutual authentication. They are only used when the AUTH_HOW_MUTUAL bit is set in the second octet of the authentication-type-pair. After successfully sending an AUTH and receiving an ACCEPT, a CHALLENGE is sent. The challenge is a random 8 byte number with the most significant byte first, and the least significant byte last. When the CHALLENGE command is sent, the "encrypted challenge" is the 8-byte-challenge encrypted in the session key. When the CHALLENGE command is received, the contents are decrypted to get the original 8-byte- challenge, this value is then incremented by one, re-encrypted with the session key, and returned as the "encrypted response" in the RESPONSE command. The receiver of the RESPONSE command decrypts the "encrypted response", and verifies that the resultant value is the original 8-byte-challenge incremented by one.
3. Implementation Rules
If the second octet of the authentication-type-pair has the AUTH_WHO bit set to AUTH_CLIENT_TO_SERVER, then the client sends the initial AUTH command, and the server responds with either ACCEPT or REJECT. In addition, if the AUTH_HOW bit is set to AUTH_HOW_MUTUAL, and the server responds with ACCEPT, then the client then sends a CHALLENGE, and the server sends a RESPONSE.
4. Examples
User "joe" may wish to log in as user "pete" on machine "foo". If "pete" has set things up on "foo" to allow "joe" access to his account, then the client would send IAC SB AUTHENTICATION NAME "pete" IAC SE IAC SB AUTHENTICATION IS KERBEROS_V4 AUTH <joe's kerberos ticket> IAC SE The server would then authenticate the user as "joe" from the ticket information, and since "pete" is allowing "joe" to use his account, the server would send back ACCEPT. If mutual authentication is being used, the the client would send a CHALLENGE, and verify the RESPONSE that the server sends back.
Telnet Working Group [Page 2]
RFC 1411 Kerberos Version 4 for Telnet January 1993
Client Server
Telnet Working Group [Page 3]
RFC 1411 Kerberos Version 4 for Telnet January 1993
Security Considerations