Use this when securing LDAP queries and binds against AD.
LDAP Security
client → LDAP bind (signed/TLS) → DC
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
- Event 2889 on DCs (after enabling LDAP interface events logging) lists clients using unsigned or simple binds.
ldp.exeorldapsearch -H ldaps://dc01:636to confirm LDAPS works with a valid certificate.- GPO: Domain controller: LDAP server signing requirements = Require signing, and LDAP channel binding = Always, after clients are fixed.
Step 2 Hardening LDAP Narrow the fault
| Setting | Purpose |
|---|---|
| LDAP server signing requirement = Require signing | Stops tampering and simple relay |
| LDAP channel binding = Always | Ties LDAPS sessions to the TLS channel (stops relay over LDAPS) |
| LDAPS (636) or StartTLS | Encrypts binds and queries |
| Disable anonymous binds and simple binds over clear text | No passwords on the wire |
Before enforcing, check DC events 2887/2889 (unsigned binds and which clients make them) and fix those clients. Test LDAPS with ldp.exe or openssl s_client -connect dc01:636.
Step 3 Common mistakes Narrow the fault
- Simple binds over unencrypted LDAP.
- LDAP signing and channel binding not enforced.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- LDAP signing and channel binding GPO — required
Get-WinEvent -LogName 'Directory Service' | ? Id -eq 2889— unsigned bindsldapsearch -x -H ldap://<dc> -b '' -s base— anonymous bind test
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
LDAP is how clients and applications query and modify Active Directory. Unprotected LDAP (port 389 without signing) allows credentials and data to be intercepted or relayed, and simple binds send passwords in clear text.
Hardening:
| Setting | Effect |
|---|---|
| LDAP server signing required | Rejects unsigned SASL binds |
| LDAP channel binding | Ties LDAPS sessions to TLS channel, stops relay |
| LDAPS / StartTLS | Encrypts traffic |
| Disable anonymous binds | No unauthenticated queries |
| Monitor event 2889 | Identifies clients using insecure binds |
Find and fix applications using simple binds over 389 before enforcing signing, or they will fail.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Active Directory Security → LDAP Security. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/security/ · confidence 94%