Skip to main content
LDAP (Lightweight Directory Access Protocol) is used to locate entities such as organizations, users, and resources in networks. It powers Active Directory and many identity management systems. Default Ports: 389 (LDAP), 636 (LDAPS), 3268/3269 (Global Catalog in AD)

Anonymous Access

LDAP Anonymous Bind

Anonymous Enumeration with NetExec

What to look for in anonymous results:
  • sAMAccountName, userPrincipalName
  • memberOf for group scope
  • pwdLastSet temporal patterns
  • userAccountControl flags (disabled, smartcard required)

Authenticated Enumeration

Automated LDAP Dump

Python LDAP Enumeration

Write LDAP Data

If you can modify values, interesting possibilities include:

Kerberos Authentication

Sniffing LDAP Credentials

If LDAP is used without SSL (port 389), credentials are transmitted in plaintext and can be sniffed on the network. A MitM attack can force clients to use the clear-text authentication method.

Graphical Tools

  • Apache Directory Studio — Full-featured LDAP browser
  • jxplorer — Graphical LDAP client
  • Godap — Interactive TUI for LDAP (supports PTH, PTC, kerberos)
  • Ldapx — LDAP proxy for obfuscating traffic

Post-Exploitation: Extract Hashes

LDAP Configuration Files