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
@@ -47,28 +47,28 @@ By default HTTPS is enable, a certificate is created with the container hostname
47
47
48
48
#### Use your own certificate
49
49
50
-
Add your custom certificate, private key and CA certificate in the directory **image/service/phpldapadmin/assets/apache2/ssl** adjust filename in **image/env.yaml** and rebuild the image ([see manual build](#manual-build)).
50
+
Add your custom certificate, private key and CA certificate in the directory **image/service/phpldapadmin/assets/apache2/certs** adjust filename in **image/env.yaml** and rebuild the image ([see manual build](#manual-build)).
51
51
52
-
Or you can set your custom certificate at run time, by mouting your a directory containing thoses files to **/container/service/phpldapadmin/assets/apache2/ssl** and adjust there name with the following environment variables :
52
+
Or you can set your custom certificate at run time, by mouting your a directory containing thoses files to **/container/service/phpldapadmin/assets/apache2/certs** and adjust there name with the following environment variables :
53
53
54
-
docker run -v /path/to/certifates:/container/service/phpldapadmin/assets/apache2/ssl \
55
-
-e SSL_CRT_FILENAME=my-phpldapadmin.crt \
56
-
-e SSL_KEY_FILENAME=my-phpldapadmin.key \
57
-
-e SSL_CA_CRT_FILENAME=the-ca.crt \
54
+
docker run -v /path/to/certifates:/container/service/phpldapadmin/assets/apache2/certs \
Ommit the -e SSL_CA_CRT_FILENAME variable for self signed certificates
60
+
Ommit the -e PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME variable for self signed certificates
61
61
62
62
#### Disable HTTPS
63
-
Add -e HTTPS=false to the run command :
63
+
Add -e PHPLDAPADMIN_HTTPS=false to the run command :
64
64
65
-
docker run -e HTTPS=false -d osixia/phpldapadmin
65
+
docker run -e PHPLDAPADMIN_HTTPS=false -d osixia/phpldapadmin
66
66
67
67
## Environment Variables
68
68
69
69
Environement variables defaults are set in **image/env.yaml**. You can modify environment variable values directly in this file and rebuild the image ([see manual build](#manual-build)). You can also override those values at run time with -e argument or by setting your own env.yaml file as a docker volume to `/etc/env.yaml`. See examples below.
70
70
71
-
-**LDAP_HOSTS**: Set phpLDAPadmin server config. Defaults to :
71
+
-**PHPLDAPADMIN_LDAP_HOSTS**: Set phpLDAPadmin server config. Defaults to :
72
72
73
73
- ldap.example.org:
74
74
- server:
@@ -94,35 +94,35 @@ Environement variables defaults are set in **image/env.yaml**. You can modify en
94
94
95
95
If you want to set this variable at docker run command convert the yaml in python :
-**SERVER_ADMIN**: Server admin email. Defaults to `[email protected]`
103
+
-**PHPLDAPADMIN_SERVER_ADMIN**: Server admin email. Defaults to `[email protected]`
104
104
105
-
HTTPS options :
106
-
-**HTTPS**: Use apache ssl config. Defaults to `true`
107
-
-**SSL_CRT_FILENAME**: Apache ssl certificate filename. Defaults to `phpldapadmin.crt`
108
-
-**SSL_KEY_FILENAME**: Apache ssl certificate private key filename. Defaults to `phpldapadmin.key`
109
-
-**SSL_CA_CRT_FILENAME**: Apache ssl CA certificate filename. Defaults to `ca.crt`
105
+
PHPLDAPADMIN_HTTPS options :
106
+
-**PHPLDAPADMIN_HTTPS**: Use apache ssl config. Defaults to `true`
107
+
-**PHPLDAPADMIN_HTTPS_CRT_FILENAME**: Apache ssl certificate filename. Defaults to `phpldapadmin.crt`
108
+
-**PHPLDAPADMIN_HTTPS_KEY_FILENAME**: Apache ssl certificate private key filename. Defaults to `phpldapadmin.key`
109
+
-**PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME**: Apache ssl CA certificate filename. Defaults to `ca.crt`
110
110
111
111
Ldap client TLS/LDAPS options :
112
112
113
-
-**USE_LDAP_CLIENT_SSL**: Enable ldap client tls config, ldap serveur certificate check and set client certificate. Defaults to `true`
114
-
-**LDAP_REQCERT**: Set ldap.conf TLS_REQCERT. Defaults to `demand`
115
-
-**LDAP_CA_CRT_FILENAME**: Set ldap.conf TLS_CACERT to /container/service/phpldapadmin/ssl/$LDAP_CA_CRT_FILENAME. Defaults to `ldap-ca.crt`
116
-
-**LDAP_CRT_FILENAME**: Set .ldaprc TLS_CERT to /container/service/phpldapadmin/ssl/$LDAP_CRT_FILENAME. Defaults to `ldap-client.crt`
117
-
-**LDAP_KEY_FILENAME**: Set .ldaprc TLS_KEY to /container/service/phpldapadmin/ssl/$LDAP_KEY_FILENAME. Defaults to `ldap-client.key`
113
+
-**PHPLDAPADMIN_LDAP_CLIENT_TLS**: Enable ldap client tls config, ldap serveur certificate check and set client certificate. Defaults to `true`
114
+
-**PHPLDAPADMIN_LDAP_CLIENT_TLS_REQCERT**: Set ldap.conf TLS_REQCERT. Defaults to `demand`
115
+
-**PHPLDAPADMIN_LDAP_CLIENT_TLS_CA_CRT_FILENAME**: Set ldap.conf TLS_CACERT to /container/service/phpldapadmin/assets/ldap-client/certs/$PHPLDAPADMIN_LDAP_CLIENT_TLS_CA_CRT_FILENAME. Defaults to `ldap-ca.crt`
116
+
-**PHPLDAPADMIN_LDAP_CLIENT_TLS_CRT_FILENAME**: Set .ldaprc TLS_CERT to /container/service/phpldapadmin/assets/ldap-client/certs/$PHPLDAPADMIN_LDAP_CLIENT_TLS_CRT_FILENAME. Defaults to `ldap-client.crt`
117
+
-**PHPLDAPADMIN_LDAP_CLIENT_TLS_KEY_FILENAME**: Set .ldaprc TLS_KEY to /container/service/phpldapadmin/assets/ldap-client/certs/$PHPLDAPADMIN_LDAP_CLIENT_TLS_KEY_FILENAME. Defaults to `ldap-client.key`
118
118
119
119
More information at : http://www.openldap.org/doc/admin24/tls.html (16.2.2. Client Configuration)
120
120
121
121
### Set environment variables at run time :
122
122
123
123
Environment variable can be set directly by adding the -e argument in the command line, for example :
124
124
125
-
docker run -h phpldapadmin.example.org -e LDAP_HOSTS="ldap.example.org" \
125
+
docker run -h phpldapadmin.example.org -e PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \
126
126
-d osixia/phpldapadmin
127
127
128
128
Or by setting your own `env.yaml` file as a docker volume to `/etc/env.yaml`
0 commit comments