Skip to content

Commit a28018d

Browse files
committed
Merge branch 'hotfix-0.6.9' into stable
2 parents c6fa57f + a27dee8 commit a28018d

File tree

6 files changed

+36
-22
lines changed

6 files changed

+36
-22
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+
## 0.6.9
4+
- Upgrade baseimage: web-baseimage:0.1.10
5+
36
## 0.6.8
47
- Upgrade baseimage: web-baseimage:0.1.9
58

Makefile

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

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

README.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
[![Docker Pulls](https://img.shields.io/docker/pulls/osixia/phpldapadmin.svg)][hub]
44
[![Docker Stars](https://img.shields.io/docker/stars/osixia/phpldapadmin.svg)][hub]
5-
[![Image Size](https://img.shields.io/imagelayers/image-size/osixia/phpldapadmin/latest.svg)](https://imagelayers.io/?images=osixia/phpldapadmin:latest)
6-
[![Image Layers](https://img.shields.io/imagelayers/layers/osixia/phpldapadmin/latest.svg)](https://imagelayers.io/?images=osixia/phpldapadmin:latest)
75

86
[hub]: https://hub.docker.com/r/osixia/phpldapadmin/
97

10-
Latest release: 0.6.8 - phpLDAPadlin 1.2.3 (with php5.5 patch) - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/) 
8+
Latest release: 0.6.9 - phpLDAPadlin 1.2.3 (with php5.5 patch) - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/) 
119

1210
A docker image to run phpLDAPadmin.
1311
> [phpldapadmin.sourceforge.net](http://phpldapadmin.sourceforge.net)
@@ -28,7 +26,7 @@ A docker image to run phpLDAPadmin.
2826
- [Link environment file](#link-environment-file)
2927
- [Make your own image or extend this image](#make-your-own image-or-extend-this-image)
3028
- [Advanced User Guide](#advanced-user-guide)
31-
- [Extend osixia/phpldapadmin:0.6.8 image](#extend-osixiaphpldapadmin068-image)
29+
- [Extend osixia/phpldapadmin:0.6.9 image](#extend-osixiaphpldapadmin069-image)
3230
- [Make your own phpLDAPadmin image](#make-your-own-phpldapadmin-image)
3331
- [Tests](#tests)
3432
- [Kubernetes](#kubernetes)
@@ -41,7 +39,7 @@ Run a phpLDAPadmin docker image by replacing `ldap.example.com` with your ldap h
4139

4240
docker run -p 6443:443 \
4341
--env PHPLDAPADMIN_LDAP_HOSTS=ldap.example.com \
44-
--detach osixia/phpldapadmin:0.6.8
42+
--detach osixia/phpldapadmin:0.6.9
4543

4644
That's it :) you can access phpLDAPadmin on [https://localhost:6443](https://localhost:6443)
4745

@@ -52,7 +50,7 @@ Example script:
5250
#!/bin/bash -e
5351
docker run --name ldap-service --hostname ldap-service --detach osixia/openldap:1.1.1
5452

55-
docker run --name phpldapadmin-service --hostname phpldapadmin-service --link ldap-service:ldap-host --env PHPLDAPADMIN_LDAP_HOSTS=ldap-host --detach osixia/phpldapadmin:0.6.8
53+
docker run --name phpldapadmin-service --hostname phpldapadmin-service --link ldap-service:ldap-host --env PHPLDAPADMIN_LDAP_HOSTS=ldap-host --detach osixia/phpldapadmin:0.6.9
5654

5755
PHPLDAP_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" phpldapadmin-service)
5856

@@ -69,7 +67,7 @@ but setting your own config.php is possible. 2 options:
6967

7068
- Link your config file at run time to `/container/service/phpldapadmin/assets/config.php` :
7169

72-
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.8
70+
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.9
7371

7472
- Add your config file by extending or cloning this image, please refer to the [Advanced User Guide](#advanced-user-guide)
7573

@@ -78,7 +76,7 @@ but setting your own config.php is possible. 2 options:
7876
#### Use autogenerated certificate
7977
By default HTTPS is enable, a certificate is created with the container hostname (it can be set by docker run --hostname option eg: phpldapadmin.my-company.com).
8078

81-
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.6.8
79+
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.6.9
8280

8381
#### Use your own certificate
8482

@@ -88,22 +86,22 @@ You can set your custom certificate at run time, by mounting a directory contain
8886
--env PHPLDAPADMIN_HTTPS_CRT_FILENAME=my-cert.crt \
8987
--env PHPLDAPADMIN_HTTPS_KEY_FILENAME=my-cert.key \
9088
--env PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME=the-ca.crt \
91-
--detach osixia/phpldapadmin:0.6.8
89+
--detach osixia/phpldapadmin:0.6.9
9290

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

9593
#### Disable HTTPS
9694
Add --env PHPLDAPADMIN_HTTPS=false to the run command :
9795

98-
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.6.8
96+
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.6.9
9997

10098
### Fix docker mounted file problems
10199

102100
You may have some problems with mounted files on some systems. The startup script try to make some file adjustment and fix files owner and permissions, this can result in multiple errors. See [Docker documentation](https://docs.docker.com/v1.4/userguide/dockervolumes/#mount-a-host-file-as-a-data-volume).
103101

104102
To fix that run the container with `--copy-service` argument :
105103

106-
docker run [your options] osixia/phpldapadmin:0.6.8 --copy-service
104+
docker run [your options] osixia/phpldapadmin:0.6.9 --copy-service
107105

108106
### Debug
109107

@@ -112,11 +110,11 @@ Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`.
112110

113111
Example command to run the container in `debug` mode:
114112

115-
docker run --detach osixia/phpldapadmin:0.6.8 --loglevel debug
113+
docker run --detach osixia/phpldapadmin:0.6.9 --loglevel debug
116114

117115
See all command line options:
118116

119-
docker run osixia/phpldapadmin:0.6.8 --help
117+
docker run osixia/phpldapadmin:0.6.9 --help
120118

121119
## Environment Variables
122120

@@ -169,7 +167,7 @@ See how to [set your own environment variables](#set-your-own-environment-variab
169167
170168
If you want to set this variable at docker run command add the tag `#PYTHON2BASH:` and convert the yaml in python:
171169

172-
docker run --env PHPLDAPADMIN_LDAP_HOSTS="#PYTHON2BASH:[{'ldap.example.org': [{'server': [{'tls': True}]},{'login': [{'bind_id': 'cn=admin,dc=example,dc=org'}]}]}, 'ldap2.example.org', 'ldap3.example.org']" --detach osixia/phpldapadmin:0.6.8
170+
docker run --env PHPLDAPADMIN_LDAP_HOSTS="#PYTHON2BASH:[{'ldap.example.org': [{'server': [{'tls': True}]},{'login': [{'bind_id': 'cn=admin,dc=example,dc=org'}]}]}, 'ldap2.example.org', 'ldap3.example.org']" --detach osixia/phpldapadmin:0.6.9
173171

174172
To convert yaml to python online: http://yaml-online-parser.appspot.com/
175173

@@ -182,6 +180,9 @@ HTTPS :
182180
- **PHPLDAPADMIN_HTTPS_KEY_FILENAME**: Apache ssl certificate private key filename. Defaults to `phpldapadmin.key`
183181
- **PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME**: Apache ssl CA certificate filename. Defaults to `ca.crt`
184182

183+
Reverse proxy HTTPS :
184+
- **PHPLDAPADMIN_TRUST_PROXY_SSL**: Set to `true` to trust X-Forwarded-Proto header
185+
185186
Ldap client TLS/LDAPS :
186187

187188
- **PHPLDAPADMIN_LDAP_CLIENT_TLS**: Enable ldap client tls config, ldap serveur certificate check and set client certificate. Defaults to `true`
@@ -202,14 +203,14 @@ Other environment variables:
202203
Environment variables can be set by adding the --env argument in the command line, for example:
203204

204205
docker run --env PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \
205-
--detach osixia/phpldapadmin:0.6.8
206+
--detach osixia/phpldapadmin:0.6.9
206207

207208
#### Link environment file
208209

209210
For example if your environment file is in : /data/environment/my-env.yaml
210211

211212
docker run --volume /data/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
212-
--detach osixia/phpldapadmin:0.6.8
213+
--detach osixia/phpldapadmin:0.6.9
213214

214215
Take care to link your environment file 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).
215216

@@ -219,13 +220,13 @@ This is the best solution if you have a private registry. Please refer to the [A
219220

220221
## Advanced User Guide
221222

222-
### Extend osixia/phpldapadmin:0.6.8 image
223+
### Extend osixia/phpldapadmin:0.6.9 image
223224

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

226227
Dockerfile example:
227228

228-
FROM osixia/phpldapadmin:0.6.8
229+
FROM osixia/phpldapadmin:0.6.9
229230
MAINTAINER Your Name <[email protected]>
230231

231232
ADD https-certs /container/service/phpldapadmin/assets/apache2/certs
@@ -234,6 +235,9 @@ Dockerfile example:
234235
ADD environment /container/environment/01-custom
235236

236237

238+
Warning: if you want to install new packages from debian repositories, this image has a configuration to prevent documentation and locales to be installed. If you need documentation and locales remove the following files :
239+
**/etc/dpkg/dpkg.cfg.d/01_nodoc** and **/etc/dpkg/dpkg.cfg.d/01_nolocales**
240+
237241
### Make your own phpLDAPadmin image
238242

239243
Clone this project :
@@ -244,7 +248,7 @@ Clone this project :
244248
Adapt Makefile, set your image NAME and VERSION, for example :
245249

246250
NAME = osixia/phpldapadmin
247-
VERSION = 0.6.8
251+
VERSION = 0.6.9
248252

249253
becomes :
250254
NAME = billy-the-king/phpldapadmin

example/kubernetes/phpldapadmin-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: phpldapadmin
18-
image: osixia/phpldapadmin:0.6.8
18+
image: osixia/phpldapadmin:0.6.9
1919
volumeMounts:
2020
- name: phpldapadmin-certs
2121
mountPath: /container/service/phpldapadmin/assets/apache2/certs

image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM osixia/web-baseimage:0.1.9
1+
FROM osixia/web-baseimage:0.1.10
22
MAINTAINER Bertrand Gouny <[email protected]>
33

44
# phpLDAPadmin version

image/service/phpldapadmin/startup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ else
3131
ln -sf ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/apache2/http.conf /etc/apache2/sites-available/phpldapadmin.conf
3232
fi
3333

34+
#
35+
# Reverse proxy config
36+
#
37+
if [ "${PHPLDAPADMIN_TRUST_PROXY_SSL,,}" == "true" ]; then
38+
echo 'SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on' > /etc/apache2/mods-enabled/remoteip_ssl.conf
39+
fi
40+
3441
a2ensite phpldapadmin | log-helper debug
3542

3643
#

0 commit comments

Comments
 (0)