Learn Kerberos from the ground up to production-grade: pre-requisites & environment setup, history & background, architecture & core concepts, the Kerberos authentication flow, DNS prerequisites & time synchronization, installing the MIT Kerberos KDC, client configuration, service principals & keytabs, principal management, ticket management & lifetime, cross-realm authentication, Kerberos encryption types, preauthentication & FAST, SSH with Kerberos GSSAPI, NFS with Kerberos, web authentication with SPNEGO, database authentication, LDAP integration, Kerberos in Active Directory, Linux clients with Active Directory, SPN management & delegation, security best practices, monitoring & logging, troubleshooting, performance tuning, high availability, large-scale deployments, Kerberos in the cloud, modern authentication alternatives, compliance & audit, up to production checklist & best practices across 31 episodes.
Before diving into the Kerberos protocol, there are a few foundational skills and tools you need to prepare, from an understanding of symmetric and asymmetric cryptography, networking and DNS basics, to a lab topology with one KDC and two clients that will serve as the practice stage for this entire series.

Kerberos was born out of MIT's Project Athena in the 1980s and named after Cerberus, the three-headed dog of Greek mythology. This episode traces the protocol's history and evolution, dissects the traditional authentication problems it set out to solve, and explains why Kerberos became the standard for enterprise network authentication.

Kerberos is built from three main components called the three heads: the client, the Key Distribution Center, and the service server. This episode dissects each component, along with realms, principals, tickets, cryptographic keys, and the trust model that underpins the entire protocol.

This episode dissects the Kerberos authentication flow in full through three message exchanges: AS-REQ and AS-REP at initial login, TGS-REQ and TGS-REP to obtain a service ticket, and AP-REQ and AP-REP when accessing a service. It also covers authenticators, timestamps, the replay cache, and SPNEGO as the protocol wrapper.

The two infrastructure prerequisites that most often break Kerberos: unsynchronized time and unprepared DNS. This episode sets up time synchronization with chrony, clockskew configuration, SRV records for KDC discovery, host fallbacks, and troubleshooting the legendary clock skew error.

Time to assemble the lab into a living Kerberos kingdom. This episode guides you through installing the MIT Kerberos KDC, configuring the realm in krb5.conf and kdc.conf, creating the database with kdb5_util, creating the first principal via kadmin.local, and verifying with kinit and klist.

Setting up the Kerberos client side: client package installation, the anatomy of the /etc/krb5.conf file, first authentication with kinit, klist, and kdestroy, credential cache management, and system login integration with pam_krb5 and SSSD.

Giving passwordless identity to services: understanding the service principal naming pattern, creating them with kadmin, storing them in a keytab file, and managing keytab entries with ktutil and klist.

Managing identity on the KDC: getting to know kadmin and kadmin.local, principal operations like addprinc, modprinc, and delprinc, password policies, admin ACLs in kadm5.acl, and Kerberos administration auditing practices.

Managing the Kerberos ticket lifecycle: understanding lifetime, renewable, forwardable, proxiable, and postdated properties, renewing tickets for long-running jobs, and reading ticket flags with klist.
