@@ -213,7 +213,7 @@ simply mount this directories as a volume to `/var/lib/ldap` and `/etc/ldap/slap
docker run \
--volume /data/slapd/database:/var/lib/ldap \
--volume /data/slapd/config:/etc/ldap/slapd.d \
--detach osixia/openldap:1.4.0
--detach osixia/openldap:1.5.0
```
You can also use data volume containers. Please refer to:
@@ -235,7 +235,7 @@ If you are looking for a simple solution to administrate your ldap server you ca
By default, TLS is already configured and enabled, certificate is created using container hostname (it can be set by docker run --hostname option eg: ldap.example.org).
```sh
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.4.0
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.5.0
```
#### Use your own certificate
@@ -249,7 +249,7 @@ docker run \
--env LDAP_TLS_CRT_FILENAME=my-ldap.crt \
--env LDAP_TLS_KEY_FILENAME=my-ldap.key \
--env LDAP_TLS_CA_CRT_FILENAME=the-ca.crt \
--detach osixia/openldap:1.4.0
--detach osixia/openldap:1.5.0
```
Other solutions are available please refer to the [Advanced User Guide](#advanced-user-guide)
@@ -257,17 +257,17 @@ Other solutions are available please refer to the [Advanced User Guide](#advance
#### Disable TLS
Add --env LDAP_TLS=false to the run command:
docker run --env LDAP_TLS=false --detach osixia/openldap:1.4.0
docker run --env LDAP_TLS=false --detach osixia/openldap:1.5.0
### Multi master replication
Quick example, with the default config.
#Create the first ldap server, save the container id in LDAP_CID and get its IP:
LDAP_CID=$(docker run --hostname ldap.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.4.0)
LDAP_CID=$(docker run --hostname ldap.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.5.0)
Take care to link your environment files folder to `/container/environment/XX-somedir` (with XX < 99 so they will be processed before default environment files) and not directly to `/container/environment` because this directory contains predefined baseimage environment files to fix container environment (INITRD, LANG, LANGUAGE and LC_CTYPE).
@@ -437,7 +437,7 @@ Note: the container will try to delete the **\*.startup.yaml** file after the en
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.