commands.sh

ldapdomaindump

linux

Dump users, computers, groups, OS, and membership information via LDAP to HTML, JSON, and greppable output. See also: `ldapsearch`.

More info →

Options (5)

-u, --userboolean

Dump all information using the given LDAP account

Example: ldapdomaindump {{[-u|--user]}} {{domain}}\{{username}} {{[-p|--password]}} {{password|ntlm_hash}} {{hostname|ip}}
-p, --passwordboolean

Dump all information using the given LDAP account

Example: ldapdomaindump {{[-u|--user]}} {{domain}}\{{username}} {{[-p|--password]}} {{password|ntlm_hash}} {{hostname|ip}}
-r, --resolveboolean

Dump all information, resolving computer hostnames

Example: ldapdomaindump {{[-r|--resolve]}} {{[-u|--user]}} {{domain}}\{{username}} {{[-p|--password]}}{{password}} {{hostname|ip}}
-n, --dns-serverboolean

Dump all information, resolving computer hostnames with the selected DNS server

Example: ldapdomaindump {{[-r|--resolve]}} {{[-n|--dns-server]}} {{domain_controller_ip}} {{[-u|--user]}} {{domain}}\{{username}} {{[-p|--password]}}{{password}} {{hostname|ip}}
-o, --outdirboolean

Dump all information to the given directory without JSON output

Example: ldapdomaindump --no-json {{[-o|--outdir]}} {{path/to/directory}} {{[-u|--user]}} {{domain}}\{{username}} {{[-p|--password]}}{{password}} {{hostname|ip}}

Examples (4)

Dump all information using the given LDAP account

ldapdomaindump [-u|--user] domain\username [-p|--password] password|ntlm_hash hostname|ip

Dump all information, resolving computer hostnames

ldapdomaindump [-r|--resolve] [-u|--user] domain\username [-p|--password]password hostname|ip

Dump all information, resolving computer hostnames with the selected DNS server

ldapdomaindump [-r|--resolve] [-n|--dns-server] domain_controller_ip [-u|--user] domain\username [-p|--password]password hostname|ip

Dump all information to the given directory without JSON output

ldapdomaindump --no-json [-o|--outdir] path/to/directory [-u|--user] domain\username [-p|--password]password hostname|ip
made by @shridhargupta | data from tldr-pages