Sign inSign up

dta4/d2sc

By dta4

Updated almost 7 years ago

Image
0

1.4K

dta4/d2sc repository overview

d2sc - dockerized directory service cluster

A docker image to run an OpenLDAP cluster.

OpenLDAP website : www.openldap.org

Even if there are other popular open source alternatives for LDAP directory services like 389DS or ApacheDS, OpenLDAP still seems to be the quite stable and well-matured reference.

This is an OpenLDAP based Docker image that can be deployed as OpenLDAP (multi) master and/or slave and a stack.yml that showcases a cluster deployment as described in the picture.

figure 1

We are providing it here, because we need a flexible centralized LDAP user management backend for our project and existing solutions like the cool stuff from Osixia doesn't fit perfectly for us.

Build 'n' Run

It's available via Dockerhub.

You start and stop the stack as usual:

docker-compose -f stack.yml up -d [--build]
docker-compose -f stack.yml down

Access the LDAP slave frontends and master backends:

# frontend
ldapsearch -LLL -H ldaps://localhost -D 'cn=Configuration Manager,cn=config' -w root -b 'cn=config'
ldapsearch -LLL -H ldaps://localhost -D 'cn=Directory Manager,o=example' -w root -b 'o=example'

# backend
ldapsearch -LLL -H ldaps://localhost:42636 -D 'cn=Configuration Manager,cn=config' -w root -b 'cn=config'
ldapsearch -LLL -H ldaps://localhost:42636 -D 'cn=Directory Manager,o=example' -w root -b 'o=example'

Eclipse Photon with Apache Directory Studio 2.0.0.v20180908-M14 is known as working LDAP UI workhorse.

Of course, you can build by your own as usual:

docker build --tag=dsc dsc/
Configuration

Basic configuration via:

environmentdefault
DSC_SLAVEnomaster mode is the default
DSC_SERVER_ID1unique server id for masters
DSC_DB_SUFFIXo=example
DSC_MASTERSldap://localhostother masters to sync with
DSC_ROOT_PASSrootcn=Configuration Manager,cn=config
cn=Directory Manager,{{DSC_DB_SUFFIX}}
DSC_ADMIN_PASSadmincn=admin,ou=admins,{{DSC_DB_SUFFIX}}
DSC_READ_PASSreadcn=reader,ou=admins,{{DSC_DB_SUFFIX}}
DSC_SYNC_PASSsynccn=sync,ou=admins,{{DSC_DB_SUFFIX}}

Look to docker-entrypoint.sh for more details...
...and to stack.yml for an example.

Dependencies

We are using:

License

Apache License Version 2.0

Todo

Written with StackEdit.

Tag summary

Content type

Image

Digest

Size

9.4 MB

Last updated

almost 7 years ago

docker pull dta4/d2sc