fix(radius): Be less verbose in the logs not to overflow journald
All checks were successful
Build all the nodes / netaccess01 (push) Successful in 20s
Build all the nodes / netcore01 (push) Successful in 19s
Build all the nodes / netcore02 (push) Successful in 21s
Build all the nodes / ap01 (push) Successful in 1m27s
Build all the nodes / geo01 (push) Successful in 1m42s
Build all the nodes / hypervisor03 (push) Successful in 1m45s
Build all the nodes / bridge01 (push) Successful in 2m3s
Build all the nodes / rescue01 (push) Successful in 1m44s
Build all the nodes / hypervisor01 (push) Successful in 2m6s
Build all the nodes / build01 (push) Successful in 2m9s
Build all the nodes / hypervisor02 (push) Successful in 2m12s
Build all the nodes / geo02 (push) Successful in 2m12s
Build all the nodes / compute01 (push) Successful in 2m28s
Build all the nodes / storage01 (push) Successful in 1m51s
Run pre-commit on all files / pre-commit (push) Successful in 29s
Build the shell / build-shell (push) Successful in 38s
Build all the nodes / tower01 (push) Successful in 1m35s
Build all the nodes / web01 (push) Successful in 2m1s
Build all the nodes / vault01 (push) Successful in 2m5s
Build all the nodes / web02 (push) Successful in 1m46s
Build all the nodes / web03 (push) Successful in 2m0s
All checks were successful
Build all the nodes / netaccess01 (push) Successful in 20s
Build all the nodes / netcore01 (push) Successful in 19s
Build all the nodes / netcore02 (push) Successful in 21s
Build all the nodes / ap01 (push) Successful in 1m27s
Build all the nodes / geo01 (push) Successful in 1m42s
Build all the nodes / hypervisor03 (push) Successful in 1m45s
Build all the nodes / bridge01 (push) Successful in 2m3s
Build all the nodes / rescue01 (push) Successful in 1m44s
Build all the nodes / hypervisor01 (push) Successful in 2m6s
Build all the nodes / build01 (push) Successful in 2m9s
Build all the nodes / hypervisor02 (push) Successful in 2m12s
Build all the nodes / geo02 (push) Successful in 2m12s
Build all the nodes / compute01 (push) Successful in 2m28s
Build all the nodes / storage01 (push) Successful in 1m51s
Run pre-commit on all files / pre-commit (push) Successful in 29s
Build the shell / build-shell (push) Successful in 38s
Build all the nodes / tower01 (push) Successful in 1m35s
Build all the nodes / web01 (push) Successful in 2m1s
Build all the nodes / vault01 (push) Successful in 2m5s
Build all the nodes / web02 (push) Successful in 1m46s
Build all the nodes / web03 (push) Successful in 2m0s
This commit is contained in:
parent
c01d4ba9c3
commit
e208be6037
4 changed files with 22 additions and 1 deletions
|
@ -20,7 +20,7 @@ precedence = "closest"
|
|||
[[annotations]]
|
||||
SPDX-FileCopyrightText = "2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>"
|
||||
SPDX-License-Identifier = "EUPL-1.2"
|
||||
path = ["machines/nixos/compute01/ds-fr/01-smtp-tls.patch", "machines/nixos/compute01/librenms/kanidm.patch", "machines/nixos/compute01/stirling-pdf/*.patch", "machines/nixos/vault01/k-radius/packages/01-python_path.patch", "machines/nixos/web01/crabfit/*.patch", "machines/nixos/web02/cas-eleves/01-pytest-cas.patch", "patches/lix/01-disable-installChecks.patch", "patches/nixpkgs/01-pretalx-environment-file.patch", "patches/nixpkgs/03-crabfit-karla.patch", "patches/nixpkgs/05-netbird-relay.patch"]
|
||||
path = ["machines/nixos/compute01/ds-fr/01-smtp-tls.patch", "machines/nixos/compute01/librenms/kanidm.patch", "machines/nixos/compute01/stirling-pdf/*.patch", "machines/nixos/vault01/k-radius/packages/01-python_path.patch", "machines/nixos/vault01/k-radius/packages/02-remove-noisy-logs.patch", "machines/nixos/web01/crabfit/*.patch", "machines/nixos/web02/cas-eleves/01-pytest-cas.patch", "patches/lix/01-disable-installChecks.patch", "patches/nixpkgs/01-pretalx-environment-file.patch", "patches/nixpkgs/03-crabfit-karla.patch", "patches/nixpkgs/05-netbird-relay.patch"]
|
||||
precedence = "closest"
|
||||
|
||||
[[annotations]]
|
||||
|
|
|
@ -96,6 +96,7 @@ let
|
|||
"machines/nixos/compute01/librenms/kanidm.patch"
|
||||
"machines/nixos/compute01/stirling-pdf/*.patch"
|
||||
"machines/nixos/vault01/k-radius/packages/01-python_path.patch"
|
||||
"machines/nixos/vault01/k-radius/packages/02-remove-noisy-logs.patch"
|
||||
"machines/nixos/web01/crabfit/*.patch"
|
||||
"machines/nixos/web02/cas-eleves/01-pytest-cas.patch"
|
||||
"patches/lix/01-disable-installChecks.patch"
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
diff --git a/kanidm/radius/utils.py b/kanidm/radius/utils.py
|
||||
index cbd3fe1f0..41fbd05c4 100644
|
||||
--- a/kanidm/radius/utils.py
|
||||
+++ b/kanidm/radius/utils.py
|
||||
@@ -25,11 +25,6 @@ def check_vlan(
|
||||
raise ValueError("Need to pass this a kanidm_client")
|
||||
|
||||
for radius_group in kanidm_client.config.radius_groups:
|
||||
- logging.debug(
|
||||
- "Checking vlan group '%s' against user group %s",
|
||||
- radius_group.spn,
|
||||
- group.spn,
|
||||
- )
|
||||
if radius_group.spn == group.spn:
|
||||
logging.info("returning new vlan: %s", radius_group.vlan)
|
||||
return radius_group.vlan
|
|
@ -25,6 +25,10 @@ buildPythonPackage rec {
|
|||
hash = "sha256-NH9V5KKI9LAtJ2/WuWtUJUzkjVMfO7Q5NQkK7Ys2olU=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./02-remove-noisy-logs.patch
|
||||
];
|
||||
|
||||
sourceRoot = "source/pykanidm";
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
|
Loading…
Add table
Reference in a new issue