File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,13 @@ add: olcTLSCertificateKeyFile
9696olcTLSCertificateKeyFile: /etc/ssl/private/ldap01_slapd_key.pem
9797EOF
9898
99+ # LDAP over TLS/SSL (ldaps://) is deprecated in favour of StartTLS. The latter
100+ # refers to an existing LDAP session (listening on TCP port 389) becoming
101+ # protected by TLS/SSL whereas LDAPS, like HTTPS, is a distinct
102+ # encrypted-from-the-start protocol that operates over TCP port 636. But we
103+ # enable it for testing here.
104+ sudo sed -i -e ' s|^SLAPD_SERVICES="\(.*\)"|SLAPD_SERVICES="ldap:/// ldapi:/// ldaps:///"|' /etc/default/slapd
105+
99106sudo adduser openldap ssl-cert
100107sudo chgrp ssl-cert /etc/ssl/private/ldap01_slapd_key.pem
101108sudo chmod g+r /etc/ssl/private/ldap01_slapd_key.pem
You can’t perform that action at this time.
0 commit comments