Kerberos is the default authentication protocol in Active Directory (AD), replacing the older NTLM. It works by using a trusted third-party service—the Key Distribution Center (KDC)—to issue encrypted tickets that let users prove their identity once and then access multiple resources without re-entering passwords.
The Problem Kerberos Solves
Before Kerberos, Windows domains used NTLM, which required the server holding a resource to contact a domain controller to verify a password hash every time a user accessed something. That meant credentials were sent (or hash challenges exchanged) frequently, and each service had to handle authentication itself. Kerberos flips this: a user authenticates once to the KDC, receives a set of tickets, and then presents those tickets to any service in the domain. The service only needs to check the ticket’s validity, not contact the domain controller for every request. This reduces password exposure and network chatter.
Core Components of Kerberos in AD
- Key Distribution Center (KDC): Runs on every domain controller. It issues all tickets and holds a copy of every account’s long-term key (derived from the password).
- Ticket Granting Ticket (TGT): Issued after a user logs on. It proves the user authenticated successfully and is valid for a limited time (default 10 hours in Windows).
- Ticket Granting Service (TGS): A service within the KDC that issues service tickets when a user wants to access a specific resource (like a file share or web app).
- Service Ticket (ST): A ticket for a specific service, encrypted with the service’s secret key, so the service can decrypt it without contacting the domain controller.
- Authenticator: A timestamp and user info encrypted with the session key, sent along with a service ticket to prove the user is the one who received the ticket.
Step-by-Step Authentication Flow
- User logs on: The client sends the username and a timestamp encrypted with the user’s password-derived key to the KDC (AS-REQ).
- KDC responds: If the password matches, the KDC sends back a TGT and a session key, both encrypted with the user’s key (AS-REP). The client decrypts this and caches it.
- User requests a service: The client sends the TGT plus the service’s name to the KDC (TGS-REQ).
- KDC issues a service ticket: The KDC validates the TGT, then creates a service ticket encrypted with the target service’s key, plus a new session key for that service (TGS-REP).
- Client contacts the service: The client sends the service ticket and an authenticator (timestamp encrypted with the session key) to the service (AP-REQ).
- Service validates: The service decrypts the ticket, checks the timestamp to prevent replay, and optionally verifies the client’s identity with the KDC if mutual authentication is required (AP-REP).
All these messages use timestamps to prevent replay attacks. If a clock skew exceeds five minutes (default), authentication fails—that’s why time sync is critical in AD.
Kerberos in AD vs. Standalone Kerberos
Standard Kerberos (RFC 4120) has a KDC, but in Active Directory the KDC is tightly integrated with AD’s database. Domain controllers store user and service account passwords as long-term keys, and the KDC uses those to encrypt tickets. AD also adds extensions: PAC (Privilege Attribute Certificate) inside service tickets carries the user’s group memberships and security IDs, so services know what the user can access without querying AD each time. Another extension is user-to-user authentication, used when a service runs under a user account rather than a computer account. AD also supports Kerberos armoring (FAST) to protect pre-authentication data, and claims-based access via dynamic access control.
Common Problems and Misconceptions
A frequent issue is the KRB_AP_ERR_SKEW error, meaning the client and service clocks differ too much. Fixing time sync usually resolves it. Another is KRB_AP_ERR_MODIFIED, which often means the service account password was changed but the service’s SPN (Service Principal Name) is stale. Many people think Kerberos is only for domain-joined Windows machines, but it also works for Linux clients using SSSD or Winbind, and for web applications via HTTP SPNs. A common misconception is that Kerberos sends passwords over the network—it never does; it only sends encrypted timestamps and tickets. Another myth: disabling NTLM entirely is safe. In reality, some legacy applications still require NTLM, and you should test before disabling it.
Configuring and Troubleshooting Kerberos
To use Kerberos for a service, you must register an SPN (like HTTP/webserver.contoso.com) on the account that runs the service. You can check SPNs with setspn -L. For troubleshooting, Windows provides klist (view or purge tickets) and kerbtray (graphical ticket viewer). Event ID 4768 indicates a TGT request, 4769 a service ticket request, and 4771 a failed pre-authentication. If a service fails with “logon failure” but NTLM works, check the SPN, the service account’s password, and whether the client can reach the KDC. Also verify that the service’s msDS-AllowedToDelegateTo attribute is set correctly if you use constrained delegation.
Security and Delegation
Kerberos tickets are encrypted, but they can be stolen from memory (Pass-the-Ticket attacks). To mitigate, use Credential Guard to protect tickets in a virtualized secure environment. Delegation allows a service to impersonate a user to access another service. Three types exist: unconstrained (the service gets the user’s TGT), constrained (the service can only impersonate to specific services), and resource-based constrained (the target service decides who can delegate to it). Unconstrained delegation is risky because it exposes TGTs; prefer constrained or resource-based. Also, Kerberos does not encrypt the data between client and service—it only authenticates. Use TLS/IPsec for encryption.
Frequently Asked Questions
What is the default Kerberos ticket lifetime in AD?
By default, a TGT lasts 10 hours, and service tickets last 10 hours as well (they are renewed automatically). The maximum renewal is 7 days, and the maximum lifetime for a ticket is 10 hours. These are set in the domain policy under “Account Policies → Kerberos Policy.”
Why do I see NTLM instead of Kerberos in my logs?
NTLM is used when Kerberos fails or is not supported. Common reasons: the client or server is not domain-joined, the service has no SPN, the client is using an IP address instead of the DNS name (Kerberos requires the name to match the SPN), or the firewall blocks port 88. Check the SPN and use the fully qualified domain name.
Can Kerberos work across different forests?
Yes, with a forest trust, Kerberos can cross domains and forests. The client’s KDC issues a referral ticket to the target domain’s KDC, which then issues a service ticket. This works as long as the trust is transitive and the name suffix routing is configured correctly.
What happens if a user’s password is changed while they have a TGT?
The TGT remains valid until it expires because it was encrypted with the old password’s derived key. The KDC can still decrypt it because it keeps the old key until the TGT expires. However, new service ticket requests will use the new password for pre-authentication. So the user may keep working until the TGT expires, then they must log in again.
Is Kerberos safe to use over the internet?
Kerberos was designed for a trusted LAN. Over the internet, you should use a VPN or an HTTPS-based proxy that tunnels Kerberos traffic, because the protocol itself does not encrypt the payload and is vulnerable to offline dictionary attacks on captured pre-authentication data. Use Kerberos armoring (FAST) and strong passwords to mitigate.
Related
- Tree of Life Symbolism Across World Mythologies
- Tree of Life Quilt Pattern: Meaning & How to Make One
- Tree of Life New Orleans: History, Symbolism, and Visit
How pages are sourced and corrected: Sources and editorial policy.