Public | Automated Build

Last pushed: 7 months ago
Short Description
A simple image for the OpenLDAP server.
Full Description

OpenLAPD

This is a simple image to run slapd, the LDAP server from the OpenLDAP project.

Data persistence

The configuration database is stored at /etc/openldap/slapd.d and the data are located
at /var/lib/openldap/openldap-data.

  • -v /<ldaplocation>/config:/etc/openldap/slapd.d
  • -v /<ldaplocation>/data:/var/lib/openldap/openldap-data

Configuration

If the configuration database has not been created yet, it is possible to
provide a new configuration following 3 different methods: use the
environmment to tune the default configuration, mount a configuration file, or
mount a configuration database in LDIF format.

If a configuration database is already present in the container at
/etc/openldap/slapd.d, any new configuration is ignored.

Default configuration

The default configuration can be tuned with the following environment
variables.

  • SUFFIX_DN sets the DN suffix (e.g. "dc=example,dc=com")
  • ROOT_DN sets the root DN (e.g. "cn=Manager,dc=example,dc=com")
  • ROOT_PW sets the root password (e.g. "secret" for a plain text password, or
    "{SSHA}ZKKuqbEKJfKSXhUbHG3fG8MDn9j1v4QN" for a password in RFC2307 form)

Configuration file

A specific configuration file can be mounted in the container.

  • -v /<path>/slapd.conf:/etc/openldap/slapd.conf

Configuration database

The configuration database can be described in an LDIF file and mounted in the
container :

  • -v /<path>/slapd.ldif:/etc/openldap/slapd.ldif
Docker Pull Command
Owner
alexandremenif
Source Repository

Comments (0)