8000 GitHub - dta4/d2sc: dockerized OpenLDAP directory service cluster
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dta4/d2sc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

environment default
DSC_SLAVE no master mode is the default
DSC_SERVER_ID 1 unique server id for masters
DSC_DB_SUFFIX o=example
DSC_MASTERS ldap://localhost other masters to sync with
DSC_ROOT_PASS root cn=Configuration Manager,cn=config
cn=Directory Manager,{{DSC_DB_SUFFIX}}
DSC_ADMIN_PASS admin cn=admin,ou=admins,{{DSC_DB_SUFFIX}}
DSC_READ_PASS read cn=reader,ou=admins,{{DSC_DB_SUFFIX}}
DSC_SYNC_PASS sync cn=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.

About

dockerized OpenLDAP directory service cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0