Sign inSign up

h3rucutu/apacheds

By h3rucutu

•Updated about 8 years ago

This Docker image provides an ApacheDS LDAP server.

Image
2

1.1K

h3rucutu/apacheds repository overview

⁠Supported tags

  • latest, 2.0.0-M24
  • 2.0.0-M23

⁠Introduction

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

⁠Pulling Image from DockerHub

docker pull h3rucutu/apacheds:latest

You can also specified the version:

docker pull h3rucutu/apacheds:2.0.0-M23

⁠Building Image from Source

git clone https://github.com/h3rucutu/apacheds-docker.git
cd apacheds-docker
docker build -t "h3rucutu/apacheds:latest" .

⁠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 apacheds -d -p 389:10389 h3rucutu/apacheds:latest

⁠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=example,dc=com.

An individual admin password should be set following this manual⁠.

Then you can import entries into that partition via your own ldif file. A sample.ldif⁠ file is provided with the sources:

ldapadd -v -h <your-docker-ip>:389 -c -x -D uid=admin,ou=system -w <your-admin-password> -f `pwd`/sample/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 apacheds -d -p 389:10389 -e APACHEDS_INSTANCE=yourinstance -v /path/to/your/config.ldif:/bootstrap/conf/config.ldif:ro h3rucutu/apacheds:latest

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⁠.

Tag summary

Content type

Image

Digest

Size

207.1 MB

Last updated

about 8 years ago

docker pull h3rucutu/apacheds