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
/!\ Security warning: Databases created with image version up to 1.1.10 creates two admin users with the same password, if you changed admin password after bootstrap you may be concerned by [issue #161](https://github.com/osixia/docker-openldap/issues/161).
The directories `/var/lib/ldap` (LDAP database files) and `/etc/ldap/slapd.d` (LDAP config files) are used to persist the schema and data information, and should be mapped as volumes, so your ldap files are saved outside the container (see [Use an existing ldap database](#use-an-existing-ldap-database)). However it can be useful to not use volumes,
96
99
in case the image should be delivered complete with test data - this is especially useful when deriving other images from this one.
97
100
101
+
The default uid and gid used by the image may map to surprising
102
+
counterparts in the host. If you need to match uid and gid in the
103
+
container and in the host, you can use build parameters
104
+
`LDAP_OPENLDAP_UID` and `LDAP_OPENLDAP_GID` to set uid and gid
@@ -158,7 +172,7 @@ If you are looking for a simple solution to administrate your ldap server you ca
158
172
#### Use auto-generated certificate
159
173
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).
160
174
161
-
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.1.9
175
+
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.1.10
162
176
163
177
#### Use your own certificate
164
178
@@ -168,24 +182,24 @@ You can set your custom certificate at run time, by mounting a directory contain
168
182
--env LDAP_TLS_CRT_FILENAME=my-ldap.crt \
169
183
--env LDAP_TLS_KEY_FILENAME=my-ldap.key \
170
184
--env LDAP_TLS_CA_CRT_FILENAME=the-ca.crt \
171
-
--detach osixia/openldap:1.1.9
185
+
--detach osixia/openldap:1.1.10
172
186
173
187
Other solutions are available please refer to the [Advanced User Guide](#advanced-user-guide)
174
188
175
189
#### Disable TLS
176
190
Add --env LDAP_TLS=false to the run command:
177
191
178
-
docker run --env LDAP_TLS=false --detach osixia/openldap:1.1.9
192
+
docker run --env LDAP_TLS=false --detach osixia/openldap:1.1.10
179
193
180
194
### Multi master replication
181
195
Quick example, with the default config.
182
196
183
197
#Create the first ldap server, save the container id in LDAP_CID and get its IP:
184
-
LDAP_CID=$(docker run --hostname ldap.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.1.9)
198
+
LDAP_CID=$(docker run --hostname ldap.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.1.10)
Be aware that environment variable added in command line will be available at any time
325
339
in the container. In this example if someone manage to open a terminal in this container
@@ -330,28 +344,28 @@ he will be able to read the admin password in clear text from environment variab
330
344
For example if your environment files **my-env.yaml** and **my-env.startup.yaml** are in /data/ldap/environment
331
345
332
346
docker run --volume /data/ldap/environment:/container/environment/01-custom \
333
-
--detach osixia/openldap:1.1.9
347
+
--detach osixia/openldap:1.1.10
334
348
335
349
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).
336
350
337
351
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**:
338
352
339
353
docker run --volume /data/ldap/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
340
-
--detach osixia/openldap:1.1.9
354
+
--detach osixia/openldap:1.1.10
341
355
342
356
#### Make your own image or extend this image
343
357
344
358
This is the best solution if you have a private registry. Please refer to the [Advanced User Guide](#advanced-user-guide) just below.
345
359
346
360
## Advanced User Guide
347
361
348
-
### Extend osixia/openldap:1.1.9 image
362
+
### Extend osixia/openldap:1.1.10 image
349
363
350
364
If you need to add your custom TLS certificate, bootstrap config or environment files the easiest way is to extends this image.
0 commit comments