One of the attributes we are after is the client-mac-address from
Cisco-AVPair = "client-mac-address=0012.3fb2.15d2".
So far it is now converted to an attribute of its own
client-mac-address=0012.3fb2.15d2. (by setting cisco-av-hack to yes and
adding some attributes to the dictionary)
Now to get it to be the callingstationid. Looks like that will require
that attr_rewrite be used to redefine callingstationid to be the mac
address defined as client-mac-address.
Still reading a bit on how to get that done. Anyone have any
suggestions? If so, please send them along.
Bryan
Bob Franklin wrote:
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
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html