Use this when encrypting LDAP traffic with TLS on port 636.
LDAPS
client → TLS 636 → DC certificate → LDAP
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 Setting up LDAPS Narrow the fault
1. Issue a certificate to each DC with Server Authentication EKU and the DC's FQDN (Domain Controller Authentication or Kerberos Authentication templates work).
2. The DC picks it up automatically (or restart AD DS/reboot).
3. Clients must trust the issuing CA.
Test: openssl s_client -connect dc01.example.com:636 -showcerts or ldp.exe with SSL on port 636. Combine with LDAP signing and channel binding for full protection.
Step 2 Common mistakes Narrow the fault
- DCs presenting expired or wrong-name certificates on 636.
- Clients not trusting the issuing CA.
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.
- DCs need a certificate for their FQDN.
- Clients must trust the issuing CA.
- Expired certificates break LDAPS.
openssl s_client -connect <dc>:636 -showcerts </dev/null— LDAPS certificateldapsearch -H ldaps://<dc> -x -b '' -s base— LDAPS workscertutil -store my— DC certificates
ReferenceImportant terms & boundaries2 sections · depth on demand
Platform, version and operating-envelope scope
LDAPS behaviour depends on the domain controller's certificate (from AD CS or another CA), the Windows Server version and client TLS settings; LDAP channel binding and signing requirements were tightened by Microsoft updates and should be checked per environment.
In depth
LDAPS is LDAP over TLS on port 636 (or StartTLS on 389), encrypting directory traffic and protecting credentials in simple binds. Domain controllers need a valid server certificate — usually from an enterprise CA with automatic enrolment — for LDAPS to work.
Test-NetConnection dc01.corp.example.com -Port 636
openssl s_client -connect dc01.corp.example.com:636 -showcerts </dev/null | openssl x509 -noout -subject -dates
ldapsearch -H ldaps://dc01.corp.example.com -D 'svc_ldap@corp.example.com' -W -b 'dc=corp,dc=example,dc=com' '(sAMAccountName=ahansen)'
Certificates must include the DC's FQDN in the Subject Alternative Name, and clients must trust the issuing CA. Track certificate expiry — an expired DC certificate silently breaks every LDAPS-dependent application.
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 → LDAPS. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/security/ · confidence 94%