Public | Automated Build

Last pushed: 9 hours ago
Short Description
LDAP installation for dc=openmicroscopy,dc=org
Full Description

ApacheDS

This Docker image provides an ApacheDS LDAP server. Optionally it could be used to provide a Kerberos server as well.

The project sources can be found on GitHub. The Docker image on Docker Hub.

Build

git clone https://github.com/openmicroscopy/apacheds-docker.git
docker build -t openmicroscopy/apacheds apacheds-docker

Installation

The folder /var/lib/apacheds-${APACHEDS_VERSION} contains the runtime data and thus has been defined as a volume. A volume container could be used for that. The image uses exactly the file system structure defined by the ApacheDS documentation.

The container can be started issuing the following command:

docker run --name ldap -d -p 389:10389 openmicroscopy/apacheds

Usage

You can manage the ldap server with the admin user uid=admin,ou=system and the default password secret. The default instance comes with a pre-configured partition dc=openmicroscopy,dc=org.

An indivitual admin password should be set following this manual.

Then you can import entries into that partition via your own ldif file:

ldapadd -v -h <your-docker-ip>:389 -c -x -D uid=admin,ou=system -w <your-admin-password> -f sample.ldif

Customization

It is also possible to start up your own defined Apache DS instance with your own configuration for partitions and services. Therefore you need to mount your config.ldif file and set the APACHEDS_INSTANCE environment variable properly. In the provided sample configuration the instance is named default. Assuming your custom instance is called yourinstance the following command will do the trick:

docker run --name ldap -d -p 389:10389 -e APACHEDS_INSTANCE=yourinstance -v /path/to/your/config.ldif:/bootstrap/conf/config.ldif:ro openmicroscopy/apacheds

It would be possible to use this ApacheDS image to provide a Kerberos server as well. Just provide your own config.ldif file for that. Don't forget to expose the right port, then.

Also other services are possible. For further information read the configuration documentation.

Docker Pull Command
Owner
openmicroscopy
Source Repository

Comments (3)
manics
2 years ago

Testing notifications...

sbesson
2 years ago

Hi,

very timely, I just merged https://github.com/openmicroscopy/apacheds-docker/pull/3 which should fix the M21 startup. The latest build has been triggered (and we should tag imminently). Could you try pulling latest once https://hub.docker.com/r/openmicroscopy/apacheds/builds/bs5jqwhlq8gz99bz8ktmfwb/ is completed and start the container again?

Best,
Sebastien

paulkeogh
2 years ago

Hi,

Followed the instructions above but stderr on container startup shows;

'/bootstrap/cache' -> '/var/lib/apacheds-2.0.0-M21/default/cache'
'/bootstrap/conf' -> '/var/lib/apacheds-2.0.0-M21/default/conf'
'/bootstrap/conf/wrapper.conf' -> '/var/lib/apacheds-2.0.0-M21/default/conf/wrapper.conf'
'/bootstrap/conf/log4j.properties' -> '/var/lib/apacheds-2.0.0-M21/default/conf/log4j.properties'
'/bootstrap/conf/config.ldif' -> '/var/lib/apacheds-2.0.0-M21/default/conf/config.ldif'
'/bootstrap/log' -> '/var/lib/apacheds-2.0.0-M21/default/log'
'/bootstrap/partitions' -> '/var/lib/apacheds-2.0.0-M21/default/partitions'
'/bootstrap/run' -> '/var/lib/apacheds-2.0.0-M21/default/run'
changed ownership of '/var/lib/apacheds-2.0.0-M21/default/cache' from root:root to apacheds:apacheds
changed ownership of '/var/lib/apacheds-2.0.0-M21/default/conf/wrapper.conf' from root:root to apacheds:apacheds
changed ownership of '/var/lib/apacheds-2.0.0-M21/default/conf/log4j.properties' from root:root to apacheds:apacheds
changed ownership of '/var/lib/apacheds-2.0.0-M21/default/conf/config.ldif' from root:root to apacheds:apacheds
changed ownership of '/var/lib/apacheds-2.0.0-M21/default/conf' from root:root to apacheds:apacheds
changed ownership of '/var/lib/apacheds-2.0.0-M21/default/log' from root:root to apacheds:apacheds
changed ownership of '/var/lib/apacheds-2.0.0-M21/default/partitions' from root:root to apacheds:apacheds
changed ownership of '/var/lib/apacheds-2.0.0-M21/default/run' from root:root to apacheds:apacheds
changed ownership of '/var/lib/apacheds-2.0.0-M21/default' from root:root to apacheds:apacheds
Running ApacheDS - default...
FATAL | wrapper | Unable to resolve the full path of the configuration file, /var/lib/apacheds-2.0.0-M21/default/conf/wrapper-instance.conf: No such file or directory