ldapdomaindump
Active Directory information dumper via LDAP
What it is and what it does
ldapdomaindump is a command-line tool that queries an Active Directory domain via LDAP and extracts structured information about users, groups, computers, policies, and domain trusts. It's designed for the reconnaissance phase of internal penetration tests, where an authenticated user or machine account can retrieve data that would otherwise be scattered across LDAP in an unreadable format.
The tool outputs multiple files in parallel: HTML for human review, JSON and CSV/TSV for machine parsing, and greppable tab-delimited text. It supports both NTLM and SIMPLE authentication, can work with NTLM hashes, and integrates with relaying tools like impacket's ntlmrelayx. It includes utility scripts to convert output to BloodHound-compatible CSV or enum4linux-style pretty-printed format. Runtime dependencies are dnspython and ldap3.
Use it for:
- Enumerate all users, groups, and computers in an AD domain during an internal pentest reconnaissance phase.
- Extract domain policy information (password requirements, lockout policies) for security assessment.
- Generate structured reports of domain trusts and their properties for trust relationship analysis.
- Feed domain data into BloodHound (via ldd2bloodhound utility) or other AD visualization tools.
- Integrate with NTLM relay attacks by accepting an existing authenticated LDAP connection from impacket.
- Minimize memory usage on large networks by using the --minimal flag to dump only essential attributes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Collects and exports Active Directory information via LDAP in human-readable HTML, JSON, CSV, and greppable formats for domain reconnaissance.
Yes, if you are performing internal penetration testing or AD security assessments and need to extract and format LDAP data for analysis. The low install friction and permissive license make it straightforward to add to a pentest toolkit. Caveat: maintenance is aging (last release 497 days ago), so verify compatibility with your target AD environment and LDAP server version before relying on it in production assessments.
Install
ldapdomaindump on PyPI
pip
pip install ldapdomaindumpuv
uv add ldapdomaindumppoetry
poetry add ldapdomaindumpInstalling ldapdomaindump
Before you install
Low friction install with just two runtime dependencies (dnspython and ldap3). Maintenance is aging—last release was 497 days ago—but the repository remains active with recent commits and no archived status.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install ldapdomaindump
ldapdomaindump -u DOMAIN\\username -p password -o ./output hostname_or_ip
Requires Python 3.6 or greater. Target LDAP server must be accessible and you must have valid credentials (or anonymous access) to query it.
Verify before relying
- Whether the tool works with modern Active Directory deployments and current LDAP server versions.
- Performance characteristics and memory usage on very large domains (beyond the --minimal flag guidance).
- Compatibility with recent versions of BloodHound or other downstream tools that consume its output.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — dnspython, ldap3 |
| Maintenance | aging — 497 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 661,510/month — #5,450 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ldapdomaindump-0.10.0-py3-none-any.whl
Tags
More Security packages
Provides Python bindings to the FreeDesktop.org…
permissive · top 1,000 on PyPI
msalMSAL for Python handles OAuth2 and OpenID…
permissive · top 1,000 on PyPI
joserfcjoserfc implements JOSE standards (JWS, JWE,…
permissive · top 1,000 on PyPI
AuthlibAuthlib provides a complete implementation of…
permissive · top 1,000 on PyPI
argon2-cffi-bindingsProvides low-level CFFI bindings to the…
permissive · top 1,000 on PyPI
adalADAL for Python authenticates applications with…
permissive · top 1,000 on PyPI
bloodhoundBloodHound.py is a Python ingestor that…
permissive · top 15,000 on PyPI
msldapmsldap is a Python library for querying and…
permissive · top 15,000 on PyPI
ldap3ldap3 is a pure Python LDAP V3 client library…
copyleft · top 5,000 on PyPI
python-active-directoryAn Active Directory client library for Python…
permissive · top 15,000 on PyPI
django-auth-ldapProvides a Django authentication backend that…
permissive · top 15,000 on PyPI
python-ldapProvides an object-oriented Python API to…
permissive · top 5,000 on PyPI
dsinternalsInteract with Windows Active Directory by…
permissive · top 15,000 on PyPI
urlextractExtracts URLs from text by locating TLDs and…
permissive · top 5,000 on PyPI
python3-ldapThis package is a redirect to ldap3—a pure…
copyleft · top 15,000 on PyPI
ldaptorLdaptor is a pure-Python LDAP client library…
permissive · top 5,000 on PyPI