You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -184,7 +185,7 @@ If you are looking for a simple solution to administrate your ldap server you ca
184
185
#### Use auto-generated certificate
185
186
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).
186
187
187
-
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.2.4
188
+
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.2.5
188
189
189
190
#### Use your own certificate
190
191
@@ -194,24 +195,24 @@ You can set your custom certificate at run time, by mounting a directory contain
194
195
--env LDAP_TLS_CRT_FILENAME=my-ldap.crt \
195
196
--env LDAP_TLS_KEY_FILENAME=my-ldap.key \
196
197
--env LDAP_TLS_CA_CRT_FILENAME=the-ca.crt \
197
-
--detach osixia/openldap:1.2.4
198
+
--detach osixia/openldap:1.2.5
198
199
199
200
Other solutions are available please refer to the [Advanced User Guide](#advanced-user-guide)
200
201
201
202
#### Disable TLS
202
203
Add --env LDAP_TLS=false to the run command:
203
204
204
-
docker run --env LDAP_TLS=false --detach osixia/openldap:1.2.4
205
+
docker run --env LDAP_TLS=false --detach osixia/openldap:1.2.5
205
206
206
207
### Multi master replication
207
208
Quick example, with the default config.
208
209
209
210
#Create the first ldap server, save the container id in LDAP_CID and get its IP:
210
-
LDAP_CID=$(docker run --hostname ldap.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.2.4)
211
+
LDAP_CID=$(docker run --hostname ldap.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.2.5)
#Add the pair "ip hostname" to /etc/hosts on each containers,
@@ -247,7 +248,7 @@ You may have some problems with mounted files on some systems. The startup scrip
247
248
248
249
To fix that run the container with `--copy-service` argument :
249
250
250
-
docker run [your options] osixia/openldap:1.2.4 --copy-service
251
+
docker run [your options] osixia/openldap:1.2.5 --copy-service
251
252
252
253
### Debug
253
254
@@ -256,11 +257,11 @@ Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`.
256
257
257
258
Example command to run the container in `debug` mode:
258
259
259
-
docker run --detach osixia/openldap:1.2.4 --loglevel debug
260
+
docker run --detach osixia/openldap:1.2.5 --loglevel debug
260
261
261
262
See all command line options:
262
263
263
-
docker run osixia/openldap:1.2.4 --help
264
+
docker run osixia/openldap:1.2.5 --help
264
265
265
266
266
267
## Environment Variables
@@ -326,7 +327,7 @@ Replication options:
326
327
327
328
If you want to set this variable at docker run command add the tag `#PYTHON2BASH:` and convert the yaml in python:
328
329
329
-
docker run --env LDAP_REPLICATION_HOSTS="#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']" --detach osixia/openldap:1.2.4
330
+
docker run --env LDAP_REPLICATION_HOSTS="#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']" --detach osixia/openldap:1.2.5
330
331
331
332
To convert yaml to python online: http://yaml-online-parser.appspot.com/
332
333
@@ -338,6 +339,7 @@ Other environment variables:
338
339
-**LDAP_REMOVE_CONFIG_AFTER_SETUP**: delete config folder after setup. Defaults to `true`
339
340
-**LDAP_SSL_HELPER_PREFIX**: ssl-helper environment variables prefix. Defaults to `ldap`, ssl-helper first search config from LDAP_SSL_HELPER_* variables, before SSL_HELPER_* variables.
340
341
-**HOSTNAME**: set the hostname of the running openldap server. Defaults to whatever docker creates.
342
+
-**DISABLE_CHOWN**: do not perform any chown to fix file ownership. Defaults to `false`
341
343
342
344
343
345
### Set your own environment variables
@@ -346,7 +348,7 @@ Other environment variables:
346
348
Environment variables can be set by adding the --env argument in the command line, for example:
347
349
348
350
docker run --env LDAP_ORGANISATION="My company" --env LDAP_DOMAIN="my-company.com" \
Be aware that environment variable added in command line will be available at any time
352
354
in the container. In this example if someone manage to open a terminal in this container
@@ -357,28 +359,39 @@ he will be able to read the admin password in clear text from environment variab
357
359
For example if your environment files **my-env.yaml** and **my-env.startup.yaml** are in /data/ldap/environment
358
360
359
361
docker run --volume /data/ldap/environment:/container/environment/01-custom \
360
-
--detach osixia/openldap:1.2.4
362
+
--detach osixia/openldap:1.2.5
361
363
362
364
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).
363
365
364
366
Note: the container will try to delete the **\*.startup.yaml** file after the end of startup files so the file will also be deleted on the docker host. To prevent that : use --volume /data/ldap/environment:/container/environment/01-custom**:ro** or set all variables in **\*.yaml** file and don't use **\*.startup.yaml**:
365
367
366
368
docker run --volume /data/ldap/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
367
-
--detach osixia/openldap:1.2.4
369
+
--detach osixia/openldap:1.2.5
370
+
371
+
#### Docker Secrets
372
+
373
+
As an alternative to passing sensitive information via environmental variables, _FILE may be appended to the listed variables, causing
374
+
the startup.sh script to load the values for those values from files presented in the container. This is particular usefull for loading
375
+
passwords using the [Docker secrets](https://docs.docker.com/engine/swarm/secrets/) mechanism. For example:
376
+
377
+
docker run --env LDAP_ORGANISATION="My company" --env LDAP_DOMAIN="my-company.com" \
0 commit comments