3
0
Fork 0
forked from mirrors/nixpkgs

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
commit 23bdc67f8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}' " +