[prev in list] [next in list] [prev in thread] [next in thread]
List: freeradius-users
Subject: Re: Remove dots from client-mac-address
From: Alan DeKok <aland () deployingradius ! com>
Date: 2022-10-25 12:53:31
Message-ID: E8E93987-F163-4F4A-907B-9560900BF573 () deployingradius ! com
[Download RAW message or body]
On Oct 25, 2022, at 8:33 AM, Steven Walters <steven.walters1@gmail.com> wrote:
> I am using the below loop to extract client-mac-address from Cisco AVP and
> write it to the Telkom-CPE attribute.
>
> The format of the client-mac-address is "340a.3394.7291". Is there a way to
> remove the dots from the mac address like "340A33947291" before writing it
> the attribute?
Use a different regular expression.
if ("%{Foreach-Variable-0}" =~ /^client-mac-address=([0-9a-f]{3})\.([0-9a-f]{3})\,([0-9a-f]{3})/) {
update request {
Telkom-CPE := "%{1}%{2}%{3}"
}
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic