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:

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

  1. Visit the 389 Directory Server download page at http://www.port389.org/.

  2. Click the Debian button to download the Debian package.

  3. Once downloaded, open the terminal and navigate to the directory containing the Debian package.

  4. 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

  1. Once you have installed the package, run the following command to initialize the 389 Directory Server instance:
sudo /usr/sbin/setup-ds-admin.pl
  1. 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 Enter to accept the default values for the remaining prompts.

  2. Start the 389 Directory Server instance by running the following command:

sudo systemctl start dirsrv.target
  1. 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.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!