mirror of
https://github.com/vegardit/docker-openldap.git
synced 2026-04-10 16:25:56 +02:00
fix: "ldap_modify: No such attribute (16)" when TLS is disabled
Fixes the following start error when TLS is disabled:
```
Executing [ldapmodify /tmp/tls.ldif]...
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
ldap_modify: No such attribute (16)
additional info: modify/delete: olcTLSCertificateFile: no such
attribute
modifying entry "cn=config"
```
This commit is contained in:
parent
63bdfc9d98
commit
3a42914d46
|
|
@ -344,7 +344,12 @@ for _ in {1..8}; do
|
|||
fi
|
||||
sleep 1
|
||||
done
|
||||
ldif modify -Y EXTERNAL /tmp/tls.ldif
|
||||
if [[ ${LDAP_TLS_ENABLED} == true ]]; then
|
||||
ldif modify -Y EXTERNAL /tmp/tls.ldif
|
||||
else
|
||||
ldif modify -c -Y EXTERNAL /tmp/tls.ldif || true # ignore "ldap_modify: No such attribute (16)"
|
||||
fi
|
||||
|
||||
rm -f /tmp/tls.ldif
|
||||
|
||||
/etc/init.d/slapd stop | log INFO
|
||||
|
|
|
|||
Loading…
Reference in a new issue