📦Open Source

OpenLDAP Docker

Production-grade OpenLDAP server in a container. Multi-master replication, overlays, TLS/SSL, and enterprise security out of the box. Built on AlmaLinux 9.

Production ReadyMulti-Master ReplicationEnterprise SecurityAlmaLinux 9
Quick Start

Deploy in seconds

Docker Run

docker run -d \
  --name openldap \
  --hostname openldap \
  -e LDAP_DOMAIN=vibhuvioio.com \
  -e LDAP_BASE_DN=dc=vibhuvioio,dc=com \
  -e LDAP_ADMIN_DN=cn=Manager,dc=vibhuvioio,dc=com \
  -e LDAP_ADMIN_PASSWORD=Password123 \
  -e LDAP_ROOT_PASSWORD=Password123 \
  -e LDAP_ORGANISATION=VibhuviOiO \
  -e INCLUDE_SCHEMAS=cosine,inetorgperson,nis \
  -e ENABLE_REPLICATION=false \
  -e SERVER_ID=1 \
  -e ENABLE_MONITORING=true \
  -p 389:389 \
  -p 636:636 \
  -v ldap-data:/var/lib/ldap \
  -v ldap-config:/etc/openldap/slapd.d \
  -v ./logs:/logs \
  --restart unless-stopped \
  vibhuvioio/openldap:latest

Docker Compose

version: '3.8'
services:
  openldap:
    image: vibhuvioio/openldap:latest
    container_name: openldap
    hostname: openldap
    restart: unless-stopped
    ports:
      - "389:389"
      - "636:636"
    environment:
      LDAP_DOMAIN: vibhuvioio.com
      LDAP_BASE_DN: dc=vibhuvioio,dc=com
      LDAP_ADMIN_DN: cn=Manager,dc=vibhuvioio,dc=com
      LDAP_ADMIN_PASSWORD: Password123
      LDAP_ROOT_PASSWORD: Password123
      LDAP_ORGANISATION: VibhuviOiO
      INCLUDE_SCHEMAS: cosine,inetorgperson,nis
      ENABLE_REPLICATION: "false"
      SERVER_ID: "1"
      ENABLE_MONITORING: "true"
    volumes:
      - ldap-data:/var/lib/ldap
      - ldap-config:/etc/openldap/slapd.d
      - ./logs:/logs
volumes:
  ldap-data:
  ldap-config:
Features

Everything you need for directory services

🔗

Multi-Master Replication

3+ node clusters with automatic failover using mirror mode replication

🔒

Enterprise Security

Non-root execution (UID 55), TLS/SSL, secure ACLs, and audit logging

🧩

Overlays Ready

memberOf, ppolicy, auditlog, and refint overlays via environment variables

🎨

Custom Schemas

Auto-load custom objectClasses and attributes from mounted LDIF files

📊

Built-in Monitoring

cn=Monitor backend for real-time connection, operation, and health statistics

High Performance

MDB backend, pre-configured indices, query limits, and DoS protection

Watch Demo

See OpenLDAP Docker in Action

Watch how OpenLDAP Docker simplifies directory service deployment with multi-master replication, enterprise security, and integration with tools like Keycloak, Jenkins, and Vault.

Deploy single-node or multi-master clusters in minutes
Configure overlays and schemas with environment variables
Integrate with Keycloak, Jenkins, SonarQube, Vault, and Splunk

Video Coming Soon

A product walkthrough video is being prepared

Ready to get started?

Deploy production-grade OpenLDAP in minutes with Docker. Multi-master replication, enterprise security, and integrations with your favorite tools.