Cisco-AVpair accounting client-mac-address with unlang

Bjørn Mork bjorn at mork.no
Fri Jan 8 11:25:03 CET 2010


Alan DeKok <aland at deployingradius.com> writes:

>   Maybe something like:
>
>         if (*Cisco-AVpair =~ /^client-mac-address=(.+)$/) {
>
>   i.e. "*" means "any one matches"

Is it ever useful to match on a single one?  You'll always have a hard
time knowing the order and number of attributes.

I believe you could just as well overload the meaning of

         if (Cisco-AVpair =~ /^client-mac-address=(.+)$/) {

to mean "any one matches" regardless of the number of Cisco-AVpair
attributes. 



Bjørn




More information about the Freeradius-Users mailing list