4 SLAPD_GROUP
=$SLAPD_USER
5 SLAPD_CONF
=/etc
/ldap
/slapd.d
7 sudo systemctl stop slapd
10 $SLAPD_CONF/cn
=config \
11 $SLAPD_CONF/cn
=config.ldif \
13 sudo
install -D -d -o $SLAPD_USER -g $SLAPD_GROUP -m 0700 \
16 sudo
install -D -d -o $SLAPD_USER -g $SLAPD_GROUP -m 0711 \
18 sudo
-u $SLAPD_USER -g $SLAPD_GROUP \
19 strace
-f -e open slapadd
-d 3 -F "$SLAPD_CONF" -b "cn=config" -l .
/cn
=config.ldif
20 sudo
-u $SLAPD_USER -g $SLAPD_GROUP \
21 slapadd
-F "$SLAPD_CONF" -b "dc=commonsoft" -l .
/dc=commonsoft.ldif
23 #sudo systemctl start slapd
24 sudo slapd
-d 'ACL' -h 'ldap:/// ldapi:///' -g openldap
-u openldap
-F /etc
/ldap
/slapd.d