Merge pull request #77561 from Mic92/openldap
nixos/openldap: check configuration with slaptest
This commit is contained in:
commit
23bdc67f8b
@ -259,6 +259,8 @@ in
|
|||||||
${openldap.out}/bin/slapadd ${configOpts} -l ${dataFile}
|
${openldap.out}/bin/slapadd ${configOpts} -l ${dataFile}
|
||||||
''}
|
''}
|
||||||
chown -R "${cfg.user}:${cfg.group}" "${cfg.dataDir}"
|
chown -R "${cfg.user}:${cfg.group}" "${cfg.dataDir}"
|
||||||
|
|
||||||
|
${openldap}/bin/slaptest ${configOpts}
|
||||||
'';
|
'';
|
||||||
serviceConfig.ExecStart =
|
serviceConfig.ExecStart =
|
||||||
"${openldap.out}/libexec/slapd -d '${cfg.logLevel}' " +
|
"${openldap.out}/libexec/slapd -d '${cfg.logLevel}' " +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user