Edit User-Name based on regex

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


I'm stuck trying to remove the ":" chars from the string.


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

________________________________________
De: Freeradius-Users <freeradius-users-bounces+amateo=um.es at lists.freeradius.org> en nombre de Jonathan Davis <jonathan at prioritycolo.com>
Enviado: lunes, 27 de marzo de 2023 13:33
Para: FreeRadius users mailing list
Asunto: Re: Edit User-Name based on regex

The example in the docs for regex is a username comparison (first google hit), and there are many examples all over stackexchange of mac address regexes.

Are you stuck on where to do the username comparison, or how to remove the :'s from
the string or ?

> On Mar 27, 2023, at 6:20 AM, ANGEL LUIS MATEO MARTINEZ <amateo at um.es> wrote:
>
> 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
> -
> List info/subscribe/unsubscribe? See https://urldefense.com/v3/__http://www.freeradius.org/list/users.html__;!!D9dNQwwGXtA!Xr5epC919PJ55w6WC1AdBxPDGfz71FqM9WDVi2HBc9YClMYN_QuOL6OoDGefZA_wIX36oahF6Iz5JlNRNg$

-
List info/subscribe/unsubscribe? See https://urldefense.com/v3/__http://www.freeradius.org/list/users.html__;!!D9dNQwwGXtA!Xr5epC919PJ55w6WC1AdBxPDGfz71FqM9WDVi2HBc9YClMYN_QuOL6OoDGefZA_wIX36oahF6Iz5JlNRNg$


More information about the Freeradius-Users mailing list