Edit User-Name based on regex

ANGEL LUIS MATEO MARTINEZ amateo at um.es
Mon Mar 27 10:19:44 UTC 2023


Hello,

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".

This may be a silly question, but I haven't found how to do it. Is there any way to do it? Thank you.

--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868889150
Fax: 868888337


More information about the Freeradius-Users mailing list