I always wanted to get something on kerberos (earlier name Charon) which can give me inside of the protocol like why,how, what etc...
In this post I am trying to explain this in some easy steps with problem and solution approach for the evolution of this protocol.
Below Image displays the first version of there discussion
Problem with the first version is that anybody can impersonate anybody easily so no security and accountability. There is no Authentication (NO PASSWORD) piece involved it is just the userid which you pass to get the service.
Below Image solves first problem by having a centralized authentication server. Every user and every service has a password which is stored in the authentication server named CHAROS.
Here is how it work
1) User Authenticates with the centralized server
2) Server authenticates the user and give him a TICKET (encrypted text which is encrypted with service password)
*encrypted text contains (Username and servicename and IP address of the user)
3) User passes this ticket to the service and service will verify user's identity to give access
Problems with this:
1) User has to authenticate every time user wants to use any service. For example user has got the TICKET for mail service but wants to print some mail then he has to again enter the password
2) Password is flowing on the network in clear text (people can capture the password on the network)
Above problem is solve by introducing another component called ticket granting service in the authentication service. It will grant the ticket which can be reused.
Another componet which is added at the system level is KINIT service which is responsible for handshaking with the authentication service. Here is how it works
1) KINIT service will take userid and password from the user and will pass the userid to the authentication service (it will NOT pass the password at all)
2) Authentication service will build the TICKET GRANTING TICKET and encrypt it with the user's password because it knows what the user password is.
3) KINIT will decrypt the token using user's password. If it is able to decrypt it successfully then user is authenticated.
1) Once tickets are generated at the user system and passed over the wire for service access they can be tapped over the wire. For example user got the encrypted ticket during authentication process and it was successfully decrypted, Now user will pass this ticket to mail server for mail access. At this time someone can tap the ticket and replay it later.
2) Tickets are good for ever. Once assigned no ticket session expiry.
Keep reading this because I will post rest of the story in next post...