Merge pull request #2 from xuhdev/owner

Change the owner of the files in /var/lib/ldap to openldap and run sladp as openldap
This commit is contained in:
dinkel 2015-03-21 16:03:35 +01:00
commit 8df69d5799
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