Join our Newsletter — 33% off our NHI Course
Home› Guides› How to fix LDAP signing and LDAPS errors…
Guide Non-Human Identity (NHI)

How to fix LDAP signing and LDAPS errors when hardening domain controllers: find the binds, fix the clients, then enforce

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 20 November 2026 14 min read
On this page

When domain controllers start requiring LDAP signing or channel binding, the applications that break are almost always service accounts and appliances doing unsigned or clear-text binds, and the fix is to find them through event 2889, move each one to signed SASL or LDAPS, and only then enforce. The symptoms are rarely labelled as LDAP problems: a printer stops scanning to email lookups, a VPN appliance cannot authenticate users, an HR system stops syncing, a Java application logs a bind failure with "Strong Authentication Required". Each of those is a non-human identity using an insecure bind that the directory has just stopped accepting.

This is a troubleshooting guide. It assumes you have decided to harden and covers what breaks, how to identify every affected client, how to fix the common error classes (unsigned binds, clear-text simple binds, LDAPS certificate failures and channel binding rejections) and how to roll back safely. For the background on bind types, how signing and channel binding work, and non-Microsoft directories, see our LDAP Security Deep Dive Guide; this page does not repeat it.

This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.

Key takeaways

  • Signing enforcement rejects unsigned SASL binds and simple binds over clear-text connections; simple binds over TLS are not affected by that rule.
  • Event 2887 tells you insecure binds are happening; event 2889, enabled with the 16 LDAP Interface Events diagnostic setting at 2, tells you which client IP and which identity.
  • Almost every client on the 2889 list is a service account, appliance or application: inventory them as non-human identities with owners.
  • Fix by client type: signed SASL for applications that support it, LDAPS on 636 (or 3269 for the global catalog) for those that only do simple binds, vendor updates for appliances.
  • LDAPS failures are usually certificate problems: missing Server Authentication EKU, FQDN not in the Subject CN or SAN, untrusted root, or the wrong certificate selected.
  • Enforce only when 2887 and 2889 go quiet, keep a documented rollback, and watch event 2888 for rejected binds afterwards.

What actually breaks when you enforce

Microsoft's guidance on enabling LDAP signing is precise about scope. Once the server policy is set to Require signing, clients that use SASL binds (Negotiate, Kerberos, NTLM or Digest) without requesting signing, or that use simple binds over a connection that is not protected by SSL/TLS, stop working. Testing with ldp.exe against port 389 returns Ldap_simple_bind_s() failed: Strong Authentication Required, which is the text you will also see quoted in many application logs.

The Microsoft KB4520412 article on channel binding and signing adds the second hardening control. Channel binding (the LdapEnforceChannelBinding value) applies to binds over SSL/TLS and can be set to 0 (Never), 1 (When Supported) or 2 (Always). With enforcement, a channel-binding-capable client that sends no channel binding token is rejected; with Always, any client that sends no token fails.

So there are four distinct error classes, and each has a different fix:

Error classWho is affectedWhere it showsFix direction
Unsigned SASL bind on 389Applications using Negotiate, Kerberos or NTLM without requesting signingEvents 2887, 2889 (binding type 0)Enable signing in the client or library
Clear-text simple bind on 389Appliances and applications sending username and password in a simple bindEvents 2887, 2889 (binding type 1)Move to LDAPS, or to signed SASL
LDAPS handshake failureClients you moved to 636 or 3269Client TLS errors, not LDAP eventsFix the DC certificate or client trust
Channel binding rejectionTLS clients that cannot send a channel binding tokenEvent 3039 (and audit events 3074, 3075)Update the client, or hold at When Supported

Find every insecure bind with events 2887 and 2889

Do not enforce from a spreadsheet of systems you believe use LDAP. Let the domain controllers tell you. Microsoft documents these events in the Directory Service log, LDAP Interface category:

  • 2886 (warning): logged after directory services start, reminding administrators that signing is not required.
  • 2887 (warning): a 24-hour summary of how many unsigned SASL or clear-text simple binds the server accepted. The server is not rejecting them yet.
  • 2888 (information): a 24-hour summary of binds the server rejected because they were unsigned or clear-text. After enforcement this is your breakage counter.
  • 2889 (information): per-client detail for each insecure bind, including the client IP address and port, the identity the client attempted to authenticate as, and the binding type (0 for SASL without signing, 1 for a simple bind without signing support).

Event 2889 is not logged by default. Microsoft's guidance is to set the 16 LDAP Interface Events diagnostic setting to 2 (Basic) or higher on every domain controller (see Microsoft's article on configuring Active Directory diagnostic event logging). Enable it on all DCs, not only one, because clients pick domain controllers by site and locator rules and you will miss the ones that talk to other DCs. KB4520412 recommends monitoring events 2889, 3039, 3074 and 3075 together during the audit phase.

