diff --git a/Dockerfile b/Dockerfile index 0fc4586..5780b35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,4 +24,4 @@ COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] -CMD ["slapd", "-d", "32768"] +CMD ["slapd", "-d", "32768", "-u", "openldap", "-g", "openldap"] diff --git a/entrypoint.sh b/entrypoint.sh index b5e44c6..49eb73a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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