Script in bash that install a openldap-server
# OpenLDAP Installation Script
This repository contains a Bash script to install and configure OpenLDAP on a Debian-based system. The script prompts the user for necessary configuration details and sets up an LDAP server.
- Installs OpenLDAP and required utilities.
- Configures the LDAP database with user-provided domain and organization details.
- Sets up an administrator account with a secure password.
- Creates an initial LDAP directory structure.
- A Debian-based system (e.g., Ubuntu).
- Root or sudo access.
- Internet connection for package installation.
- Clone this repository:
git clone https://github.com/TheHelishPandaa/OPENLDAP-Installer.git cd OPENLDAP-Installer
- Make the script executable:
chmod +x openldap_install.sh
- Run the script:
./openldap_install.sh
- Follow the prompts to enter your domain, organization, and admin password.
Set-up a domain
sudo dpkg-reconfigure slapd
Once installed, you can manage LDAP using ldapsearch
, ldapadd
, and other utilities:
ldapsearch -x -LLL -H ldap:/// -b "dc=example,dc=com"
Replace example.com
with your configured domain.
This project is licensed under the MIT License.
Feel free to submit issues or pull requests to improve this script.