ldapdomaindump command not found

In this troubleshooting guide we learn how to fix ldapdomaindump command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ldapdomaindump: command not found

or when using sudo you get the following error message

sudo: ldapdomaindump: command not found

Solutions to ldapdomaindump: command not found

How To Fix ldapdomaindump: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ldapdomaindump is provided by python3-ldapdomaindump package.

python3-ldapdomaindump is:

This package contains an Active Directory information dumper via LDAP. In an Active Directory domain, a lot of interesting information can be retrieved via LDAP by any authenticated user (or machine). This makes LDAP an interesting protocol for gathering information in the recon phase of a pentest of an internal network. A problem is that data from LDAP often is not available in an easy to read format.

ldapdomaindump is a tool which aims to solve this problem, by collecting and parsing information available via LDAP and outputting it in a human readable HTML format, as well as machine readable json and csv/tsv/greppable files.

This package installs the library for Python 3.

To fix this problem, we can install more using the command below.

sudo apt-get -y install python3-ldapdomaindump

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install python3-ldapdomaindump.

sudo apt -y install python3-ldapdomaindump

Or if you have aptitude installed you can use the following command.

sudo aptitude install python3-ldapdomaindump

Summary

In this tutorial we learn how to fix ldapdomaindump command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.