LDAPS works, but authentication is not bound to its channel

A business application queries groups over LDAPS. It validates the certificate and hostname, connections succeed, and transport security is considered complete. Yet the domain controllers' channel binding policy remains set to Never. SASL authentication over TLS therefore lacks an additional check intended particularly to limit relayed NTLM authentication.

This step is often deferred after an LDAP signing or LDAPS project, usually for “compatibility”. Without an application inventory, test procedure, and committed migration plan, that becomes permanent. The next task is therefore a verifiable migration of the affected authentication flows to Always.

Define the target around the applicable bind types

Channel binding cryptographically ties SASL authentication to its TLS channel. The domain controller validates a Channel Binding Token, or CBT. This applies to SASL over LDAPS or StartTLS, including Kerberos. Its particular security benefit is protection against NTLM relay.

A successful LDAPS bind does not necessarily demonstrate CBT support. Simple bind over TLS uses no CBT; even under Always, this policy does not turn it into CBT-protected authentication. Certificate-based binds and SASL without TLS also fall outside this CBT check. Signing for connections without TLS and complete certificate validation remain separate requirements.

The target is therefore specific: all relevant DCs enforce CBT for the applicable bind types. Applications use suitable, tested authentication, preferably Kerberos. Remaining simple-bind integrations are tracked separately with restricted accounts, proper TLS validation, and a migration decision.

Record the actual bind path for each application

Extend the LDAP inventory with the fields needed for acceptance:

  • Product version and the LDAP library actually used;
  • bind type and negotiated authentication protocol;
  • target name, port, reachable DCs, and Global Catalog use;
  • TLS termination, proxy, or load balancer in the connection path;
  • service account, business operation, execution schedule, and owner;
  • test result under Always and outstanding vendor actions.

An operating system that supports CBT does not guarantee that every application running on it uses that support. A vendor statement saying “supports LDAPS” is insufficient. Obtain confirmation for the actual library version, bind method, and required configuration.

Source IP addresses in DC logs must be mapped to applications. NAT or shared integration servers can hide several owners behind one address. Explicitly include overnight provisioning, monthly jobs, and infrequent recovery procedures in the test plan.

Use the three policy values correctly

The Domain controller: LDAP server channel binding token requirements setting is under Computer Configuration → Windows Settings → Security Settings → Local Policies → Security Options.

  • Never (0): no CBT validation.
  • When supported (1): compatible clients must provide valid binding information; clients without support remain permitted.
  • Always (2): a valid CBT is required for the applicable TLS-SASL binds.

When supported is not a passive audit mode. Even this intermediate step can reject authentication. Treat it as a change requiring a pilot, monitoring, and a rollback decision.

Manage the value through a DC GPO with a documented scope. Check the resultant policy on every target DC and the corresponding LdapEnforceChannelBinding value under HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters. An absent value does not establish a consistent configuration; OS version, default behavior, and effective policies must be considered together. The policy requires no DC restart. Do not relax existing enforcement merely to conduct an inventory.

Collect audit data from every affected DC

Bring DCs to a current, supported servicing level. Current Server 2019 and Server 2022 builds include the extended CBT audit events; old instructions with additional historical enablement steps are not current operating procedures.

For a limited diagnostic window, set 16 LDAP Interface Events under HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics to level 2. Record the previous value, log capacity, forwarding, and planned reversal of elevated diagnostics. Events appear in the Directory Service log.

These distinctions matter when interpreting the results:

  • 3039: CBT validation failed; correlate actual authentication failures with the application.
  • 3074/3075: audit findings concerning invalid or missing binding information; examine event details and identify the client.
  • 3040/3041: a summary or reminder under Never; neither is a complete compatibility inventory.

Events 3039, 3074, and 3075 require When supported or Always and the appropriate diagnostic prerequisites. No matches under Never therefore provide no basis for acceptance. Quiet logs on a single DC are equally insufficient.

Collect evidence across a full operating cycle. Restrict access to logs containing account names and IP addresses; do not copy passwords or complete authentication data into tickets. After diagnosis, retain targeted monitoring without generating unnecessarily large logs indefinitely.

Verify enforcement through real application operations

Start in a representative environment, then use a clearly bounded production pilot. A DC GPO applies to the server, not just to selected application accounts. Every client reaching the pilot DC may be affected. Do not casually move DCs into different OUs; scope the GPO deliberately and continue checking the other DC policies.

Use the same acceptance procedure for each application:

  1. Establish a fresh connection using the production library and intended bind type.
  2. Run authentication, group lookup, and the actual business process under Always.
  3. Renew connection pools in a controlled way and check service restart and planned recovery.
  4. Test failover to every intended DC and, where applicable, Global Catalog.
  5. Document success with the target DC, effective policy, and application log; exclude silent switching to simple bind or other fallbacks.

A generic LDAP test client or successful port test cannot replace this acceptance procedure. A test under When supported also does not prove that the same client works under Always. The negative test uses an isolated test client and a low-privilege test account: a TLS-SASL bind without a valid CBT must be rejected under Always. Simple bind is unsuitable for this test; no relay simulation is needed.

Define exceptions and rollback before the change

Set stop criteria around critical transactions and authentication failures. Preserve the previous GPO configuration and decide who reverses the limited pilot change, how its effect will be verified, and when another attempt will take place.

A permanently weaker “legacy DC” is not a satisfactory project outcome. If a temporary exception remains unavoidable, document the systems that can reach it, network restrictions, risk owner, expiry date, and migration task together. TLS termination by intermediaries requires an explicitly supported and tested architecture; generic EPA options from other services cannot simply be applied to AD LDAP.

Benefits of verified enforcement

  • Less relay exposure: Applicable authentication must match the TLS channel.
  • Reliable operational acceptance: Library, bind type, and failover are tested together.
  • Fewer permanent exceptions: Unsupported integrations receive a concrete remediation plan.
  • Better change verification: New product versions can be checked against the same acceptance criteria.

Disadvantages and limitations

  • Real migration effort: Firmware, library, or product replacement may be necessary.
  • Outage risk during cutover: Hidden dependencies and infrequent jobs often emerge late.
  • Limited scope: Always neither prohibits simple bind nor adds CBT to it.
  • Incomplete identity protection: Excessive account privileges, compromised clients, and inadequate certificate validation remain separate risks.

Project checklist before closure

  • Record each integration's bind type, library, owner, and execution schedule.
  • Verify servicing level, resultant GPO, and diagnostics on every target DC.
  • Treat even When supported as an effective security change.
  • Cover infrequent jobs and every intended connection target in the audit window.
  • Assess simple bind separately and do not count it as CBT success.
  • Pass fresh-connection, restart, pool-renewal, and failover tests under Always.
  • Explicitly approve proxy and TLS termination paths.
  • Document rollback, responsible owners, and time-limited exceptions.
  • Demonstrate enforcement on every intended DC with no silent fallback.
  • Define log access, monitoring, and retesting after library updates.