Skip to main content
RunBook Academy

LinuxLXIII · Cluster Time, DNS and Identity DependenciesIdentity expiry

LDAP and certificate expiry cluster impact - the silent credential failures

Intermediate⏱ ~10 minopensslldapsearch

What you'll learn

  • Recognise how identity expiry affects clusters
  • Identify the symptoms of expiring credentials
  • Apply the mitigation patterns
  • Alert on credential expiry

Prerequisites

Verified against Ubuntu 24.04 LTS · Debian 12 (Bookworm) · RHEL 9.x · Rocky Linux 9.x · AlmaLinux 9.x · Linux kernel 6.1 LTS / 6.6 LTS · systemd 255+ · OpenSSH 8.7p1 (RHEL 9) / 9.6p1 (Ubuntu 24.04) · nftables 1.0.x · chrony 4.x · Pacemaker 2.1.x · Corosync 3.1.x · 2026-08-09

Not yet marked complete on this device.

LDAP and certificate expiry are silent failures. A certificate expires, services start failing, and the cause is not obvious. This lesson covers the impact and the mitigation.

What expires

In a cluster:

  • LDAP user passwords: typically expire per policy.
  • Kerberos tickets: short-lived (default 24h).
  • TLS certificates: expire on a fixed date.
  • Service account credentials: may expire if automated.
  • OAuth tokens: short-lived.

Each can break cluster services silently.

Symptoms

  • LDAP authentication fails with “password expired”.
  • Kerberos fails with “ticket expired”.
  • TLS handshake fails with “certificate expired”.
  • Service-to-service auth fails.
  • Health checks fail (cannot authenticate to backend).

The cluster is “broken” but the symptom points to the service, not the credential.

Mitigation

Monitor expiry

Alert 30 days before any credential expires:

  • LDAP user passwords: ldapsearch query.
  • TLS certificates: openssl x509 -enddate.
  • Service accounts: scheduled check.

Automate renewal

  • Let’s Encrypt for TLS.
  • LDAP password reset policy.
  • Service account rotation.

Use long-lived credentials where possible

  • Internal certificates: 1-5 years.
  • Service accounts: machine identity, not password.
  • Use mTLS or workload identity (AWS IAM, GCP service accounts) where possible.

Test expiry handling

Quarterly, simulate an expiring credential:

# Expire a test service account
sudo chage -E 0 testuser

# Verify services handle it gracefully
# (or fail fast and predictably)

A graceful failure is better than a silent one.

Knowledge check

Knowledge check · 3 questions

  1. Q1. What is the typical Kerberos ticket lifetime?

  2. Q2. TLS certificate expiry is rare and not worth monitoring.

  3. Q3. Which of the following typically expire? Select all that apply.

Passing score: 75%. Answers are checked in this browser.