tiredofit / docker-openldap

Dockerized LDAP server with many customizable options
MIT License
108 stars 48 forks source link

Fix ldap.conf being copied to itself #27

Closed frznvm0 closed 4 years ago

frznvm0 commented 4 years ago

I've encountered an error on container restart: cp: '/etc/openldap/ldap.conf' and '/assets/slapd/ldap.conf' are the same file

configure_ldap_client is the only function that touches ${CONFIG_PATH}ldap.conf directly, then copies it to /assets/slapd, it is cleaner (and less error-prone) to directly write to /assets first.