Installation
docker run --detach ❶ \ --name openldap ❷\ -p 389:389 \ ❸ --env LDAP_ORGANISATION="Betrayers heaven" \ ❹ --env LDAP_TLS=false ❺\ --env LDAP_DOMAIN="betrayer.com" ❻\ --env LDAP_ADMIN_PASSWORD="secret" ❼\ --env LDAP_CONFIG_PASSWORD="secret" ❽\ --volume ~/OpenLdap/Data:/var/lib/ldap ❾\ --volume ~/OpenLdap/Config:/etc/ldap/slapd.d ❾\ osixia/openldap:1.4.0 ❿
Run the container and detach its process from the current shell. This will start a background process. |
|
The container's name to appear i.e. in a Docker listing: docker |
|
Bind the containers port 389 to the host system's port 389. |
|
The organisation's name e.g. “HdM Stuttgart”. |
|
We currently do not require transport layer security. |
|
The organisation's domain name. The corresponding DIT's root will be
|
|
The DIT's administrator password
corresponding to the bind DN
|
|
The server configuration tree's administrator password
corresponding to an entirely distinct tree starting at
|
|
The docker host system's pre -
existing directories
end databases will reside on the docker host system's file system. This allows for e.g. deleting and restoring the container without loosing data. This way your local server's database and the server's log files will exist outside your Docker container. This is not strictly required but allows to remove and re-install your container independently of its database. NoteOn windows make sure to execute from inside the Linux Sub System. This will allow for efficient file system access. |
|
The docker image name and version as being published on
|
-
osixia / docker-openldap documentation.
-
Docker container networking.
-
Docker run reference.
Caution
--detach
is not documented in favour of its short variant-d
.
version: '3.7'
services:
openldap:
image: osixia/openldap:1.4.0
container_name: openldap
restart: always
environment:
LDAP_ORGANISATION: "Betrayers heaven"
LDAP_TLS: "false"
LDAP_DOMAIN: "betrayer.com"
LDAP_ADMIN_PASSWORD: "secret"
LDAP_CONFIG_PASSWORD: "secret"
ports:
- 389:389
volumes:
- ~/OpenLdap/Data:/var/lib/ldap
- ~/OpenLdap/Config:/etc/ldap/slapd.d
-
Download and install Apache Directory Studio.
-
Configure access to your local docker container.