File tree Expand file tree Collapse file tree 6 files changed +28
-6
lines changed
Expand file tree Collapse file tree 6 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.0.2
4+
5+ - Add TLS environment variable :
6+ - LDAP_TLS_CIPHER_SUITE
7+ - LDAP_TLS_PROTOCOL_MIN
8+ - LDAP_TLS_VERIFY_CLIENT
9+
310## 1.0.1
11+
412 - Upgrade baseimage: osixia/light-baseimage:0.1.1
513 - Rename environment variables
614
715 - Fixes :
816 - OpenLdap container won't start when dhparam.pem is missing in bound volume #13
917
1018## 1.0.0
19+
1120 - Use light-baseimage
1221 - Improve documentation
1322
Original file line number Diff line number Diff line change 11NAME = osixia/openldap
2- VERSION = 1.0.1
2+ VERSION = 1.0.2
33
44.PHONY : all build test tag_latest release
55
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ Required and used for new ldap server only :
166166- ** LDAP_DOMAIN** : Ldap domain. Defaults to ` example.org `
167167- ** LDAP_ADMIN_PASSWORD** Ldap Admin password. Defaults to ` admin `
168168- ** LDAP_CONFIG_PASSWORD** Ldap Config password. Defaults to ` config `
169-
169+
170170- ** LDAP_READONLY_USER** Add a read only user. Defaults to ` false `
171171- ** LDAP_READONLY_USER_USERNAME** Read only user username. Defaults to ` readonly `
172172- ** LDAP_READONLY_USER_PASSWORD** Read only user password. Defaults to ` readonly `
@@ -176,6 +176,11 @@ TLS options :
176176- ** LDAP_TLS_CRT_FILENAME** : Ldap ssl certificate filename. Defaults to ` ldap.crt `
177177- ** LDAP_TLS_KEY_FILENAME** : Ldap ssl certificate private key filename. Defaults to ` ldap.key `
178178- ** LDAP_TLS_CA_CRT_FILENAME** : Ldap ssl CA certificate filename. Defaults to ` ca.crt `
179+ - ** LDAP_TLS_CIPHER_SUITE** : TLS cipher suite. Defaults to ` SECURE256:-VERS-SSL3.0 `
180+ - ** LDAP_TLS_PROTOCOL_MIN** : TLS min protocol. Defaults to ` 3.1 `
181+ - ** LDAP_TLS_VERIFY_CLIENT** : TLS verify client. Defaults to ` demand `
182+
183+ Help: http://www.openldap.org/doc/admin24/tls.html
179184
180185Replication options :
181186- ** LDAP_REPLICATION** : Add openldap replication capabilities. Defaults to ` false `
@@ -209,7 +214,7 @@ Clone this project :
209214Adapt Makefile, set your image NAME and VERSION, for example :
210215
211216 NAME = osixia/openldap
212- VERSION = 1.0.0
217+ VERSION = 1.0.2
213218
214219 becomes :
215220 NAME = billy-the-king/openldap
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ LDAP_TLS_CRT_FILENAME: ldap.crt
1818LDAP_TLS_KEY_FILENAME : ldap.key
1919LDAP_TLS_CA_CRT_FILENAME : ca.crt
2020
21+ LDAP_TLS_CIPHER_SUITE : SECURE256:-VERS-SSL3.0
22+ LDAP_TLS_PROTOCOL_MIN : 3.1
23+ LDAP_TLS_VERIFY_CLIENT : demand
24+
2125# Replication
2226LDAP_REPLICATION : false
2327# variables $LDAP_BASE_DN, $LDAP_ADMIN_PASSWORD, $LDAP_CONFIG_PASSWORD
Original file line number Diff line number Diff line change 11dn: cn=config
22changetype: modify
33replace: olcTLSCipherSuite
4- olcTLSCipherSuite: SECURE256:-VERS-SSL3.0
4+ olcTLSCipherSuite: {{ LDAP_TLS_CIPHER_SUITE }}
55-
66replace: olcTLSProtocolMin
7- olcTLSProtocolMin: 3.1
7+ olcTLSProtocolMin: {{ LDAP_TLS_PROTOCOL_MIN }}
88-
99replace: olcTLSCACertificateFile
1010olcTLSCACertificateFile: /container/service/slapd/assets/certs/{{ LDAP_TLS_CA_CRT_FILENAME }}
@@ -19,4 +19,4 @@ replace: olcTLSDHParamFile
1919olcTLSDHParamFile: /container/service/slapd/assets/certs/dhparam.pem
2020-
2121replace: olcTLSVerifyClient
22- olcTLSVerifyClient: demand
22+ olcTLSVerifyClient: {{ LDAP_TLS_VERIFY_CLIENT }}
Original file line number Diff line number Diff line change 183183 sed -i " s|{{ LDAP_TLS_CRT_FILENAME }}|${LDAP_TLS_CRT_FILENAME} |g" /container/service/slapd/assets/config/tls/tls-enable.ldif
184184 sed -i " s|{{ LDAP_TLS_KEY_FILENAME }}|${LDAP_TLS_KEY_FILENAME} |g" /container/service/slapd/assets/config/tls/tls-enable.ldif
185185
186+ sed -i " s|{{ LDAP_TLS_CIPHER_SUITE }}|${LDAP_TLS_CIPHER_SUITE} |g" /container/service/slapd/assets/config/tls/tls-enable.ldif
187+ sed -i " s|{{ LDAP_TLS_PROTOCOL_MIN }}|${LDAP_TLS_PROTOCOL_MIN} |g" /container/service/slapd/assets/config/tls/tls-enable.ldif
188+ sed -i " s|{{ LDAP_TLS_VERIFY_CLIENT }}|${LDAP_TLS_VERIFY_CLIENT} |g" /container/service/slapd/assets/config/tls/tls-enable.ldif
189+
186190 ldapmodify -Y EXTERNAL -Q -H ldapi:/// -f /container/service/slapd/assets/config/tls/tls-enable.ldif
187191
188192 [[ -f " $WAS_STARTED_WITH_TLS " ]] && rm -f " $WAS_STARTED_WITH_TLS "
You can’t perform that action at this time.
0 commit comments