fix(radius): Make it work
All checks were successful
build configuration / build_vault01 (push) Successful in 1m2s
build configuration / build_web02 (push) Successful in 1m2s
build configuration / build_storage01 (push) Successful in 1m6s
build configuration / build_compute01 (push) Successful in 1m12s
lint / check (push) Successful in 21s
build configuration / build_web01 (push) Successful in 1m23s
npins update / npins_update (push) Successful in 1m15s

This commit is contained in:
Tom Hubrecht 2024-02-17 23:57:40 +01:00
parent 84892acd2d
commit 69ecadbbd1
2 changed files with 3 additions and 2 deletions

View file

@ -131,7 +131,7 @@ in
name:
{ secret, ipaddr }:
''
cat <<EOF >> ${cfg.configDir}/client.conf
cat <<EOF >> ${cfg.configDir}/clients.conf
client ${name} {
ipaddr = ${ipaddr}
secret = $(cat "${secret}")
@ -177,7 +177,7 @@ in
];
serviceConfig = {
ExecStart = "${cfg.freeradius}/bin/radiusd -f -d ${cfg.configDir} -l stdout";
ExecStart = "${cfg.freeradius}/bin/radiusd -X -f -d ${cfg.configDir} -l stdout";
ExecReload = [
"${cfg.freeradius}/bin/radiusd -C -d ${cfg.configDir} -l stdout"
"${pkgs.coreutils}/bin/kill -HUP $MAINPID"
@ -189,6 +189,7 @@ in
RestartSec = 2;
LogsDirectory = "radius";
StateDirectory = "radius";
RuntimeDirectory = "radius";
Environment = [
"KANIDM_RLM_CONFIG=/var/lib/radius/kanidm.toml"
"PYTHONPATH=${rlm_python.pythonPath}"