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 <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

Reply via email to