Skip to content

Commit d9aa29b

Browse files
committed
Merge branch 'release-1.2.3' into stable
2 parents b64aaf6 + 856bde3 commit d9aa29b

File tree

18 files changed

+211
-65
lines changed

18 files changed

+211
-65
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [1.2.3] - 2019-01-21
8+
+10M docker pulls 🎉🎉🎉 thanks to all contributors 💕
9+
10+
### Added
11+
- GCE statefulset #241
12+
- Custom dhparam.pem via environment. #254
13+
14+
### Changed
15+
- Update openldap 2.4.44 to 2.4.47 #247
16+
- Upgrade baseimage to light-baseimage:1.1.2
17+
18+
### Fixed
19+
- Ldaps port numbers in readme #281
20+
- Replication after restart container #264
21+
722
## [1.2.2] - 2018-09-04
823
### Added
924
- Environment variable LDAP_NOFILE to setup a custom ulimit value #237
@@ -214,6 +229,8 @@ Environment variable LDAP_REPLICATION_HDB_SYNCPROV changed to LDAP_REPLICATION_D
214229
## [0.10.0] - 2015-03-03
215230
New version initial release, no changelog before this sorry.
216231

232+
[1.2.3]: https://github.com/osixia/docker-openldap/compare/v1.2.2...v1.2.3
233+
[1.2.2]: https://github.com/osixia/docker-openldap/compare/v1.2.1...v1.2.2
217234
[1.2.1]: https://github.com/osixia/docker-openldap/compare/v1.2.0...v1.2.1
218235
[1.2.0]: https://github.com/osixia/docker-openldap/compare/v1.1.11...v1.2.0
219236
[1.1.11]: https://github.com/osixia/docker-openldap/compare/v1.1.10...v1.1.11

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME = osixia/openldap
2-
VERSION = 1.2.2
2+
VERSION = 1.2.3
33

44
.PHONY: build build-nocache test tag-latest push push-latest release git-tag-version
55

README.md

Lines changed: 58 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,47 @@
44
![Docker Stars](https://img.shields.io/docker/stars/osixia/openldap.svg)
55
![](https://images.microbadger.com/badges/image/osixia/openldap.svg)
66

7-
Latest release: 1.2.2 - OpenLDAP 2.4.44 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/openldap/) 
7+
Latest release: 1.2.3 - OpenLDAP 2.4.47 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/openldap/) 
88

99
**A docker image to run OpenLDAP.**
1010

