ldap2bind command not found

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

Introduction

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

ldap2bind: command not found

or when using sudo you get the following error message

sudo: ldap2bind: command not found

Solutions to ldap2bind: command not found

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

In Ubuntu ldap2bind is provided by ldap2zone package.

ldap2zone is:

This is a tool that reads info for a zone from LDAP and constructs a standard plain ascii zone file. The LDAP information has to be stored using the dnszone schema.

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

sudo apt-get -y install ldap2zone

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

You can also use apt command to install ldap2zone.

sudo apt -y install ldap2zone

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

sudo aptitude install ldap2zone

Summary

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