Skip to content

Commit cda21b8

Browse files
committed
update status
1 parent 09f0fe0 commit cda21b8

File tree

6 files changed

+27
-24
lines changed

6 files changed

+27
-24
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 1.1.2
4+
Merge pull request Honor LDAP_LOG_LEVEL on startup #39
5+
36
## 1.1.1
47
Update to light-baseimage:0.2.2
58

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.1.1
2+
VERSION = 1.1.2
33

44
.PHONY: all build build-nocache test tag_latest release
55

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[hub]: https://hub.docker.com/r/osixia/openldap/
99

10-
Latest release: 1.1.1 - OpenLDAP 2.4.40 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/openldap/) 
10+
Latest release: 1.1.2 - OpenLDAP 2.4.40 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/openldap/) 
1111

1212
A docker image to run OpenLDAP.
1313

@@ -37,7 +37,7 @@ A docker image to run OpenLDAP.
3737
- [Link environment file](#link-environment-file)
3838
- [Make your own image or extend this image](#make-your-own-image-or-extend-this-image)
3939
- [Advanced User Guide](#advanced-user-guide)
40-
- [Extend osixia/openldap:1.1.1 image](#extend-osixiaopenldap111-image)
40+
- [Extend osixia/openldap:1.1.2 image](#extend-osixiaopenldap112-image)
4141
- [Make your own openldap image](#make-your-own-openldap-image)
4242
- [Tests](#tests)
4343
- [Kubernetes](#kubernetes)
@@ -55,7 +55,7 @@ If you find this image useful here's how you can help:
5555
## Quick Start
5656
Run OpenLDAP docker image:
5757

58-
docker run --name my-openldap-container --detach osixia/openldap:1.1.1
58+
docker run --name my-openldap-container --detach osixia/openldap:1.1.2
5959

6060
This start a new container with OpenLDAP running inside. Let's make the first search in our LDAP container:
6161

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

9393
docker run --env LDAP_ORGANISATION="My Company" --env LDAP_DOMAIN="my-company.com" \
94-
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.1.1
94+
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.1.2
9595

9696
#### Data persistence
9797

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

116116
docker run --volume /data/slapd/database:/var/lib/ldap \
117117
--volume /data/slapd/config:/etc/ldap/slapd.d
118-
--detach osixia/openldap:1.1.1
118+
--detach osixia/openldap:1.1.2
119119

120120
You can also use data volume containers. Please refer to:
121121
> [https://docs.docker.com/userguide/dockervolumes/](https://docs.docker.com/userguide/dockervolumes/)
@@ -133,7 +133,7 @@ If you are looking for a simple solution to administrate your ldap server you ca
133133
#### Use auto-generated certificate
134134
By default TLS is enable, a certificate is created with the container hostname (it can be set by docker run --hostname option eg: ldap.example.org).
135135

136-
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.1.1
136+
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.1.2
137137

138138
#### Use your own certificate
139139

@@ -143,24 +143,24 @@ You can set your custom certificate at run time, by mounting a directory contain
143143
--env LDAP_TLS_CRT_FILENAME=my-ldap.crt \
144144
--env LDAP_TLS_KEY_FILENAME=my-ldap.key \
145145
--env LDAP_TLS_CA_CRT_FILENAME=the-ca.crt \
146-
--detach osixia/openldap:1.1.1
146+
--detach osixia/openldap:1.1.2
147147

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

150150
#### Disable TLS
151151
Add --env LDAP_TLS=false to the run command:
152152

153-
docker run --env LDAP_TLS=false --detach osixia/openldap:1.1.1
153+
docker run --env LDAP_TLS=false --detach osixia/openldap:1.1.2
154154

155155
### Multi master replication
156156
Quick example, with the default config.
157157

158158
#Create the first ldap server, save the container id in LDAP_CID and get its IP:
159-
LDAP_CID=$(docker run --hostname ldap.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.1.1)
159+
LDAP_CID=$(docker run --hostname ldap.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.1.2)
160160
LDAP_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" $LDAP_CID)
161161

162162
#Create the second ldap server, save the container id in LDAP2_CID and get its IP:
163-
LDAP2_CID=$(docker run --hostname ldap2.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.1.1)
163+
LDAP2_CID=$(docker run --hostname ldap2.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.1.2)
164164
LDAP2_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" $LDAP2_CID)
165165

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

197197
To fix that run the container with `--copy-service` argument :
198198

199-
docker run [your options] osixia/openldap:1.1.1 --copy-service
199+
docker run [your options] osixia/openldap:1.1.2 --copy-service
200200

201201
### Debug
202202

@@ -205,11 +205,11 @@ Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`.
205205

206206
Example command to run the container in `debug` mode:
207207

208-
docker run --detach osixia/openldap:1.1.1 --loglevel debug
208+
docker run --detach osixia/openldap:1.1.2 --loglevel debug
209209

210210
See all command line options:
211211

212-
docker run osixia/openldap:1.1.1 --help
212+
docker run osixia/openldap:1.1.2 --help
213213

214214

215215
## Environment Variables
@@ -267,7 +267,7 @@ Replication options:
267267

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

270-
docker run --env LDAP_REPLICATION_HOSTS="#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']" --detach osixia/openldap:1.1.1
270+
docker run --env LDAP_REPLICATION_HOSTS="#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']" --detach osixia/openldap:1.1.2
271271

272272
To convert yaml to python online: http://yaml-online-parser.appspot.com/
273273

@@ -282,7 +282,7 @@ Other environment variables:
282282
Environment variables can be set by adding the --env argument in the command line, for example:
283283

284284
docker run --env LDAP_ORGANISATION="My company" --env LDAP_DOMAIN="my-company.com" \
285-
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.1.1
285+
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.1.2
286286

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

295295
docker run --volume /data/ldap/environment:/container/environment/01-custom \
296-
--detach osixia/openldap:1.1.1
296+
--detach osixia/openldap:1.1.2
297297

298298
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).
299299

300300
Note: the container will try to delete the **\*.yaml.startup** 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 **\*.yaml.startup**:
301301

302302
docker run --volume /data/ldap/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
303-
--detach osixia/openldap:1.1.1
303+
--detach osixia/openldap:1.1.2
304304

305305
#### Make your own image or extend this image
306306

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

309309
## Advanced User Guide
310310

311-
### Extend osixia/openldap:1.1.1 image
311+
### Extend osixia/openldap:1.1.2 image
312312

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

315315
Dockerfile example:
316316

317-
FROM osixia/openldap:1.1.1
317+
FROM osixia/openldap:1.1.2
318318
MAINTAINER Your Name <[email protected]>
319319

320320
ADD bootstrap /container/service/slapd/assets/config/bootstrap
@@ -333,7 +333,7 @@ Clone this project:
333333
Adapt Makefile, set your image NAME and VERSION, for example:
334334

335335
NAME = osixia/openldap
336-
VERSION = 1.1.1
336+
VERSION = 1.1.2
337337

338338
become:
339339
NAME = cool-guy/openldap

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.1.1
1+
FROM osixia/openldap:1.1.2
22
MAINTAINER Your Name <[email protected]>
33

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

example/kubernetes/simple/ldap-rc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: ldap
18-
image: osixia/openldap:1.1.1
18+
image: osixia/openldap:1.1.2
1919
volumeMounts:
2020
- name: ldap-data
2121
mountPath: /var/lib/ldap

example/kubernetes/using-secrets/ldap-rc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: ldap
18-
image: osixia/openldap:1.1.1
18+
image: osixia/openldap:1.1.2
1919
command:
2020
- --copy-service
2121
volumeMounts:

0 commit comments

Comments
 (0)