Browse learn

Active Directory Authentication Protocols

Compare Kerberos, NTLM, and LDAP in Active Directory, including each protocol's role, security properties, fallbacks, and appropriate use.

On this page

Why AD Authentication Protocols Matter

Authentication protocols are the foundation of Active Directory (AD) security. They determine how users and services prove their identities, how secrets are protected, and what level of trust applications and infrastructure can enforce. AD’s protocol choices directly impact seamless sign-on, modern security properties like mutual authentication, and vulnerability to credential theft. Failing to understand which protocol is used—and why—creates real-world risks: silent downgrades to legacy protocols, vulnerabilities like pass-the-hash, authentication breakage in application integrations, and exposure of credentials in transit. For developers and IT engineers, clarity about AD authentication protocols is essential for building secure, resilient identity solutions and for effective troubleshooting when things go wrong.

Kerberos, NTLM, LDAP: Protocol Roles and Differences

  • Kerberos is the default authentication protocol in Windows domains. It is a ticket-based system for secure, mutual authentication and single sign-on (SSO).
  • NTLM (NT LAN Manager) is a legacy protocol using a challenge-response mechanism. It is still supported for backward compatibility, local logons, and when Kerberos cannot be negotiated.
  • LDAP (Lightweight Directory Access Protocol) is a directory access protocol. It enables querying and modifying AD entries and can act as a front door for authentication, either by performing a simple username/password check or delegating to Kerberos/NTLM internally.

Kerberos vs. NTLM vs. LDAP—Core Capabilities

ProtocolMain RoleSecurity LevelMutual AuthSSOUsed For
KerberosAuthenticationStrongYesYesDomain logon, service access
NTLMAuthenticationWeakNoNoLegacy, fallback, local access
LDAPDirectoryDependsNoNoQueries, binds, delegation

Kerberos and NTLM are authentication protocols. LDAP’s primary role is directory access and data transport, with authentication as a supported function rather than the main purpose.

How Kerberos Works in AD: Tickets, Mutual Auth, and SSO

In AD, Kerberos provides a secure, standardized way for users and services to establish identity and trust. Here’s a step-by-step overview:

  1. Initial Logon (AS Exchange): The client sends a request to the Key Distribution Center (KDC) on a domain controller, asking for a Ticket Granting Ticket (TGT). The request contains the user’s principal name.
  2. KDC Verification: The KDC checks the credentials against the AD database. If correct, it returns a TGT encrypted with the client’s secret.
  3. TGT Authentication: The client decrypts the TGT and stores it.
  4. Service Access (TGS Exchange): To access a service (e.g., file share), the client presents the TGT to the KDC, requesting a service ticket.
  5. Service Ticket Returned: The KDC returns a ticket encrypted for the target service.
  6. Service Auth (AP Exchange): The client sends the service ticket to the server, which validates it with the KDC.
  7. Mutual Authentication: Optionally, the service sends proof of its own identity, confirming the trust is two-way.
  8. Single Sign-On: TGTs and service tickets enable users to re-authenticate to multiple services without re-entering credentials during the ticket lifetime.

Kerberos relies on strict time synchronization and accurate DNS resolution. Failing either of these preconditions typically causes Kerberos negotiation to fail, prompting fallback to weaker protocols like NTLM—often without user or application visibility.

NTLM in Practice: Fallback, Risks, and Ongoing Use

NTLM was the default authentication protocol before Kerberos. It relies on a challenge-response protocol based on password hashes, lacks mutual authentication, and is vulnerable to modern attacks (notably pass-the-hash and relay attacks). NTLM persists in AD environments because:

  • Some clients or services are not domain-joined.
  • Resources are accessed across untrusted boundaries, or there is no Service Principal Name (SPN) for the target.
  • Kerberos cannot be negotiated, often due to DNS or time configuration errors.

NTLM fallback is silent: if Kerberos authentication fails, Windows automatically uses NTLM to maintain compatibility. Developers and IT teams frequently miss fallback unless monitoring logs for protocol activity—leading to unintentional exposure of legacy risks.

Example: A file share on a domain may suddenly start accepting NTLM authentication if the clock skew between the client and the domain controller exceeds Kerberos tolerances.

LDAP Authentication in AD: Bind Types, Encryption, and Protocol Delegation

