项目作者: jmlemetayer

项目描述 :
Easily configure your OpenLDAP server
高级语言: Shell
项目地址: git://github.com/jmlemetayer/slapd-configure.git
创建时间: 2018-03-14T15:43:40Z
项目社区:https://github.com/jmlemetayer/slapd-configure

开源协议:MIT License

下载


Easily configure your OpenLDAP server

Disclaimer and dependencies

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

  1. % 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:

  1. % 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:

  1. % git clone https://github.com/jmlemetayer/slapd-configure.git
  2. % ./slapd-configure/slapd-configure
  3. Remove old database? [Y/n] y
  4. Enter Admin Password: ********
  5. Retype Admin Password: ********
  6. Enter Config Password: ********
  7. Retype Config Password: ********
  8. Enter Read Only Password: ********
  9. Retype Read Only Password: ********
  10. TLS private key file (privkey.pem): /etc/letsencrypt/live/ldap.jml.bzh/privkey.pem
  11. TLS server certificate file (cert.pem): /etc/letsencrypt/live/ldap.jml.bzh/cert.pem
  12. TLS CA certificate file (fullchain.pem): /etc/letsencrypt/live/ldap.jml.bzh/fullchain.pem
  13. 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.