Security · Active Directory Security
LDAPS
Cheat sheet · https://pcornel.dk/topic.php?topic=4508
Answer
LDAPS is LDAP over TLS on port 636, encrypting directory traffic so passwords in binds cannot be sniffed. Domain controllers need a valid server certificate for their FQDN.
Remember
- DCs need a certificate for their FQDN.
- Clients must trust the issuing CA.
- Expired certificates break LDAPS.
First checks
openssl s_client -connect <dc>:636 -showcerts </dev/null— LDAPS certificateldapsearch -H ldaps://<dc> -x -b '' -s base— LDAPS workscertutil -store my— DC certificates
Commands
openssl s_client -connect dc01.example.com:636 -showcerts
Verify in this order
client → TLS 636 → DC certificate → LDAP
Where it usually breaks
First mismatch in identity lifecycle → authenticator/credential → IdP/federation/session → authorization policy → target resource → audit trail; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4508