LDAP primarily exposes AD as a directory protocol, but also mediates authentication workflows:

  • Simple Bind: The client sends a username (often the DN) and password. Without encryption (plain LDAP on port 389), credentials are exposed in clear text. Simple bind is only secure when used over LDAPS (port 636).
  • SASL Bind (GSSAPI): LDAP can use SASL mechanisms to delegate authentication securely to Kerberos (preferred) or NTLM (if Kerberos is not negotiated). In domain-joined scenarios, SASL/GSSAPI binds leverage the client’s ticket cache.
  • Security Mode Configuration: LDAP authentication is only as secure as the transport and the method configured. Unencrypted or unsigned binds are a well-known AD security pitfall.

Key point: LDAP is not itself an authentication protocol equivalent to Kerberos or NTLM; when used for user authentication in AD, it either performs simple password checks or delegates the operation to the underlying configured authentication protocol (ideally Kerberos).

How AD Chooses: Protocol Negotiation and Recognition

When a client (such as a Windows machine or application) attempts authentication:

  1. SSPI/Negotiation: The Security Support Provider Interface (SSPI) on Windows evaluates the context (domain membership, targeted resource, network conditions).
  2. Kerberos Attempted First: In a standard domain, Kerberos is negotiated if both client and server support it and necessary infrastructure (DNS, clocks, SPNs) is in place.
  3. Fallback to NTLM: If Kerberos prerequisites aren’t met, Windows negotiates NTLM with no user intervention.
  4. Protocol Selection in LDAP Binds: When authenticating to LDAP, the bind method controls protocol selection—SASL/GSSAPI for Kerberos, or simple bind (with or without encryption).

Visible signs: To audit which protocol was used:

  • Event Log: Windows Security log entries distinguish Kerberos (Event ID 4768/4769) from NTLM (Event ID 4624, Logon Type 3, Authentication Package: NTLM).
  • LDAP Logging: LDAP diagnostic logs reveal whether binds are signed/encrypted, and the bind type.
  • Application Errors: Apps may fail authentication or experience SSO issues if Kerberos fails due to misconfiguration, forcing insecure NTLM fallback.

Security Hardening: Best Practices and Protocol Pitfalls

  1. Phase Out NTLM: Use official domain policies and event log audits to identify and restrict NTLM usage. Carefully migrate remaining dependencies before disabling NTLM to prevent outages.
  2. Enforce LDAPS and LDAP Signing: Require LDAP signing and TLS encryption on all AD domain controllers. This protects credentials in transit and prevents tampering.
  3. Ensure Infrastructure Supports Kerberos: Maintain DNS accuracy and clock synchronization among domain members to reduce unnecessary protocol fallback.
  4. Prefer Kerberos Authentication Flows: Configure applications and services to use Kerberos-capable binds or protocols.
  5. Monitor and Audit: Regularly review logs for NTLM usage, unsigned LDAP binds, and failed Kerberos attempts. Investigate and remediate root causes promptly.

Practical Troubleshooting: Protocol Selection in Real Scenarios

  • Scenario 1: A Node.js app using a simple LDAP bind fails security review. Investigation reveals binds over port 389 (clear-text) to AD, exposing passwords. Remediation: enforce LDAPS and use SASL/GSSAPI binds for Kerberos where possible.
  • Scenario 2: A user unexpectedly routes authentication via NTLM. Event logs show Kerberos ticket failures caused by missing SPNs. SPN registration and infrastructure correction restore Kerberos.
  • Scenario 3: Application SSO fails after domain controller migrations—Kerberos cannot be negotiated due to DNS misconfiguration, and NTLM is being used silently. Protocol monitoring exposes the risk, enabling targeted infrastructure fixes.

Common Misconceptions

  • Myth: LDAP is an authentication protocol equal to Kerberos/NTLM.

    Reality: LDAP is a directory access protocol that may carry authentication requests but relies on underlying mechanisms like Kerberos or NTLM for the actual authentication logic.

  • Myth: NTLM is obsolete and never found in modern AD environments.

    Reality: NTLM is still common as fallback, in cross-domain/forest scenarios, or when Kerberos negotiation fails.

  • Myth: LDAP authentication is always secure inside an AD domain.

    Reality: LDAP simple binds transmit credentials in clear text unless signing or encryption (LDAPS) is enforced. It is a frequent misconfiguration risk.

  • Myth: Windows always selects Kerberos if the computer is domain-joined.

    Reality: Kerberos is only used if all preconditions are met. Infrastructure problems (DNS, clocks, SPN registration) or certain access scenarios trigger silent fallback to NTLM.

Sources