ldapadd command not found

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

Introduction

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

ldapadd: command not found

or when using sudo you get the following error message

sudo: ldapadd: command not found

Solutions to ldapadd: command not found

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

In Ubuntu ldapadd is provided by ldap-utils package.

ldap-utils is:

This package provides utilities from the OpenLDAP (Lightweight Directory Access Protocol) package. These utilities can access a local or remote LDAP server and contain all the client programs required to access LDAP servers.

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

sudo apt-get -y install ldap-utils

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

You can also use apt command to install ldap-utils.

sudo apt -y install ldap-utils

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

sudo aptitude install ldap-utils

Summary

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