Commit 8c0efb2d authored by hong Xu's avatar hong Xu
Browse files

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

parent 8638ea5a
......@@ -24,4 +24,4 @@ COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["slapd", "-d", "32768"]
CMD ["slapd", "-d", "32768", "-u", "openldap", "-g", "openldap"]
#!/bin/bash
set -e
chown openldap:openldap /var/lib/ldap/
chown -R openldap:openldap /var/lib/ldap/
if [[ ! -d /etc/ldap/slapd.d ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment