Sign inSign up

devopsansiblede/ldap

By devopsansiblede

Updated 5 months ago

Image
0

3.3K

devopsansiblede/ldap repository overview

OpenLDAP

OpenLDAP Server based on devopsansiblede/baseimage:latest. Supports data loading via volume mount as well as SSL based LDAP (ldaps).

ENV Variables

envdefaultchange recommendeddescription
LDAP_PORT389yesport for LDAP to listen – unencrypted
LDAPS_PORTyesport for LDAP to listen – SSL encrypted; not to be confused with STARTLS
LOG_LEVEL16384nolog level for the slapd
IMPORT_DIR"/import/"no
IMPORT_CONFIG_FILE"config.ldif"no
IMPORT_DATA_FILE"data.ldif"no
LDAP_ADMIN_PWmandatory when initiating dbyesplain text password for admin user
LDAP_CONFIG_PWmandatory when initiating dbyesplain text password for configuration
LDAP_DOMAINmandatory when initiating dbyes
LDAP_BASEDNDN derived from LDAP_DOMAINyes
LDAP_ORGANISATION
LDAP_BACKENDMDBnoBackend Type
ADDITIONAL_MODULESyescomma separated list of modules to be enabled
ADDITIONAL_SCHEMASyescomma separated list of schemas to be enabled

Usage

Container Parameters

Start a new openldap server instance, import config & data.ldif's from another instance and persist the state in data

docker run -d -p 389:389 -p 636:636 -v $PWD/data/database:/var/lib/ldap -v $PWD/data/config:/etc/ldap/slapd.d -v $PWD/import:/import --name ldap devopsansiblede/ldap:latest
Volumes
  • /etc/ldap/slap.d - Config database
  • /var/lib/ldap - Data database
Useful File Locations
  • /certs - location for custom certificates
  • /import/config.ldif - Text file containing the exported config tree (${IMPORT_DIR}${IMPORT_CONFIG_FILE})
  • /import/data.ldif - Text file containing the exported data tree (${IMPORT_DIR}${IMPORT_DATA_FILE})
  • /etc/defaults/slapd - Slapd startup configuration

Tag summary

Content type

Image

Digest

sha256:500f48bd6

Size

543.9 MB

Last updated

5 months ago

docker pull devopsansiblede/ldap