Cisco-AVpair accounting client-mac-address with unlang

Alan DeKok aland at deployingradius.com
Fri Jan 8 08:46:00 CET 2010


Joe Maimon wrote:
> I have searched. I am unsatisfied with the results.
> 
> The cisco_vsa_hack may have unintended consequences.

  Like... ?

> unlang should properly loop over the vp list, like other paircompares do.

  I would prefer that behavior to be *explicit* rather than *implicit*.

> I have patched this kind of oversight before elsewhere, not sure if
> thats the right approach here.

  Maybe something like:

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

  i.e. "*" means "any one matches"

  Alan DeKok.



More information about the Freeradius-Users mailing list