Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

LDAP Security

Direct answer

LDAP security protects directory queries and binds: require LDAP signing and channel binding, use LDAPS or StartTLS, disable anonymous and simple binds over clear text, and restrict who can read sensitive attributes.

When to use this

Use this when securing LDAP queries and binds against AD.

First 30 seconds

1. Require LDAP signing and channel binding on DCs.

2. Event 2889 lists insecure binds.

3. Disable anonymous access.

4. Use LDAPS or StartTLS.

5. Least-privilege service accounts for binds.

Operational verification

client → LDAP bind (signed/TLS) → DC

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Identity, authentication and access control
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIdentity, authentication and access control
Scope / prerequisiteUse this when securing LDAP queries and binds against AD.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.exe or ldapsearch -H ldaps://dc01:636 to 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
SettingPurpose
LDAP server signing requirement = Require signingStops tampering and simple relay
LDAP channel binding = AlwaysTies LDAPS sessions to the TLS channel (stops relay over LDAPS)
LDAPS (636) or StartTLSEncrypts binds and queries
Disable anonymous binds and simple binds over clear textNo 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 references

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.

observation · 1
Key points
  • Require LDAP signing and channel binding.
  • Use LDAPS or StartTLS for simple binds.
  • Anonymous binds should be disabled.
Key checks
  • LDAP signing and channel binding GPO — required
  • Get-WinEvent -LogName 'Directory Service' | ? Id -eq 2889 — unsigned binds
  • ldapsearch -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:

SettingEffect
LDAP server signing requiredRejects unsigned SASL binds
LDAP channel bindingTies LDAPS sessions to TLS channel, stops relay
LDAPS / StartTLSEncrypts traffic
Disable anonymous bindsNo unauthenticated queries
Monitor event 2889Identifies clients using insecure binds

Find and fix applications using simple binds over 389 before enforcing signing, or they will fail.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIdentity, authentication and access control current

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%
Confirmation

Confirm action

Continue?