How to Install LDAP Account Manager (LAM) on Fedora server
LDAP Account Manager (LAM) is a web-based LDAP administration tool that allows you to create, edit and delete records in your LDAP directory. In this tutorial, we will guide you through the steps to install LAM on your Fedora server.
Prerequisites
- A Fedora server with sudo privileges for a non-root user.
- The server should have the latest updates installed.
Step 1: Install Apache and PHP
- Install Apache web server and PHP with the following command:
sudo dnf install -y httpd php php-ldap
- Start the Apache web server service:
sudo systemctl start httpd
- Enable the Apache web server service on system boot:
sudo systemctl enable httpd
Step 2: Downloading and extracting LAM
- Download the latest LAM zip file from the LAM website:
wget https://github.com/leenooks/phpLDAPadmin/archive/master.zip
- Extract the LAM files into the web server’s document root folder:
unzip master.zip -d /var/www/html/
- Rename the extracted folder to “lam”:
sudo mv /var/www/html/phpLDAPadmin-master /var/www/html/lam
Step 3: Configuring LAM
- Copy the config file:
sudo cp /var/www/html/lam/config/config.php.example /var/www/html/lam/config/config.php
- Edit the config file:
sudo vi /var/www/html/lam/config/config.php
a. Uncomment the line “$config[‘ldap’][‘server’][0]” and set your LDAP server URL.
b. Set your LDAP server’s protocol by uncommenting the desired protocol line (either ldaps or ldap).
c. Set the base DN of your LDAP server.
d. Save and exit the file.
Step 4: Accessing LAM
- Open your web browser and enter the IP address or hostname of your Fedora server followed by “/lam” in the address bar.
For example:
https://192.168.x.x/lam
- You should now see the LAM login screen. Enter your LDAP server credentials to log in.
Congratulations, you have successfully installed and configured LAM on your Fedora server.