In this tutorial, we will be installing 389 Directory Server on Manjaro, which is a popular open source LDAP server. It is used by many organizations to manage their user directories and authentication.
Before we start, make sure you have the following prerequisites installed on your system:
Follow these steps to install the 389 Directory Server on Manjaro:
First, we need to install some necessary packages. Open up the terminal and type the following command:
sudo pacman -S gcc pkgconf python3-devel openldap-devel
Next, we will download and install the 389 Directory Server package from the official website. Open up the terminal and type the following command:
wget https://github.com/389ds/389-ds-base/archive/refs/tags/389-ds-base-1.4.4.16.tar.gz
tar xvf 389-ds-base-1.4.4.16.tar.gz
cd 389-ds-base-1.4.4.16/
./configure --prefix=/usr --libexecdir=/usr/lib64 --enable-debug=no --enable-autobind --enable-paged-search --enable-memberof --enable-refint --disable-static
make && sudo make install
It will take some time to download and install the package, depending on your internet speed and system configuration.
Once the installation is complete, we need to configure the server. To do that, we will use the setup-ds-admin.pl
script. Open up the terminal and type the following command:
sudo /usr/sbin/setup-ds-admin.pl
It will bring up the following prompt:
===========================================================================
Choose a setup type:
1. Express
Allows you to quickly set up the servers using the most
common options and pre-defined defaults. Suitable for
new installations.
2. Typical
Allows you to specify common defaults and options.
3. Custom
Allows you to specify more advanced options. This is recommended
for experienced server administrators only.
Enter choice [1]:
Choose the appropriate option based on your requirement.
Next, it will ask for your Organization Name. Provide your organization name and press Enter.
Enter your Organization [Example Company]:
After that, it will ask for your Administrator ID. Provide your Administrator ID and press Enter. Remember this ID, as it will be needed later for configuring the server.
Enter the fully qualified name of the person who will manage the
server instance.
This may be in the form of an email address in addition to a real name.
Quotation marks are required around the string if it contains spaces.
Examples:
"Manager"
"manager@example.com"
Manager [dirsrv]:
In the next step, it will ask for the database type. Select the appropriate option based on your requirement.
Database Type [MDB]:
Next, it will ask for the Port number. Provide the default port number or choose a different one based on your requirement.
Port [389]:
After that, it will ask to configure the Admin domain. Provide the domain name and press Enter.
Administrator domain [example.com]:
Next, it will ask to configure the Directory Manager password. Provide the password and press Enter. Remember this password, as it will be needed later for configuring the server.
Directory Manager DN password:
In the next step, it will ask for your Base DN. Provide your Base DN and press Enter.
Suffix [dc=example,dc=com]:
After that, it will ask to configure the Directory Server identifier. Provide the identifier and press Enter.
Directory server network identifier: localhost.localdomain:389
Next, it will ask to configure the LDAP connection security. Choose the appropriate option based on your requirement.
LDAP connection security [default]:
After that, it will ask to configure the SSL certificate. Choose the appropriate option based on your requirement.
SSL certificate database password:
In the next step, it will ask to configure the SSL connection security. Choose the appropriate option based on your requirement.
SSL connection security [default]:
After you have completed all the configuration steps, it will ask you to start the server. Type "Y" and press Enter to start the server.
Start the server [yes]: y
To verify the installation, open up your web browser and type the following URL:
http://localhost:9830/
It will bring up the 389 Directory Server console. Provide your Administrator ID and password, which you have configured earlier, to log in.
Congratulations! You have successfully installed 389 Directory Server on Manjaro.
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!