Authentication Service Exchange
The user begins logging on to the network by typing a logon name and password. The Kerberos client on the user's workstation converts the password to an encryption key and saves the result in a program variable.
The client then requests credentials for the ticket-granting service (TGS) of the Key Distribution Center (KDC) by sending the KDC's authentication service a message of type KRB_AS_REQ (Kerberos Authentication Service Request). The first part of this message identifies the user and the TGS service being requested. The second part of this message contains preauthentication data intended to prove that the user knows the password. This is simply an authenticator message that is encrypted with the master key derived from the user's logon password.
When the KDC receives KRB_AS_REQ, it looks up the user in its database, gets the associated user's master key, decrypts the preauthentication data, and evaluates the time stamp inside. If the time stamp is valid, the KDC can be assured that the preauthentication data was encrypted with the user's master key and thus that the client is genuine.
After the KDC has verified the user's identity, it creates credentials that the client can present to the TGS, as follows:
- The KDC invents a logon session key and encrypts a copy with the user's master key.
- The KDC embeds another copy of the logon session key and the user's authorization data in a ticket-granting ticket (TGT), and encrypts the TGT with the KDC's own master key.
- The KDC sends these credentials back to the client by replying with a message of type KRB_AS_REP (Kerberos Authentication Service Reply).
- When the client receives the reply, it uses the key derived from the user's password to decrypt the new logon session key.
- The client stores the new key in its ticket cache.
- The client extracts the TGT from the message and stores that in its ticket cache as well.