[Unit] Description=OpenLDAP Server Daemon After=syslog.target [Service] Type=forking PIDFile=/var/run/ldap/slapd.pid Environment="SLAPDURLLIST=ldap:/// ldapi:///" "LDAP_USER=ldap" "LDAP_GROUP=ldap" "SLAPDSYSLOGLOCALUSER=local4" EnvironmentFile=/etc/sysconfig/slapd ExecStartPre=/usr/share/openldap/scripts/ldap-config check ExecStart=/usr/sbin/slapd -u ${LDAP_USER} -g ${LDAP_GROUP} -h ${SLAPDURLLIST} -l ${SLAPDSYSLOGLOCALUSER} [Install] WantedBy=multi-user.target