From 058fe0b3f5704db993eaba0089eda0b137d386fd Mon Sep 17 00:00:00 2001 From: Jeltz Date: Sun, 2 Jul 2023 21:56:37 +0200 Subject: [PATCH] freeradius: fix vlan logging --- roles/freeradius/templates/mods-available/linelog.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/freeradius/templates/mods-available/linelog.j2 b/roles/freeradius/templates/mods-available/linelog.j2 index 8cb08df..3590d5e 100644 --- a/roles/freeradius/templates/mods-available/linelog.j2 +++ b/roles/freeradius/templates/mods-available/linelog.j2 @@ -18,7 +18,7 @@ linelog linelog_inner_postauth { reference = {{ 'messages.%{%{reply:Packet-Type}:-default}' | enquote }} messages { - Access-Accept = {{ '${...linelog_inner_prefix} accepted "%{jsonquote:%{User-Name}}" (VLAN %{reply:Tunnel-Private-Group-Id:-unknown})' | enquote }} + Access-Accept = {{ '${...linelog_inner_prefix} accepted "%{jsonquote:%{User-Name}}" (VLAN %{%{reply:Tunnel-Private-Group-Id}:-unknown})' | enquote }} Access-Reject = {{ '${...linelog_inner_prefix} rejected "%{jsonquote:%{User-Name}}" (%{%{Module-Failure-Message}:-unknown})' | enquote }} default = {{ '${...linelog_inner_prefix} unknown packet type %{Packet-Type}' | enquote }} } @@ -47,7 +47,7 @@ linelog linelog_outer_postauth { reference = {{ 'messages.%{%{reply:Packet-Type}:-default}' | enquote }} messages { - Access-Accept = {{ '${...linelog_outer_prefix} accepted "%{jsonquote:%{User-Name}}" (VLAN %{reply:Tunnel-Private-Group-Id:-unknown})' | enquote }} + Access-Accept = {{ '${...linelog_outer_prefix} accepted "%{jsonquote:%{User-Name}}" (VLAN %{%{reply:Tunnel-Private-Group-Id}:-unknown})' | enquote }} Access-Reject = {{ '${...linelog_outer_prefix} rejected "%{jsonquote:%{User-Name}}" (%{%{Module-Failure-Message}:-unknown})' | enquote }} default = {{ '${...linelog_outer_prefix} unknown packet type %{Packet-Type}' | enquote }} }