How To Install ldapscripts on Kali Linux
Introduction
In this tutorial we learn how to install ldapscripts
on Kali Linux.
What is ldapscripts
ldapscripts is:
Ldapscripts are shell scripts that allow management of POSIX accounts (users, groups, machines) in a LDAP directory. They are similar to smbldap-tools but are written in shellscript, not Perl.
They only require OpenLDAP client commands (ldapadd, ldapdelete, ldapsearch, ldapmodify, ldappasswd) and make administrator’s work a lot easier avoiding the need to configure Perl and each library dependency (e.g. Net::LDAP).
These scripts are very simple to configure by not requiring any Samba-related information (SID, profiles, homes, etc): management of Samba attributes is entirely done by standard commands (net, smbpasswd and pdbedit) used together with the scripts. Moreover, most of the configuration is guessed from the one of nslcd, and everything should work out from the box for most users.
The scripts may be used independently - within command lines - or automatically by Samba (like smbldap-tools), to handle POSIX information within accounts before adding Samba information.
There are three methods to install ldapscripts
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install ldapscripts Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install ldapscripts
using apt-get
by running the following command:
sudo apt-get -y install ldapscripts
Install ldapscripts Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ldapscripts
using apt
by running the following command:
sudo apt -y install ldapscripts
Install ldapscripts Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install ldapscripts
using aptitude
by running the following command:
sudo aptitude -y install ldapscripts
How To Uninstall ldapscripts on Kali Linux
To uninstall only the ldapscripts
package we can use the following command:
sudo apt-get remove ldapscripts
Uninstall ldapscripts And Its Dependencies
To uninstall ldapscripts
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove ldapscripts
Remove ldapscripts Configurations and Data
To remove ldapscripts
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge ldapscripts
Remove ldapscripts configuration, data, and all of its dependencies
We can use the following command to remove ldapscripts
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ldapscripts
Dependencies
ldapscripts have the following dependencies:
References
Summary
In this tutorial we learn how to install ldapscripts
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.