1111
> OpenLDAP website : [www.openldap.org](http://www.openldap.org/)
1212
1313

14-
- [Contributing](#contributing)
15-
- [Quick Start](#quick-start)
16-
- [Beginner Guide](#beginner-guide)
17-
- [Create new ldap server](#create-new-ldap-server)
18-
- [Data persistence](#data-persistence)
19-
- [Edit your server configuration](#)
20-
- [Use an existing ldap database](#use-an-existing-ldap-database)
21-
- [Backup](#backup)
22-
- [Administrate your ldap server](#administrate-your-ldap-server)
23-
- [TLS](#tls)
24-
- [Use auto-generated certificate](#use-auto-generated-certificate)
25-
- [Use your own certificate](#use-your-own-certificate)
26-
- [Disable TLS](#disable-tls)
27-
- [Multi master replication](#multi-master-replication)
28-
- [Fix docker mounted file problems](#fix-docker-mounted-file-problems)
29-
- [Debug](#debug)
30-
- [Environment Variables](#environment-variables)
31-
- [Default.yaml](#defaultyaml)
32-
- [Default.startup.yaml](#defaultyamlstartup)
33-
- [Set your own environment variables](#set-your-own-environment-variables)
34-
- [Use command line argument](#use-command-line-argument)
35-
- [Link environment file](#link-environment-file)
36-
- [Make your own image or extend this image](#make-your-own-image-or-extend-this-image)
37-
- [Advanced User Guide](#advanced-user-guide)
38-
- [Extend osixia/openldap:1.2.2 image](#extend-osixiaopenldap122-image)
39-
- [Make your own openldap image](#make-your-own-openldap-image)
40-
- [Tests](#tests)
41-
- [Kubernetes](#kubernetes)
42-
- [Under the hood: osixia/light-baseimage](#under-the-hood-osixialight-baseimage)
43-
- [Security](#security)
44-
- [Known security issues](#known-security-issues)
45-
- [Changelog](#changelog)
14+
- [osixia/openldap](#osixiaopenldap)
15+
- [Contributing](#contributing)
16+
- [Quick Start](#quick-start)
17+
- [Beginner Guide](#beginner-guide)
18+
- [Create new ldap server](#create-new-ldap-server)
19+
- [Data persistence](#data-persistence)
20+
- [Edit your server configuration](#edit-your-server-configuration)
21+
- [Seed ldap database with ldif](#seed-ldap-database-with-ldif)
22+
- [Use an existing ldap database](#use-an-existing-ldap-database)
23+
- [Backup](#backup)
24+
- [Administrate your ldap server](#administrate-your-ldap-server)
25+
- [TLS](#tls)
26+
- [Use auto-generated certificate](#use-auto-generated-certificate)
27+
- [Use your own certificate](#use-your-own-certificate)
28+
- [Disable TLS](#disable-tls)
29+
- [Multi master replication](#multi-master-replication)
30+
- [Fix docker mounted file problems](#fix-docker-mounted-file-problems)
31+
- [Debug](#debug)
32+
- [Environment Variables](#environment-variables)
33+
- [Default.yaml](#defaultyaml)
34+
- [Default.startup.yaml](#defaultstartupyaml)
35+
- [Set your own environment variables](#set-your-own-environment-variables)
36+
- [Use command line argument](#use-command-line-argument)
37+
- [Link environment file](#link-environment-file)
38+
- [Make your own image or extend this image](#make-your-own-image-or-extend-this-image)
39+
- [Advanced User Guide](#advanced-user-guide)
40+
- [Extend osixia/openldap:1.2.3 image](#extend-osixiaopenldap123-image)
41+
- [Make your own openldap image](#make-your-own-openldap-image)
42+
- [Tests](#tests)
43+
- [Kubernetes](#kubernetes)
44+
- [Under the hood: osixia/light-baseimage](#under-the-hood-osixialight-baseimage)
45+
- [Security](#security)
46+
- [Known security issues](#known-security-issues)
47+
- [Changelog](#changelog)
4648

4749
## Contributing
4850

@@ -55,11 +57,11 @@ If you find this image useful here's how you can help:
5557
## Quick Start
5658
Run OpenLDAP docker image:
5759

58-
docker run --name my-openldap-container --detach osixia/openldap:1.2.2
60+
docker run --name my-openldap-container --detach osixia/openldap:1.2.3
5961

60-
Do not forget to add the port mapping for both port 389 and 689 if you wish to access the ldap server from another machine.
62+
Do not forget to add the port mapping for both port 389 and 636 if you wish to access the ldap server from another machine.
6163

62-
docker run -p 389:389 -p 689:689 --name my-openldap-container --detach osixia/openldap:1.2.2
64+
docker run -p 389:389 -p 636:636 --name my-openldap-container --detach osixia/openldap:1.2.3
6365

6466
Either command starts a new container with OpenLDAP running inside. Let's make the first search in our LDAP container:
6567

@@ -95,7 +97,7 @@ It will create an empty ldap for the company **Example Inc.** and the domain **e
9597
By default the admin has the password **admin**. All those default settings can be changed at the docker command line, for example:
9698

9799
docker run --env LDAP_ORGANISATION="My Company" --env LDAP_DOMAIN="my-company.com" \
98-
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.2.2
100+
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.2.3
99101

100102
#### Data persistence
101103

@@ -133,6 +135,7 @@ The startup script provides some substitutions in bootstrap ldif files. Followin
133135

134136
- `{{ LDAP_BASE_DN }}`
135137
- `{{ LDAP_BACKEND }}`
138+
- `{{ LDAP_DOMAIN }}`
136139
- `{{ LDAP_READONLY_USER_USERNAME }}`
137140
- `{{ LDAP_READONLY_USER_PASSWORD_ENCRYPTED }}`
138141

@@ -145,12 +148,12 @@ argument to entrypoint if you don't want to overwrite them.
145148
# single file example:
146149
docker run \
147150
--volume ./bootstrap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/50-bootstrap.ldif \
148-
osixia/openldap:1.2.2 --copy-service
151+
osixia/openldap:1.2.3 --copy-service
149152

150153
#directory example:
151154
docker run \
152155
--volume ./ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom \
153-
osixia/openldap:1.2.2 --copy-service
156+
osixia/openldap:1.2.3 --copy-service
154157

155158
### Use an existing ldap database
156159

@@ -161,7 +164,7 @@ simply mount this directories as a volume to `/var/lib/ldap` and `/etc/ldap/slap
161164

162165
docker run --volume /data/slapd/database:/var/lib/ldap \
163166
--volume /data/slapd/config:/etc/ldap/slapd.d \
164-
--detach osixia/openldap:1.2.2
167+
--detach osixia/openldap:1.2.3
165168

166169
You can also use data volume containers. Please refer to:
167170
> [https://docs.docker.com/engine/tutorials/dockervolumes/](https://docs.docker.com/engine/tutorials/dockervolumes/)
@@ -181,7 +184,7 @@ If you are looking for a simple solution to administrate your ldap server you ca
181184
#### Use auto-generated certificate
182185
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).
183186

184-
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.2.2
187+
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.2.3
185188

186189
#### Use your own certificate
187190

@@ -191,24 +194,24 @@ You can set your custom certificate at run time, by mounting a directory contain
191194
--env LDAP_TLS_CRT_FILENAME=my-ldap.crt \
192195
--env LDAP_TLS_KEY_FILENAME=my-ldap.key \
193196
--env LDAP_TLS_CA_CRT_FILENAME=the-ca.crt \
194-
--detach osixia/openldap:1.2.2
197+
--detach osixia/openldap:1.2.3
195198

196199
Other solutions are available please refer to the [Advanced User Guide](#advanced-user-guide)
197200

198201
#### Disable TLS
199202
Add --env LDAP_TLS=false to the run command:
200203

201-
docker run --env LDAP_TLS=false --detach osixia/openldap:1.2.2
204+
docker run --env LDAP_TLS=false --detach osixia/openldap:1.2.3
202205

203206
### Multi master replication
204207
Quick example, with the default config.
205208

206209
#Create the first ldap server, save the container id in LDAP_CID and get its IP:
207-
LDAP_CID=$(docker run --hostname ldap.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.2.2)
210+
LDAP_CID=$(docker run --hostname ldap.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.2.3)
208211
LDAP_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" $LDAP_CID)
209212

210213
#Create the second ldap server, save the container id in LDAP2_CID and get its IP:
211-
LDAP2_CID=$(docker run --hostname ldap2.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.2.2)
214+
LDAP2_CID=$(docker run --hostname ldap2.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.2.3)
212215
LDAP2_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" $LDAP2_CID)
213216

214217
#Add the pair "ip hostname" to /etc/hosts on each containers,
@@ -244,7 +247,7 @@ You may have some problems with mounted files on some systems. The startup scrip
244247

245248
To fix that run the container with `--copy-service` argument :
246249

247-
docker run [your options] osixia/openldap:1.2.2 --copy-service
250+
docker run [your options] osixia/openldap:1.2.3 --copy-service
248251

249252
### Debug
250253

@@ -253,11 +256,11 @@ Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`.
253256

254257
Example command to run the container in `debug` mode:
255258

256-
docker run --detach osixia/openldap:1.2.2 --loglevel debug
259+
docker run --detach osixia/openldap:1.2.3 --loglevel debug
257260

258261
See all command line options:
259262

260-
docker run osixia/openldap:1.2.2 --help
263+
docker run osixia/openldap:1.2.3 --help
261264

262265

263266
## Environment Variables
@@ -300,6 +303,7 @@ TLS options:
300303
- **LDAP_TLS**: Add openldap TLS capabilities. Can't be removed once set to true. Defaults to `true`.
301304
- **LDAP_TLS_CRT_FILENAME**: Ldap ssl certificate filename. Defaults to `ldap.crt`
302305
- **LDAP_TLS_KEY_FILENAME**: Ldap ssl certificate private key filename. Defaults to `ldap.key`
306+
- **LDAP_TLS_DH_PARAM_FILENAME**: Ldap ssl certificate dh param file. Defaults to `dhparam.pem`
303307
- **LDAP_TLS_CA_CRT_FILENAME**: Ldap ssl CA certificate filename. Defaults to `ca.crt`
304308
- **LDAP_TLS_ENFORCE**: Enforce TLS but except ldapi connections. Can't be disabled once set to true. Defaults to `false`.
305309
- **LDAP_TLS_CIPHER_SUITE**: TLS cipher suite. Defaults to `SECURE256:+SECURE128:-VERS-TLS-ALL:+VERS-TLS1.2:-RSA:-DHE-DSS:-CAMELLIA-128-CBC:-CAMELLIA-256-CBC`, based on Red Hat's [TLS hardening guide](https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/sec-Hardening_TLS_Configuration.html)
@@ -322,7 +326,7 @@ Replication options:
322326

323327
If you want to set this variable at docker run command add the tag `#PYTHON2BASH:` and convert the yaml in python:
324328

325-
docker run --env LDAP_REPLICATION_HOSTS="#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']" --detach osixia/openldap:1.2.2
329+
docker run --env LDAP_REPLICATION_HOSTS="#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']" --detach osixia/openldap:1.2.3
326330

327331
To convert yaml to python online: http://yaml-online-parser.appspot.com/
328332

@@ -342,7 +346,7 @@ Other environment variables:
342346
Environment variables can be set by adding the --env argument in the command line, for example:
343347

344348
docker run --env LDAP_ORGANISATION="My company" --env LDAP_DOMAIN="my-company.com" \
345-
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.2.2
349+
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.2.3
346350

347351
Be aware that environment variable added in command line will be available at any time
348352
in the container. In this example if someone manage to open a terminal in this container
@@ -353,28 +357,28 @@ he will be able to read the admin password in clear text from environment variab
353357
For example if your environment files **my-env.yaml** and **my-env.startup.yaml** are in /data/ldap/environment
354358

355359
docker run --volume /data/ldap/environment:/container/environment/01-custom \
356-
--detach osixia/openldap:1.2.2
360+
--detach osixia/openldap:1.2.3
357361

358362
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).
359363

360364
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**:
361365

362366
docker run --volume /data/ldap/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
363-
--detach osixia/openldap:1.2.2
367+
--detach osixia/openldap:1.2.3
364368

365369
#### Make your own image or extend this image
366370

367371
This is the best solution if you have a private registry. Please refer to the [Advanced User Guide](#advanced-user-guide) just below.
368372

369373
## Advanced User Guide
370374

371-
### Extend osixia/openldap:1.2.2 image
375+
### Extend osixia/openldap:1.2.3 image
372376

373377
If you need to add your custom TLS certificate, bootstrap config or environment files the easiest way is to extends this image.
374378

375379
Dockerfile example:
376380

377-
FROM osixia/openldap:1.2.2
381+
FROM osixia/openldap:1.2.3
378382
MAINTAINER Your Name <[email protected]>
379383

380384
ADD bootstrap /container/service/slapd/assets/config/bootstrap

example/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '2'
22
services:
33
openldap:
4-
image: osixia/openldap:1.2.2
4+
image: osixia/openldap:1.2.3
55
container_name: openldap
66
environment:
77
LDAP_LOG_LEVEL: "256"
@@ -18,6 +18,7 @@ services:
1818
LDAP_TLS: "true"
1919
LDAP_TLS_CRT_FILENAME: "ldap.crt"
2020
LDAP_TLS_KEY_FILENAME: "ldap.key"
21+
LDAP_TLS_DH_PARAM_FILENAME: "dhparam.pem"
2122
LDAP_TLS_CA_CRT_FILENAME: "ca.crt"
2223
LDAP_TLS_ENFORCE: "false"
2324
LDAP_TLS_CIPHER_SUITE: "SECURE256:-VERS-SSL3.0"

example/extend-osixia-openldap/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM osixia/openldap:1.2.2
1+
FROM osixia/openldap:1.2.3
22
MAINTAINER Your Name <[email protected]>
33

44
ADD bootstrap /container/service/slapd/assets/config/bootstrap

example/extend-osixia-openldap/environment/my-env.startup.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ LDAP_READONLY_USER_PASSWORD: passwr0rd!
2020
LDAP_TLS: true
2121
LDAP_TLS_CRT_FILENAME: cert.crt
2222
LDAP_TLS_KEY_FILENAME: cert.key
23+
LDAP_TLS_DH_PARAM_FILENAME: dhparam.pem
2324
LDAP_TLS_CA_CRT_FILENAME: ca.crt
2425

2526
LDAP_TLS_ENFORCE: false

example/kubernetes/simple/ldap-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
spec:
1414
containers:
1515
- name: ldap
16-
image: osixia/openldap:1.2.2
16+
image: osixia/openldap:1.2.3
1717
volumeMounts:
1818
- name: ldap-data
1919
mountPath: /var/lib/ldap
@@ -51,6 +51,8 @@ spec:
5151
value: "ldap.crt"
5252
- name: LDAP_TLS_KEY_FILENAME
5353
value: "ldap.key"
54+
- name: LDAP_TLS_DH_PARAM_FILENAME
55+
value: "dhparam.pem"
5456
- name: LDAP_TLS_CA_CRT_FILENAME
5557
value: "ca.crt"
5658
- name: LDAP_TLS_ENFORCE

example/kubernetes/using-secrets/environment/my-env.startup.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ LDAP_BACKEND: mdb
2727
LDAP_TLS: true
2828
LDAP_TLS_CRT_FILENAME: ldap.crt
2929
LDAP_TLS_KEY_FILENAME: ldap.key
30+
LDAP_TLS_DH_PARAM_FILENAME: dhparam.pem
3031
LDAP_TLS_CA_CRT_FILENAME: ca.crt
3132

3233
LDAP_TLS_ENFORCE: false

0 commit comments

Comments
 (0)