Edit User-Name based on regex
Matthew Newton
mcn at freeradius.org
Mon Mar 27 11:34:01 UTC 2023
On 27/03/2023 11:19, ANGEL LUIS MATEO MARTINEZ wrote:
> I have a scenario where I need to modify User-Name, before any AAA operation, based on a regex substitution. To be precise, the users are sending a MAC as the username, in the form "00:11:22:33:44:55" and I need to transform this to "001122334455".
See policy.d/canonicalization - there's a policy
"rewrite_calling_station_id" which you can copy and alter to do it on
User-Name instead.
--
Matthew
More information about the Freeradius-Users
mailing list