How to Install 389 Directory Server on Debian Latest
389 Directory Server is an enterprise-class open source LDAP server for Linux. It offers a simple and secure way to manage users and devices on your network. In this tutorial, you will learn how to install 389 Directory Server on Debian Latest.
Prerequisites
Before you start, ensure that you have the following:
- A server with Debian Latest installed.
- A user account with sudo privileges.
Install the Dependencies
The first step is to install the required dependencies. Open the terminal and run the following command:
sudo apt-get update
sudo apt-get install gcc make openldap-devel openssl-devel openldap-clients perl perl-core wget
Download and Install 389 Directory Server
Visit the 389 Directory Server download page at
http://www.port389.org/.Click the Debian button to download the Debian package.
Once downloaded, open the terminal and navigate to the directory containing the Debian package.
Run the following command to install the package:
sudo dpkg -i 389-ds-base_1.4.4.13-1_amd64.deb
This command installs the 389 Directory Server package.
Configure 389 Directory Server
- Once you have installed the package, run the following command to initialize the 389 Directory Server instance:
sudo /usr/sbin/setup-ds-admin.pl
Follow the prompts to set up the instance.
- Choose a directory instance name.
- Set a password for the directory manager.
- Choose a suffix (e.g., dc=example,dc=com).
- Set the directory manager's and admin server's password.
Once you have entered all the required information, press
Enterto accept the default values for the remaining prompts.Start the 389 Directory Server instance by running the following command:
sudo systemctl start dirsrv.target
- Enable the 389 Directory Server instance to start automatically at system startup:
sudo systemctl enable dirsrv.target
Verify the Installation
To verify that the installation was successful, open a web browser and go to https://localhost:9830. You should see the 389 Directory Server login page.
Congratulations! You have successfully installed 389 Directory Server on Debian Latest. You can now start managing users and devices on your network.