Cyberstudy
4.6 In progress

Single Sign-on Authentication

16 flashcards

Summary

Single sign-on (SSO) lets a user authenticate once and then reach many services without signing in again. In Windows domains this is done with Kerberos. The user first proves identity to the Key Distribution Center and receives a ticket-granting ticket that later unlocks service tickets.

In plain words

Single sign-on means you log in once and then access many systems. Kerberos does this with a key distribution center (KDC). You first get a ticket-granting ticket (TGT), which proves you logged in but doesn't yet give access to anything specific.

Detailed explanation

  • Single sign-on (SSO): One authentication gives access to multiple systems.
  • Kerberos: A ticket-based authentication protocol that uses symmetric keys and a trusted third party; it runs on port 88.
  • Key Distribution Center (KDC): The trusted server, a domain controller in Active Directory, that contains the authentication service and the ticket-granting service.
  • Authentication service (AS): Verifies the user's initial sign-in and issues the ticket-granting ticket.
  • Ticket-granting ticket (TGT): Proof of successful authentication, encrypted with the KDC's own key, used to request service tickets.
  • Principal: Any user, computer or service that Kerberos can authenticate.

Initial sign-in

  • 1. Request: The client sends an authentication request that includes a timestamp encrypted with a key derived from the user's password.
  • 2. Check: The AS decrypts the timestamp with its stored copy of the key; success proves the user knows the password.
  • 3. Issue: The AS returns a TGT and a session key for talking to the ticket-granting service.
  • Time sync: Kerberos rejects requests with timestamps too far off, typically five minutes, which helps stop replay attacks.

Important terms

taken from the text above
Single sign-on (SSO)
One authentication gives access to multiple systems.
Kerberos
A ticket-based authentication protocol that uses symmetric keys and a trusted third party; it runs on port 88.
Key Distribution Center (KDC)
The trusted server, a domain controller in Active Directory, that contains the authentication service and the ticket-granting service.
Authentication service (AS)
Verifies the user's initial sign-in and issues the ticket-granting ticket.
Ticket-granting ticket (TGT)
Proof of successful authentication, encrypted with the KDC's own key, used to request service tickets.
Principal
Any user, computer or service that Kerberos can authenticate.
Time sync
Kerberos rejects requests with timestamps too far off, typically five minutes, which helps stop replay attacks.

Examples & real-world scenarios

  • Logging into a Windows domain PC, then opening file shares without typing a password again.
  • The KDC's Authentication Service issuing the TGT.
  • The TGT being time-limited.

Scenario

Users complain they must re-enter passwords for every internal app. Joining the apps to the Kerberos realm gives them single sign-on after one domain login.

Common mistakes

  • Thinking the TGT grants access to servers. It's used to get service tickets.
  • Forgetting that Kerberos depends on synchronised clocks.

Practical skills

  • Describe the first stage of Kerberos in order.

What I should remember

  • SSO: Authenticate once, use many services.
  • KDC: The trusted Kerberos server, made up of the AS and TGS.
  • TGT: Issued at sign-in and used to obtain service tickets.
  • Time synchronization: Required by Kerberos to prevent replay.