Kerberos service principals: align the requested name and service key
Learn how a Kerberos service principal names a service, how the KDC and server use it, and how to troubleshoot aliases and key mismatches.
A Kerberos service principal identifies the server-side service for which a client requests a ticket. Authentication works only when the client-requested principal, KDC registration, and key available to the service agree. Host aliases, name canonicalization, realm selection, or stale keys can break ticket issuance or decryption.
Principal components
A common conceptual form is service/host.example.test@EXAMPLE.TEST:
service identifies the service type (for example HTTP or LDAP).
host is the server name used by the client.
realm is the Kerberos realm where the principal is registered.
RFC 4120 describes Internet-host server names with service and host components; DNS-style hostnames are lowercase when case is insignificant. This is conceptual Kerberos notation, not a guarantee about a vendor's SPN syntax or registration tools.
Ticket flow
The client selects the target service name and requests a service ticket from the TGS using its TGT.
The KDC issues a ticket for the requested server principal, protected with a key associated with that principal.
The service decrypts and validates the ticket and authenticator with its deployed key.
The service applies its own authorization policy; Kerberos authentication alone does not grant file, mailbox, or API permissions.
The ticket's sname should be the intended principal. An insecure DNS lookup must not canonicalize one hostname into another for the service principal. RFC 4120 recommends using the user-entered hostname lowercased without other client-side changes; secure naming services and product behavior require local verification.
Configure and diagnose
Confirm the exact principal requested by the client, including service, host, and realm.
Decide explicitly whether clients use an alias, load balancer, or canonical host. Ensure the intended name is registered and avoid untrusted reverse-DNS rewriting.
Confirm the KDC entry and deployed keytab/credential store refer to the same principal and current key version. Keytab format and rotation procedures are implementation-specific.
Keep realm mapping and any cross-realm trust path explicit.
Diagnose in order: KDC cannot find service → check requested name/realm/registration; ticket issued but service cannot decrypt → check principal/key version/key rollout; alias alone fails → check registration and client name behavior; ticket validates but access is denied → inspect service ACL/roles.
Never place passwords, session keys, tickets, or keytab contents in logs or public repositories.
The sample hostname and realm are fictional. Before deleting or rotating a principal key, identify every service instance that uses it and validate the rollout in a test environment.
Sources
[RFC 4120 §§1.3, 3.2–3.3, 6.2.1](https://www.rfc-editor.org/rfc/rfc4120.html)