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 <rc...@cam.ac.uk> +44 1223 748479
Network Division, University of Cambridge Computing Service
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html