How To Install ldaptor-utils on Debian 10
Introduction
In this tutorial we learn how to install ldaptor-utils on Debian 10.
What is ldaptor-utils
ldaptor-utils is:
A set of LDAP utilities for use from the command line, including:
- ldaptor-search – Search LDAP directories.
- ldaptor-namingcontexts – Fetch the naming contexts the server supports.
- ldaptor-find-server – Find the server that serves the wanted DN by looking at DNS SRV records.
- ldaptor-passwd – Change passwords.
- ldaptor-rename – Change object RDN and DNs.
- ldaptor-ldap2passwd – Generate passwd(5) format data from LDAP accounts.
- ldaptor-getfreenumber – Do an efficient scan for e.g. next free uidNumber.
- ldaptor-ldap2dhcpconf – Create dhcp.conf based on LDAP host info.
- ldaptor-ldap2dnszones – Create a DNS zone files based on LDAP host info.
- ldaptor-ldap2maradns – Create a maradns zone file based on LDAP host info.
- ldaptor-ldap2pdns – pdns pipe backend.
- ldaptor-fetchschema – Fetch schema from a server.
There are three methods to install ldaptor-utils on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install ldaptor-utils Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install ldaptor-utils using apt-get by running the following command:
sudo apt-get -y install ldaptor-utils
Install ldaptor-utils Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install ldaptor-utils using apt by running the following command:
sudo apt -y install ldaptor-utils
Install ldaptor-utils Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install ldaptor-utils using aptitude by running the following command:
sudo aptitude -y install ldaptor-utils
How To Uninstall ldaptor-utils on Debian 10
To uninstall only the ldaptor-utils package we can use the following command:
sudo apt-get remove ldaptor-utils
Uninstall ldaptor-utils And Its Dependencies
To uninstall ldaptor-utils and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove ldaptor-utils
Remove ldaptor-utils Configurations and Data
To remove ldaptor-utils configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge ldaptor-utils
Remove ldaptor-utils configuration, data, and all of its dependencies
We can use the following command to remove ldaptor-utils configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ldaptor-utils
Dependencies
ldaptor-utils have the following dependencies:
References
Summary
In this tutorial we learn how to install ldaptor-utils package on Debian 10 using different package management tools: apt, apt-get and aptitude.