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
Copy file name to clipboardExpand all lines: README.md
+95-15Lines changed: 95 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
# osixia/phpldapadmin
2
2
3
+
[](https://imagelayers.io/?images=osixia/phpldapadmin:latest'Get your own badge on imagelayers.io')
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.
44
+
By default HTTPS is enable, a certificate is created with the container hostname (set by -h option eg: phpldapadmin.my-compagny.com).
26
45
27
-
docker run -e SERVER_NAME=phpldapadmin.my-compagny.com -d osixia/phpldapadmin
46
+
docker run -h phpldapadmin.my-compagny.com -d osixia/phpldapadmin
28
47
29
48
#### Use your own certificate
30
49
31
-
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)).
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)).
32
51
33
-
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 :
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 :
34
53
35
-
docker run -v /path/to/certifates:/osixia/phpldapadmin/apache2/ssl \
54
+
docker run -v /path/to/certifates:/container/service/phpldapadmin/assets/apache2/ssl \
36
55
-e SSL_CRT_FILENAME=my-phpldapadmin.crt \
37
56
-e SSL_KEY_FILENAME=my-phpldapadmin.key \
38
57
-e SSL_CA_CRT_FILENAME=the-ca.crt \
@@ -47,26 +66,90 @@ Add -e HTTPS=false to the run command :
47
66
48
67
## Environment Variables
49
68
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
+
71
+
-**LDAP_HOSTS**: Set phpLDAPadmin server config. Defaults to :
72
+
73
+
- ldap.example.org:
74
+
- server:
75
+
- tls: true
76
+
- login:
77
+
- bind_id: cn=admin,dc=example,dc=org
78
+
- ldap2.example.org
79
+
- ldap3.example.org
80
+
81
+
This will be converted in the phpldapadmin config.php file to :
0 commit comments