Merge pull request #77561 from Mic92/openldap

nixos/openldap: check configuration with slaptest
This commit is contained in:
Franz Pletz
2020-01-12 16:33:34 +00:00
committed by GitHub

View File

@@ -259,6 +259,8 @@ in
${openldap.out}/bin/slapadd ${configOpts} -l ${dataFile}
''}
chown -R "${cfg.user}:${cfg.group}" "${cfg.dataDir}"
${openldap}/bin/slaptest ${configOpts}
'';
serviceConfig.ExecStart =
"${openldap.out}/libexec/slapd -d '${cfg.logLevel}' " +