Go to file
2019-05-15 18:28:41 +02:00
contrib Add example backup script 2019-04-18 21:00:21 +02:00
fixtures Add additional indexes 2019-04-18 21:28:44 +02:00
.dockerignore Initial commit 2017-09-09 17:54:45 +02:00
.gitignore Initial commit 2017-09-09 17:54:45 +02:00
.gitlab-ci.yml Enable automated builds 2017-09-09 18:00:33 +02:00
docker-compose.yml.example Improve usage examples 2019-04-18 20:59:51 +02:00
Dockerfile Add STARTTLS support 2018-10-04 01:04:04 +02:00
entrypoint.sh Indent 2019-04-18 21:00:07 +02:00
README.md Fix errors in README 2019-05-15 18:28:41 +02:00

slapd

Slapd offers a LDAP server, which we mostly use for authentication of various services. Therefore, a lot of services have a direct (or indirect) dependency on this image.

Getting the image

This image is automatically build and pushed to the docker hub. Therefore getting the image should be as easy as running

docker pull zombi/ldap

Building slapd

It is also possible to manually build this image from this repository.

docker build -t zombi/ldap .

Running slapd

Copy over example configuration

cp docker-compose.yml{.example,}

run the service

docker-compose up -d

Backing up data

State stored in this container is essential to many other services, that use authentication and authorization. Therefore you should think about backing up the LDAP database in regular intervals.

simply copying all the data from data MAY NOT WORK, as there could be race conditions leading to database corruption during the backup. The recommended way is to use the included script for backing up the database into a compact .ldif plain text file.

running contrib/create-ldap-backup.sh will create two files:

  • conf.ldif is a backup of the configuration.
  • data.ldif contains all the saved datasets.