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
Run docker container with your custom environment variables :
9
+
Run a phpLDAPadmin docker image by replacing `ldap.example.com` with your ldap host or IP :
9
10
10
11
sudo docker run -p 443:443 \
11
-
-e LDAP_HOST=ldap.example.com \
12
-
-e LDAP_BASE_DN=dc=example,dc=com \
13
-
-e LDAP_LOGIN_DN=cn=admin,dc=example,dc=com \
12
+
-e LDAP_HOSTS=ldap.example.com \
14
13
-d osixia/phpldapadmin
15
14
16
-
phpLDAPadmin should be running on https://localhost
15
+
That's it :) you can access phpLDAPadmin on **https://localhost**
16
+
17
+
18
+
## Examples
19
+
20
+
### OpenLDAP & phpLDAPadmin in 1''
17
21
18
22
19
23
### Whant more ? Openldap & phpLDAPadmin in 2''
@@ -31,17 +35,65 @@ to be completed :)
31
35
32
36
### Get phpLDAPadmin using TLS
33
37
38
+
### HTTPS
39
+
40
+
#### Use autogenerated certificate
41
+
By default HTTPS is enable, a certificate is created for the CN (common name) example.org. To work properly on your server adjust SERVER_NAME environment variable to match the phpLDAPadmin server CN.
42
+
43
+
docker run -e SERVER_NAME=phpldapadmin.my-compagny.com -d osixia/phpldapadmin
44
+
45
+
#### Use your own certificate
46
+
47
+
Add your custom certificate, private key and CA certificate in the directory **image/service/phpldapadmin/assets/apache2/ssl** adjust filename in **image/env.yml** and rebuild the image ([see manual build](#manual-build)).
48
+
49
+
Or you can set your custom certificate at run time, by mouting your a directory containing thoses files to **/osixia/phpldapadmin/apache2/ssl** and adjust there name with the following environment variables :
50
+
51
+
docker run -v /path/to/certifates:/osixia/phpldapadmin/apache2/ssl \
52
+
-e SSL_CRT_FILENAME=my-phpldapadmin.crt \
53
+
-e SSL_KEY_FILENAME=my-phpldapadmin.key \
54
+
-e SSL_CA_CRT_FILENAME=the-ca.crt \
55
+
-d osixia/phpldapadmin
56
+
57
+
Ommit the -e SSL_CA_CRT_FILENAME variable for self signed certificates
0 commit comments