Change the owner of the files in /var/lib/ldap to openldap and run as openldap

This commit is contained in:
hong Xu 2015-03-20 19:59:45 -04:00
parent 8638ea5a6f
commit 8c0efb2d3f
2 changed files with 2 additions and 2 deletions

View file

@ -24,4 +24,4 @@ COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["slapd", "-d", "32768"]
CMD ["slapd", "-d", "32768", "-u", "openldap", "-g", "openldap"]

View file

@ -1,7 +1,7 @@
#!/bin/bash
set -e
chown openldap:openldap /var/lib/ldap/
chown -R openldap:openldap /var/lib/ldap/
if [[ ! -d /etc/ldap/slapd.d ]]; then