Skip to content

jmlemetayer/slapd-configure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Jean-Marie LEMETAYER
Aug 16, 2019
24a4298 · Aug 16, 2019

History

7 Commits
Aug 16, 2019
Mar 16, 2018
Mar 17, 2018
Mar 17, 2018

Repository files navigation

Easily configure your OpenLDAP server

Disclaimer and dependencies

The tools has been developed and tested on Debian 9 only. Some packages are needed:

% apt install debconf ldap-utils slapd

The TLS certificates have been generated by certbot (Let's Encrypt).

Usage

First you need to generate a dhparam.pem file by using this command:

% openssl dhparam -out /etc/letsencrypt/live/dhparam.pem 4096

The numbits parameter can be replaced by 2048 it the generation take too long.

Then clone the repository and run the slapd-configure script. It will ask you some questions in order to properly configure your OpenLDAP server:

% git clone https://github.com/jmlemetayer/slapd-configure.git
% ./slapd-configure/slapd-configure
Remove old database? [Y/n] y
Enter Admin Password: ********
Retype Admin Password: ********
Enter Config Password: ********
Retype Config Password: ********
Enter Read Only Password: ********
Retype Read Only Password: ********
TLS private key file (privkey.pem): /etc/letsencrypt/live/ldap.jml.bzh/privkey.pem
TLS server certificate file (cert.pem): /etc/letsencrypt/live/ldap.jml.bzh/cert.pem
TLS CA certificate file (fullchain.pem): /etc/letsencrypt/live/ldap.jml.bzh/fullchain.pem
TLS DH parameter file (dhparam.pem): /etc/letsencrypt/live/dhparam.pem

License

The slapd-configure script has been inspired by the @osixia/docker-openldap project.

The slapd-configure script is released under the MIT License.

Releases

No releases published

Packages

No packages published

Languages