Skip to content

Commit 3ae806c

Browse files
author
Bertrand Gouny
committed
retour utilisateur openldap
1 parent 1e2512c commit 3ae806c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

service/slapd/slapd.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ fi
4646
if [ ! -e /etc/ldap/config/docker_bootstrapped ]; then
4747
status "Custom config"
4848

49-
slapd -h "ldapi:///"
49+
slapd -h "ldapi:///" -u openldap -g openldap
50+
chown -R openldap:openldap /etc/ldap
5051

5152
# TLS
5253
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
8586
status "starting slapd on default port 389"
8687
set -x
8788
#with debug:
88-
#exec /usr/sbin/slapd -h "ldap:///" -d -1
89-
exec /usr/sbin/slapd -h "ldap:///"
89+
#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

Comments
 (0)