Calling-Station-Id problem
Brian Candler
B.Candler at pobox.com
Mon Mar 14 08:42:09 CET 2011
On Sun, Mar 13, 2011 at 04:37:06AM -0700, ziko wrote:
> I tried both format together like this:
> user1 Calling-Station-Id == 00-00-00-00-00
> user1 Calling-Station-Id == 00:00:00:00:00
> but no success.
You could do a rewrite:
if (Calling-Station-Id =~ /^([0-9a-f]{2})-([0-9a-f]{2})-([0-9a-f]{2})-([0-9a-f]{2})-([0-9a-f]{2})$/i) {
update request {
Calling-Station-Id = "%{1}:%{2}:%{3}:%{4}:%{5}:%{6}"
}
}
More information about the Freeradius-Users
mailing list