Skip to content

Commit dfae4ed

Browse files
committed
rename variables
1 parent 34a0fee commit dfae4ed

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ Or you can set your custom certificate at run time, by mouting a directory conta
104104
-d osixia/openldap
105105

106106
#### Disable TLS
107-
Add -e LDAP_PROPOSE_TLS=false to the run command :
107+
Add -e LDAP_TLS=false to the run command :
108108

109-
docker run -e LDAP_PROPOSE_TLS=false -d osixia/openldap
109+
docker run -e LDAP_TLS=false -d osixia/openldap
110110

111111
### Multi master replication
112112
Quick example, with the default config.
@@ -169,7 +169,7 @@ Required and used for new ldap server only :
169169
- **LDAP_CONFIG_PASSWORD** Ldap Config password. Defaults to `config`
170170

171171
TLS options :
172-
- **LDAP_PROPOSE_TLS**: Add openldap TLS capabilities. Defaults to `true`
172+
- **LDAP_TLS**: Add openldap TLS capabilities. Defaults to `true`
173173
- **LDAP_TLS_CRT_FILENAME**: Ldap ssl certificate filename. Defaults to `ldap.crt`
174174
- **LDAP_TLS_KEY_FILENAME**: Ldap ssl certificate private key filename. Defaults to `ldap.key`
175175
- **LDAP_TLS_CA_CRT_FILENAME**: Ldap ssl CA certificate filename. Defaults to `ca.crt`

image/env.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LDAP_CONFIG_PASSWORD: config
66
#See table 5.1 in http://www.openldap.org/doc/admin24/slapdconf2.html for the available log levels.
77
LDAP_LOG_LEVEL: 256
88

9-
LDAP_PROPOSE_TLS: true
9+
LDAP_TLS: true
1010
LDAP_TLS_CRT_FILENAME: ldap.crt
1111
LDAP_TLS_KEY_FILENAME: ldap.key
1212
LDAP_TLS_CA_CRT_FILENAME: ca.crt

image/service/slapd/container-start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ EOF
150150
fi
151151

152152
# TLS config
153-
if [ "${LDAP_PROPOSE_TLS,,}" == "true" ]; then
153+
if [ "${LDAP_TLS,,}" == "true" ]; then
154154

155155
echo "Use TLS"
156156

test/test.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ load test_helper
1010

1111
@test "ldapsearch new database" {
1212

13-
run_image -h ldap.example.org -e LDAP_PROPOSE_TLS=false
13+
run_image -h ldap.example.org -e LDAP_TLS=false
1414
wait_service slapd
1515
run docker exec $CONTAINER_ID ldapsearch -x -h ldap.example.org -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin
1616
clear_container
@@ -45,7 +45,7 @@ load test_helper
4545

4646
@test "ldapsearch existing database and config" {
4747

48-
run_image -h ldap.example.org -e LDAP_PROPOSE_TLS=false -v $BATS_TEST_DIRNAME/database:/var/lib/ldap -v $BATS_TEST_DIRNAME/config:/etc/ldap/slapd.d
48+
run_image -h ldap.example.org -e LDAP_TLS=false -v $BATS_TEST_DIRNAME/database:/var/lib/ldap -v $BATS_TEST_DIRNAME/config:/etc/ldap/slapd.d
4949
wait_service slapd
5050
run docker exec $CONTAINER_ID ldapsearch -x -h ldap.example.org -b dc=osixia,dc=net -D "cn=admin,dc=osixia,dc=net" -w admin
5151
clear_container

0 commit comments

Comments
 (0)