Kerberos: how tickets authenticate network services and how to troubleshoot them
Trace the AS/TGS ticket flow, separate authentication from authorization and encryption, and diagnose common Kerberos failures.
Kerberos: how tickets authenticate network services and how to troubleshoot them
Kerberos is a network authentication protocol in which a trusted Key Distribution Center (KDC) issues tickets so a client does not send its password to every service. A client first obtains a ticket-granting ticket (TGT), then requests a service ticket for each service. This supports authentication and optional mutual authentication, but depends on the KDC, account keys, service names, clocks, and encryption policy being managed correctly.
This article describes Kerberos V5 (RFC 4120) and uses Active Directory on Windows Server 2016, 2019, 2022, or 2025 and Windows 10/11 as an implementation example. Windows adds extensions; confirm vendor-specific behavior against documentation for the deployed version.
Roles and names
A principal is an identity that can be authenticated, including a user, computer, or service. A realm is an administrative trust area for principals and keys, often written like alice@EXAMPLE.COM. A KDC provides two logical functions: the Authentication Service (AS) issues a TGT after initial authentication, and the Ticket-Granting Service (TGS) exchanges a valid TGT for a ticket to a named service. These functions may run on one KDC system. Realms can establish trust, but trust alone does not grant a user permissions in another realm.
Follow a file-server exchange
Suppose Alice opens a share on files01.example.com. The ticket is a protected protocol message, not an arbitrary string the client sends instead of a password.
**Initial authentication:** the client asks the AS for a TGT. If authentication succeeds, it receives the TGT and a session key for later requests; it does not send its password to the file server.
**Request a service ticket:** the client asks the TGS for a ticket matching the service's registered name, usually its Service Principal Name (SPN), and proves possession of the TGT. The KDC returns a ticket protected with the service account's key.
**Present and verify:** the client sends the service ticket and a short-lived authenticator to the server. The server uses its key to open the ticket, obtains the client identity and session key, then checks the authenticator. This makes replaying a ticket alone insufficient.
**Optional protections:** an AP-REP exchange can let the client verify the server. Kerberos credentials can also support message integrity or confidentiality through an application interface such as GSS-API, but authentication alone does not automatically encrypt all application traffic.
A TGT is for asking the KDC for service tickets; a service ticket is for a particular service. Ticket lifetimes and renewal depend on policy and implementation. Kerberos authentication also does not itself grant access to a file: the service applies its own ACLs, roles, and authorization policy after authenticating the principal.
Diagnose failures in a safe order
First identify the scope: all services or one host/alias, one user or many, and the observable error. Do not copy passwords, raw tickets, or session keys into messages or logs.
**KDC discovery and reachability:** confirm the client finds the intended realm/KDC and can reach it; in an AD domain, check domain-controller discovery and DNS-based service location with approved tools.
**Clock alignment:** compare client, KDC, and service clocks with the organization's allowed skew. A large difference can invalidate authenticator timestamps.
**Service name mapping:** verify that the host name or alias maps to the correct SPN and service principal. Missing, duplicate, or misassigned SPNs can cause the server to use the wrong key.
**Ticket and key state:** confirm the service ticket is issued and the target has the matching key. A password/key change not reflected in a keytab or secret store can cause validation failure even when issuance succeeds.
**Encryption compatibility:** check the types allowed by client, KDC, and service. RFC 8429 says deployments should not use RC4-HMAC or the listed 3DES types. Identify affected principals and plan supported AES configuration rather than casually re-enabling obsolete algorithms for compatibility. RFC 8009 specifies AES with HMAC-SHA2 Kerberos types.
**Authorization after authentication:** if ticket validation succeeds but access is denied, inspect share permissions, filesystem ACLs, application roles, and domain policy separately. Network reachability is not resource authorization.
Before changing settings, record scope and rollback steps, then test with a limited account and server. Verify ticket issuance, any required mutual authentication, and the expected resource permissions. If the change fails, roll back the last change rather than broadly weakening policy, and ensure diagnostics do not retain passwords, ticket contents, or session keys.
Sources
[RFC 4120: The Kerberos Network Authentication Service (V5)](https://www.rfc-editor.org/rfc/rfc4120.html)
[Microsoft Learn: Kerberos authentication overview in Windows Server](https://learn.microsoft.com/en-us/windows-server/security/kerberos/kerberos-authentication-overview)
[RFC 8429: Deprecate Triple-DES (3DES) and RC4 in Kerberos](https://www.rfc-editor.org/rfc/rfc8429.html)
[RFC 8009: AES Encryption with HMAC-SHA2 for Kerberos 5](https://www.rfc-editor.org/rfc/rfc8009.html)