How can I output Cisco-AVPair Attributes in linelog?

Bob Franklin rcf34 at cam.ac.uk
Tue Oct 6 18:00:03 CEST 2009


On Tue, 6 Oct 2009, David Mitchell wrote:

>>     elsif ("%{Cisco-AVPair}" =~ /^ssid=(.+)$/) {
>>         # a Cisco AP
>>
>>         update request {
>>             UCam-Location-Id := "%{NAS-IP-Address}"
>>             UCam-Essid-Name := "%{1}"
>>         }
>>
>> I've never seen another Cisco-AVPair attribute (only 'ssid=xxx') -- 
>> what happens if there is and I'm doing the above?  Will it match the 
>> first (or an abitrary one) or will it find one which matches and return 
>> false if there if isn't?
>
> That's a good question. I get about six AVPair's so I could test. What 
> portion of the config do you put that code into?

It's in the authorize { } section (and the accounting { } section, too, I 
think).

   - 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