Skip to content

TheHellishPandaa/OPENLDAP-Installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OPENLDAP-Installer

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.

Features

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

Prerequisites

  • A Debian-based system (e.g., Ubuntu).
  • Root or sudo access.
  • Internet connection for package installation.

Installation

  1. Clone this repository:
    git clone https://github.com/TheHelishPandaa/OPENLDAP-Installer.git
    cd OPENLDAP-Installer
  2. Make the script executable:
    chmod +x openldap_install.sh
  3. Run the script:
    ./openldap_install.sh
  4. Follow the prompts to enter your domain, organization, and admin password.

Usage

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.

License

This project is licensed under the MIT License.

Contributions

Feel free to submit issues or pull requests to improve this script.

Author

Jaime Galvez Martinez

About

Script in bash that install a openldap-server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages