New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/openldap: Support configuring the log level #51624
Conversation
@@ -54,6 +54,12 @@ in | |||
description = "The database directory."; | |||
}; | |||
|
|||
logLevel = mkOption { | |||
type = types.int; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this types.string
, and add a link to https://www.openldap.org/doc/admin24/slapdconfig.html#loglevel%20%3Clevel%3E in the description?
Being able to set logLevel = "acl trace";
seems a bit more clear than 129
.
@flokli Fixed and rebased |
@@ -139,7 +146,7 @@ in | |||
chown -R "${cfg.user}:${cfg.group}" "${cfg.dataDir}" | |||
''; | |||
serviceConfig.ExecStart = | |||
"${openldap.out}/libexec/slapd -d 0 " + | |||
"${openldap.out}/libexec/slapd -d ${toString cfg.logLevel} " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need toString
here anymore, as it already is a string now.
@flokli Fixed and rebased again |
Thanks, looking good! Ran By any chance, could you take a look at We have a more complete |
@flokli No, I don't do LDAP auth with pam right now neither am I planning to, sorry :/ |
No worries, was worth a shot ;-)
|
Motivation for this change
I wanted to troubleshoot startup problems.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)