Cisco-AVPair Accounting

Bob Franklin rcf34 at cam.ac.uk
Tue Dec 8 02:17:21 CET 2009


On Mon, 7 Dec 2009, Bryan Campbell wrote:

> O.K.  That gets us to the per packet instances of the Cisco-AVPair.  We 
> can access the array of two or five instances of Cisco-AVPair that are 
> in the respective packets.  That gets us to the strings that are 
> defined.

How about using a regexp:

   if ("%{Cisco-AVPair}" =~ /^ssid=(.+)$/) {
     update request {
       UCam-Essid-Name := "%{1}"
     }
   }

I haven't been able to test this with more than one Cisco-AVPair 
attribute; I wasn't sure what the conclusion was about that, but I think 
it should match.

[You need to define your equivalent of UCam-Essid-Name in the dictionary.]

   - Bob


-- 
  Bob Franklin <rcf34 at cam.ac.uk>              +44 1223 748479
  Network Division, University of Cambridge Computing Service



More information about the Freeradius-Users mailing list