Pcornel
Security · Active Directory Security

LDAPS

Cheat sheet · https://pcornel.dk/topic.php?topic=4508

Back to the Topic

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 certificate
  • ldapsearch -H ldaps://<dc> -x -b '' -s base — LDAPS works
  • certutil -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

Confirmation

Confirm action

Continue?