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
@@ -66,7 +68,7 @@ but setting your own config.php is possible. 2 options:
66
68
67
69
- Link your config file at run time to `/container/service/phpldapadmin/assets/config/config.php` :
68
70
69
-
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config/config.php --detach osixia/phpldapadmin:0.7.1
71
+
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config/config.php --detach osixia/phpldapadmin:0.7.2
70
72
71
73
- Add your config file by extending or cloning this image, please refer to the [Advanced User Guide](#advanced-user-guide)
72
74
@@ -75,7 +77,7 @@ but setting your own config.php is possible. 2 options:
75
77
#### Use autogenerated certificate
76
78
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).
77
79
78
-
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.7.1
80
+
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.7.2
79
81
80
82
#### Use your own certificate
81
83
@@ -85,22 +87,22 @@ You can set your custom certificate at run time, by mounting a directory contain
Other solutions are available please refer to the [Advanced User Guide](#advanced-user-guide)
91
93
92
94
#### Disable HTTPS
93
95
Add --env PHPLDAPADMIN_HTTPS=false to the run command :
94
96
95
-
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.7.1
97
+
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.7.2
96
98
97
99
### Fix docker mounted file problems
98
100
99
101
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).
100
102
101
103
To fix that run the container with `--copy-service` argument :
102
104
103
-
docker run [your options] osixia/phpldapadmin:0.7.1 --copy-service
105
+
docker run [your options] osixia/phpldapadmin:0.7.2 --copy-service
104
106
105
107
### Debug
106
108
@@ -109,11 +111,11 @@ Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`.
109
111
110
112
Example command to run the container in `debug` mode:
111
113
112
-
docker run --detach osixia/phpldapadmin:0.7.1 --loglevel debug
114
+
docker run --detach osixia/phpldapadmin:0.7.2 --loglevel debug
113
115
114
116
See all command line options:
115
117
116
-
docker run osixia/phpldapadmin:0.7.1 --help
118
+
docker run osixia/phpldapadmin:0.7.2 --help
117
119
118
120
## Environment Variables
119
121
@@ -166,10 +168,20 @@ See how to [set your own environment variables](#set-your-own-environment-variab
166
168
167
169
If you want to set this variable at docker run command add the tag `#PYTHON2BASH:` and convert the yaml in python:
To convert yaml to python online: http://yaml-online-parser.appspot.com/
172
174
175
+
If you would like to skip the display name == hostname element of the above use the **PHPLDAPADMIN_LDAP_HOSTS_FRIENDLY** environmental variable. This then uses the top most name as the display name of the server. You will then need to add host to the yaml within the server section. Note this is a global setting, if you do it for one server, you must do it for all. eg
176
+
```yaml
177
+
- Primary:
178
+
- server:
179
+
- host: ldap-master.example.org
180
+
- Backup:
181
+
- server:
182
+
- host: 192.168.0.100
183
+
```
184
+
173
185
Apache :
174
186
- **PHPLDAPADMIN_SERVER_ADMIN**: Server admin email. Defaults to `[email protected]`
175
187
- **PHPLDAPADMIN_SERVER_PATH**: Server path (usefull if behind a reverse proxy). Defaults to `/phpldapadmin`
@@ -203,14 +215,14 @@ Other environment variables:
203
215
Environment variables can be set by adding the --env argument in the command line, for example:
204
216
205
217
docker run --env PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \
206
-
--detach osixia/phpldapadmin:0.7.1
218
+
--detach osixia/phpldapadmin:0.7.2
207
219
208
220
#### Link environment file
209
221
210
222
For example if your environment file is in : /data/environment/my-env.yaml
211
223
212
224
docker run --volume /data/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
213
-
--detach osixia/phpldapadmin:0.7.1
225
+
--detach osixia/phpldapadmin:0.7.2
214
226
215
227
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).
216
228
@@ -220,13 +232,13 @@ This is the best solution if you have a private registry. Please refer to the [A
220
232
221
233
## Advanced User Guide
222
234
223
-
### Extend osixia/phpldapadmin:0.7.1 image
235
+
### Extend osixia/phpldapadmin:0.7.2 image
224
236
225
237
If you need to add your custom TLS certificate, bootstrap config or environment files the easiest way is to extends this image.
@@ -289,6 +301,11 @@ A kubernetes example is available in **example/kubernetes**
289
301
This image is based on osixia/web-baseimage.
290
302
More info: https://github.com/osixia/docker-web-baseimage
291
303
304
+
## Security
305
+
If you discover a security vulnerability within this docker image, please send an email to the Osixia! team at [email protected]. For minor vulnerabilities feel free to add an issue here on github.
0 commit comments