How to Install 389 Directory Server on Ubuntu Server latest version

In this tutorial, we will guide you through the installation process of 389 Directory Server on Ubuntu Server. 389 Directory Server is a robust and secure open-source LDAP server maintained by the 389 Project.

Prerequisites

Step 1: Update the system

Before installing any software on Ubuntu, it is always recommended to update the system's package database to the latest available version. To update your system, run the following command in your terminal.

sudo apt update && sudo apt upgrade

Step 2: Install Required Dependencies

After updating the system, we need to install dependencies required for configuring and building 389 Directory Server. Run the following command in your terminal to install dependencies.

sudo apt install -y gcc make automake autoconf libtool \
                        openldap-clients openldap-servers \
                        libdb-dev libicu-dev libssl-dev \
                        perl perl-core perl-Net-SSLeay \
                        perl-IO-Socket-SSL perl-Encode-Detect \
                        perl-Test-Exception perl-Test-Taint \
                        perl-TimeDate perl-Convert-ASN1 \
                        perl-Mozilla-LDAP perl-Inline python

Step 3: Download and Extract 389 Directory Server

Visit the 389 Directory Server website and download the latest stable version of the software. Alternatively, you can download it using the following command in your terminal.

wget https://github.com/389ds/389-ds-base/archive/refs/tags/389-ds-base-2.0.2.tar.gz

Once the download is complete, extract the tarball by running the below command in your terminal.

tar -zxvf 389-ds-base-2.0.2.tar.gz

Step 4: Build and Install 389 Directory Server

After extracting 389 Directory Server, navigate to the extracted directory by running the following command in your terminal.

cd 389-ds-base-2.0.2

Now, run the configure script to configure the 389 Directory Server settings.

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

Once the configuration is complete, we can run the make command to build the software by entering the following command in the terminal.

make

Finally, install the software by running the following command in the terminal.

sudo make install

Step 5: Configure and Start the 389 Directory Server

After installing and building the software, we need to configure the 389 Directory Server. Run the following command in your terminal.

sudo /usr/sbin/setup-ds-admin.pl

This command will open up an interactive setup wizard. Follow the on-screen instructions to complete the configuration process.

After completing the configuration process, start the 389 Directory Server service using the following command.

sudo systemctl start dirsrv.target

To verify the service's status, run the following command.

sudo systemctl status dirsrv.target

Step 6: Access 389 Directory Server

After successfully installing and setting up the 389 Directory Server, you can now access it using a web browser by navigating to the following URL.

https://<YOUR_IP_ADDRESS>:9830/

Replace with your server's IP address.

You have successfully installed 389 Directory Server on your Ubuntu server.

Conclusion

This tutorial has provided you with a step-by-step guide to install the 389 Directory Server, a robust and secure LDAP server on your Ubuntu server. You can now use the server to manage users, groups, and other directories.

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!