Sign inSign up

jinkanhq/openldap

By jinkanhq

•Updated about 4 years ago

Out of box OpenLDAP docker image based on Debian Stable

Image
0

589

jinkanhq/openldap repository overview

⁠OpenLDAP Docker Image

OpenLDAP Software is an open source implementation of the Lightweight Directory Access Protocol.

Out of box OpenLDAP docker image based on Debian Stable with two releases.

  • Feature Release: latest

  • LTS Release: lts

⁠Example

TLS enabled with global ssf=128.

version: '3'

services:
  openldap:
    hostname: openldap
    image: jinkanhq/openldap
    environment:
      - LDAP_TLS_ENABLED=true
      - LDAP_TLS_CA_FILE=/certs/ca.crt
      - LDAP_TLS_CRT_FILE=/certs/server.crt
      - LDAP_TLS_KEY_FILE=/certs/server.pem
      - LDAP_TLS_DHPARAM_FILE=/certs/dhparam
      - LDAP_DOMAIN=jinkan.org
    ports:
      - "636:636"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
      - ./certs:/certs:ro
      - ./config:/usr/local/etc/slapd.d
      - ./data:/usr/local/var/openldap-data

Without TLS enabled.

version: '3'

services:
  openldap:
    hostname: openldap
    image: jinkanhq/openldap
    environment:
      - LDAP_TLS_ENABLED=true
      - LDAP_TLS_CA_FILE=/certs/ca.crt
      - LDAP_TLS_CRT_FILE=/certs/server.crt
      - LDAP_TLS_KEY_FILE=/certs/server.pem
      - LDAP_TLS_DHPARAM_FILE=/certs/dhparam
      - LDAP_DOMAIN=jinkan.org
    ports:
      - "389:389"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./config:/usr/local/etc/slapd.d
      - ./data:/usr/local/var/openldap-data

⁠Environment Variables

⁠Basic
VariableDescriptionDefault
DEBUGEntrypoint debug modefalse
LDAP_ORGANIZATIONOrganization nameExample
LDAP_DOMAINOrganization domainexample.com
LDAP_ROOT_CNRoot common nameadmin
LDAP_ROOT_PASSWORDRoot passwordadmin
LDAP_DEBUG_LEVELDebug level⁠stats
⁠TLS
VariableDescriptionDefault
LDAP_TLS_ENABLEDEntrypoint debug modefalse
LDAP_TLS_CA_FILECA certificate file/etc/ssl/certs/ca-certificates.crt
LDAP_TLS_CRT_FILEServer certificate file
LDAP_TLS_KEY_FILEServer private key file
LDAP_TLS_DHPARAM_FILEDH parameter fileSee "Defaults"⁠
LDAP_TLS_CIPHER_SUITEOpenSSL cipher suiteSee "Defaults"⁠
LDAP_TLS_SSFSecurity strength factor⁠ssf=128
LDAP_TLS_VERIFY_CLIENTWhat checks to perform on client certificatesnever
⁠TLS Defaults

These defaults follow Mozilla⁠'s recommendations. The Intermediate configuration is chosen as defaults for general purpose.

⁠DH Parameter

https://ssl-config.mozilla.org/ffdhe2048.txt is saved in /usr/local/etc/openldap/dhparam as the default DH parameter.

⁠Cipher Suite

The following is the recommended cipher suite in OpenSSL format.

ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA38
⁠Overlays

Overlays are components that provide hooks to functions analogous to those provided by backends. All official overlays are compiled statically into this image.

⁠Reverse Group Membership Maintenance

The memberOf overlay provides maintenance of the list of groups an entry is a member of. It updates an attribute on entry whenever changes occur to the membership.

VariableDescriptionDefault
LDAP_MEMBEROF_ENABLEDEnable the memberOf overlayfalse
LDAP_MEMBEROF_GROUP_OCThe objectClass of groupgroupOfUniqueNames
LDAP_MEMBEROF_MEMBER_ADThe attribute name of group contains member namesuniqueMember
LDAP_MEMBEROF_MEMBEROF_ADThe attribute name of member entry indicates membershipExample
LDAP_MEMBEROF_DNmodifiersName for membership modificationsIdentical to LDAP_ROOT_CN
LDAP_MEMBEROF_DANGLINGBehavior to handle dangling referenceignore
LDAP_MEMBEROF_REFINTWhether to preserve referential integrityFALSE

For details, see slapo-memberof(5) and OpenLDAP documentation⁠.

⁠Contact

For more detailed documentation see https://github.com/jinkanhq/docker-openldap⁠

Please report issues on https://github.com/jinkanhq/docker-openldap/issues⁠


Included OpenLDAP

Jinkan

Tag summary

Content type

Image

Digest

sha256:283422a9b…

Size

109 MB

Last updated

about 4 years ago

docker pull jinkanhq/openldap