We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9531804 + 3ae806c commit 35904aaCopy full SHA for 35904aa
service/slapd/slapd.sh
@@ -46,7 +46,8 @@ fi
46
if [ ! -e /etc/ldap/config/docker_bootstrapped ]; then
47
status "Custom config"
48
49
- slapd -h "ldapi:///"
+ slapd -h "ldapi:///" -u openldap -g openldap
50
+ chown -R openldap:openldap /etc/ldap
51
52
# TLS
53
if [ -e /etc/ldap/ssl/ldap.crt ] && [ -e /etc/ldap/ssl/ldap.key ] && [ -e /etc/ldap/ssl/ca.crt ]; then
@@ -85,5 +86,5 @@ fi
85
86
status "starting slapd on default port 389"
87
set -x
88
#with debug:
-#exec /usr/sbin/slapd -h "ldap:///" -d -1
89
-exec /usr/sbin/slapd -h "ldap:///"
+#exec /usr/sbin/slapd -h "ldap:///" -u openldap -g openldap -d -1
90
+exec /usr/sbin/slapd -h "ldap:///" -u openldap -g openldap
0 commit comments