LDAP Security
Cheat sheet · https://pcornel.dk/topic.php?topic=4507
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.
Remember
- Require LDAP signing and channel binding.
- Use LDAPS or StartTLS for simple binds.
- Anonymous binds should be disabled.
First checks
- 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
Commands
openssl s_client -connect dc01:636
Verify in this order
client → LDAP bind (signed/TLS) → DC
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=4507