]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
No need to do key="%{User-Name}". We can just do key=User-Name
authorAlan T. DeKok <aland@freeradius.org>
Sat, 1 Feb 2025 17:05:37 +0000 (12:05 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 1 Feb 2025 17:05:37 +0000 (12:05 -0500)
we should likely also update the examples to use the pre/post-proxy
attr filtering, too

raddb/mods-available/attr_filter

index ef757da3d2c46873a0ead9f7bfc6cd7ee78d5225..d8b4a3f37a6335f81f6aab21ec8d2c3cb17a881d 100644 (file)
@@ -91,7 +91,7 @@
 #  Add this before calling rlm_radius for proxying.
 #
 attr_filter attr_filter.pre-proxy {
-       key = "%{Realm}"
+       key = Realm
        filename = ${modconfdir}/${.:name}/pre-proxy
 }
 
@@ -105,7 +105,7 @@ attr_filter attr_filter.pre-proxy {
 #  Add this after calling `rlm_radius` for proxying.
 #
 attr_filter attr_filter.post-proxy {
-       key = "%{Realm}"
+       key = Realm
        filename = ${modconfdir}/${.:name}/post-proxy
 }
 
@@ -116,7 +116,7 @@ attr_filter attr_filter.post-proxy {
 #  packets. This should be called from `send Access-Reject`.
 #
 attr_filter attr_filter.access_reject {
-       key = "%{User-Name}"
+       key = User-Name
        filename = ${modconfdir}/${.:name}/access_reject
 }
 
@@ -127,7 +127,7 @@ attr_filter attr_filter.access_reject {
 #  packets. This is called from `send Access-Challenge`.
 #
 attr_filter attr_filter.access_challenge {
-       key = "%{User-Name}"
+       key = User-Name
        filename = ${modconfdir}/${.:name}/access_challenge
 }
 
@@ -139,6 +139,6 @@ attr_filter attr_filter.access_challenge {
 #  `send Accounting-Response` section.
 #
 attr_filter attr_filter.accounting_response {
-       key = "%{User-Name}"
+       key = User-Name
        filename = ${modconfdir}/${.:name}/accounting_response
 }