Skip to content

Commit e0831a3

Browse files
committed
Merge branch 'hotfix-1.0.2' into stable
2 parents b658686 + 6f9b750 commit e0831a3

File tree

6 files changed

+28
-6
lines changed

6 files changed

+28
-6
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME = osixia/openldap
2-
VERSION = 1.0.1
2+
VERSION = 1.0.2
33

44
.PHONY: all build test tag_latest release
55

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

180185
Replication options :
181186
- **LDAP_REPLICATION**: Add openldap replication capabilities. Defaults to `false`
@@ -209,7 +214,7 @@ Clone this project :
209214
Adapt 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

image/env.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ LDAP_TLS_CRT_FILENAME: ldap.crt
1818
LDAP_TLS_KEY_FILENAME: ldap.key
1919
LDAP_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
2226
LDAP_REPLICATION: false
2327
# variables $LDAP_BASE_DN, $LDAP_ADMIN_PASSWORD, $LDAP_CONFIG_PASSWORD

image/service/slapd/assets/config/tls/tls-enable.ldif

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
dn: cn=config
22
changetype: modify
33
replace: olcTLSCipherSuite
4-
olcTLSCipherSuite: SECURE256:-VERS-SSL3.0
4+
olcTLSCipherSuite: {{ LDAP_TLS_CIPHER_SUITE }}
55
-
66
replace: olcTLSProtocolMin
7-
olcTLSProtocolMin: 3.1
7+
olcTLSProtocolMin: {{ LDAP_TLS_PROTOCOL_MIN }}
88
-
99
replace: olcTLSCACertificateFile
1010
olcTLSCACertificateFile: /container/service/slapd/assets/certs/{{ LDAP_TLS_CA_CRT_FILENAME }}
@@ -19,4 +19,4 @@ replace: olcTLSDHParamFile
1919
olcTLSDHParamFile: /container/service/slapd/assets/certs/dhparam.pem
2020
-
2121
replace: olcTLSVerifyClient
22-
olcTLSVerifyClient: demand
22+
olcTLSVerifyClient: {{ LDAP_TLS_VERIFY_CLIENT }}

image/service/slapd/container-start.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ EOF
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"

0 commit comments

Comments
 (0)