Collect the events centrally and turn them into a working list. An illustrative approach (field positions vary by export tool, so validate against your own data):

  • Forward Directory Service events 2887, 2888, 2889 and 3039 from all DCs to your SIEM.
  • From each 2889, extract client IP, identity and binding type, and de-duplicate by the pair of IP and identity.
  • Resolve each IP to a host, then to an application and an owner. KB4520412 suggests grouping devices as appliances and routers (contact the vendor), non-Windows devices (check vendor support) and Windows devices (check that the application uses signing and channel binding), and mapping processes on Windows hosts to binds with tracing tools.
  • Track each pair as a ticket with an owner and a fix date. The list should shrink every week.

The identity in the 2889 event is the most useful field for NHI teams. It names the service account the application uses, which you can tie back to your inventory. If an identity appears that nobody owns, that is an orphaned service account; see How to assign owners to orphaned service accounts.

Fix unsigned SASL binds

Binding type 0 in event 2889 means the client authenticated with Negotiate, Kerberos, NTLM or Digest but did not ask for signing. These are usually the easiest to fix because the client already uses an integrated authentication method; it just needs to protect the session.

  • Windows clients and applications. Set the Network security: LDAP client signing requirements policy to Require signing (in local policy, or domain-wide in the Default Domain Policy as Microsoft describes). Applications built on the standard Windows LDAP libraries generally follow it. KB4520412 notes that for Windows devices you should verify the application actually uses signing and channel binding, and references the CVE-2017-8563 update as the prerequisite for channel binding support.
  • Custom and third-party applications. Most LDAP libraries support SASL with an integrity (signing) option or a sealing option. The setting name differs by library and language; check the vendor documentation and test against a DC with signing required in a lab before production.
  • Retest. After the change, the pair of IP and identity should stop appearing in 2889. If it continues, the application may have more than one LDAP connection path (for example, a separate lookup component) that also needs changing.

Fix clear-text simple binds

Binding type 1 is the more serious finding: the client is sending a service account password over the network in a form that anyone on the path can read. Treat every account seen this way as exposed in transit and plan to rotate its password once the client is fixed.

There are three fix routes, in order of preference:

  1. Move to an integrated, signed method. If the application supports Kerberos or Negotiate with signing, use it and drop the stored password where the platform allows (a Group Managed Service Account, for example; see our Group Managed Service Accounts (gMSA) Guide).
  2. Move the simple bind onto TLS. Microsoft states that the signing requirement rejects simple binds on clear-text connections, so the same simple bind over LDAPS (636, or 3269 for the global catalog) is not rejected by that rule. Many appliances support LDAPS even when they cannot do SASL. The session is then encrypted, but the account still uses a password, so keep it long, unique, vaulted and rotated.
  3. Update or replace the device. Older appliances may support neither. Contact the vendor, record the exception with a risk owner and an end date, and isolate the device's LDAP access to specific DCs or a proxy where possible while replacement is planned.

Whichever route you choose, test the failure case as well as the success case: block the secure path in a lab and confirm the client errors out rather than retrying the old insecure bind.

Fix LDAPS certificate errors

Once clients move to 636, the problems shift from LDAP events to TLS handshake errors on the client side. Microsoft's article on enabling LDAP over SSL with a third-party certification authority lists the domain controller certificate requirements, and nearly every LDAPS error maps to one of them:

RequirementTypical symptom when missing
Certificate in the Local Computer Personal store, or the NTDS service store (which the DC uses in preference)Port 636 accepts no TLS handshake at all
Private key present, associated with the certificate, without strong private key protectionDC presents no certificate or handshake fails
Enhanced Key Usage includes Server Authentication (1.3.6.1.5.5.7.3.1)Clients reject the certificate for TLS server use
DC FQDN in the Subject CN or as a DNS name in the SANHostname mismatch errors, especially when clients connect by a load-balanced or alias name
Issued by a CA both the DC and clients trustUnknown issuer or untrusted root on the client
Key generated with the Schannel providerCertificate installed but not usable by the directory service

Two further points from the same article cause many intermittent failures. If several valid certificates are in the Local Computer store, Schannel may select the wrong one; placing the intended certificate in the NTDS store avoids this. And on Windows Server 2008 and later, AD DS detects new certificates in the NTDS store automatically, or you can trigger a refresh with the renewServerCertificate rootDSE operation, which matters during renewal.

