Configurable 389 Directory Server Docker image
7.0K
Configurable 389 Directory Server Docker image.
This project provides a docker image which extends the production-oriented 389ds/dirsrv and adds features for development and testing of apps that depend on dirsrv. The Jefferson Lab image sets up a container healthcheck and container entrypoint, installs client tools , and adds some default configuration for the Jefferson Lab environment (memberOf plugin is enabled). The entrypoint integrates with the healthcheck such that the container is "healthy" only when dirsrv is both running and configured. Configuration is supported via environment variables and a conventional directory named /container-entrypoint-initdb.d of bash and ldif scripts that can be overwritten by mounting a volume.
git clone https://github.com/JeffersonLab/dirsrv
cd dirsrv
docker compose up
docker exec dirsrv ldapsearch -D "cn=Directory Manager" -w password -H ldap://localhost:3389 -x -b cn=users,cn=accounts,dc=example,dc=com uid=jdoe
Note: The quickstart uses default password password (see Configure). However, root run container local ldapi is available, so with container local commands you can replace:
-D "cn=Directory Manager" -w password -H ldap://localhost:3389 -x
with:
-Y EXTERNAL -H ldapi://%2fdata%2frun%2fslapd-localhost.socket
Mount a volume at /container-entrypoint-initdb.d containing bash and ldif scripts to run, ordered by name ascending. See example.
Environment variables:
| Name | Description |
|---|---|
| DS_DM_PASSWORD | Directory Manager password |
| DS_SUFFIX_NAME | SUFFIX to use |
| DS_BACKEND_NAME | BACKEND (optional, used in example) |
Content type
Image
Digest
sha256:e61480cac…
Size
164.3 MB
Last updated
over 2 years ago
docker pull jeffersonlab/dirsrv