Verify each DC with ldp.exe: connect to the DC name on port 636 with SSL selected; if LDAPS works, RootDSE information appears. Then test from the client's own platform, because Java, Linux and appliance trust stores are separate from Windows and frequently lack your internal root. Add the issuing chain to those stores rather than disabling certificate checking in the client, which would remove the protection you are moving to LDAPS to gain.

Clients that connect through an alias or load balancer name need that name in every DC certificate's SAN. Plan certificate expiry monitoring for DC certificates as a dependency of every LDAPS client; see How to build a TLS certificate inventory.

Fix channel binding rejections

Channel binding ties the LDAP authentication to the TLS session. According to KB4520412, event 3039 is logged when a client binds over SSL/TLS and fails channel binding token validation: an improperly formatted token, a capable client sending no token under When Supported, or any client sending no token under Always. Events 3074 and 3075 are audit events added through updates in 2023 (for Windows Server 2022 and 2019) that show which clients would fail, and KB4520412 notes events 3039, 3074 and 3075 are only generated when the setting is When Supported or Always. Events 3040 and 3041 are the periodic reminders when the policy is Never.

  • Move from Never to When Supported first. It protects capable clients and generates the audit trail without rejecting clients that cannot send a token at all.
  • Work through clients in 3039, 3074 and 3075 the same way as 2889: identify, assign an owner, update.
  • Move to Always only when the audit events are clear. KB4520412 notes, for example, that very old clients fail under Always but interoperate under When Supported.

Enforce, verify and roll back

Enforcement itself is a policy change. Microsoft describes setting Domain controller: LDAP server signing requirements to Require signing in the Default Domain Controller Policy (for AD LDS, the LDAPServerIntegrity registry value, where 2 enables signing and takes effect without a restart). Sequence it:

  1. Audit. Diagnostic logging on every DC, events collected centrally, worklist built from 2889 and 3039.
  2. Remediate. Fix each client, retest, close its ticket. Rotate passwords of accounts seen doing clear-text simple binds.
  3. Pilot. Enforce on one DC or site first, steer a known set of clients to it, and watch event 2888 for rejections.
  4. Enforce. Roll out to all DCs once 2887 summaries are at zero for a full business cycle (including month-end jobs and batch processes that run rarely).
  5. Verify. Test a simple bind on 389 with ldp.exe and confirm Strong Authentication Required; confirm LDAPS on 636 still works.
  6. Roll back if needed. Keep the previous Group Policy setting documented and the change approved in advance, so a critical outage can be reversed quickly while the client is fixed. Rollback is a temporary step with an owner and a date, never a permanent state.

After enforcement, keep 2888 under monitoring. New rejections usually mean a new appliance or application was deployed with defaults. Feed those into the same intake process so service accounts are registered before go-live.

Common failure patterns

  • Enabling 2889 on one DC only. Clients bound to other DCs are missed and break at enforcement.
  • Auditing for a week. Quarterly and annual jobs, disaster recovery tooling and rarely used appliances are not seen.
  • Fixing the device but not the password. Accounts that sent clear-text simple binds keep the same exposed password.
  • Disabling certificate checks on LDAPS clients. The connection is encrypted but open to interception, defeating the purpose.
  • Load balancer names missing from DC certificates. LDAPS works by DC name and fails through the alias that applications use.
  • Multiple certificates in the DC store. Schannel picks an unexpected one after renewal and clients fail intermittently.
  • Jumping channel binding straight to Always. Clients that cannot send a token fail without an audit period.
  • No owner for the identity in 2889. The account is left enabled, unfixed and unmonitored.

Practitioner checklist

  • Set 16 LDAP Interface Events to 2 on every domain controller and forward events 2886 to 2889 and 3039 to 3041, 3074 and 3075 centrally.
  • Build a worklist of client IP, identity and binding type from 2889, with an owner and fix date per entry.
  • Register every identity on the list as a service account in your NHI inventory.
  • Enable client signing for SASL binds; move clear-text simple binds to LDAPS or signed SASL.
  • Rotate passwords for every account seen doing clear-text simple binds.
  • Check each DC certificate: Server Authentication EKU, FQDN and alias names in SAN, trusted chain, correct store, single valid certificate.
  • Add the internal root to Java, Linux and appliance trust stores instead of disabling certificate validation.
  • Move channel binding to When Supported, clear 3039, 3074 and 3075, then consider Always.
  • Pilot enforcement on one DC, verify with ldp.exe, document rollback, then enforce everywhere and monitor 2888.

Standards and references

Related NHI Mgmt Group resources: LDAP Security Deep Dive Guide · LDAP Reconnaissance Detection Guide · Group Managed Service Accounts (gMSA) Guide · How to build a service account inventory from Active Directory

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.