Re: option 82

2010-02-26 Thread Bryan Campbell
Google Radius DHCP client and start reading. :-) FWIW - This isn't a Freeradius question. b...@misn.com Alan DeKok wrote: Kevin Croes wrote: I work at an ISP and we are looking at the possibility to use option 82 in FreeRADIUS. In what, DHCP? RADIUS? The other side is going

Re: Cisco-AVpair accounting client-mac-address with unlang

2010-01-08 Thread Bryan Campbell
See the following link and the associated reference posts. What you need is already built-in. It takes two steps (5 minutes) to get access to the attributes. The only question then is how you will format your SQL statements to write the attributes out to the database (another 5 minutes).

Re: Cisco-AVpair accounting client-mac-address with unlang

2010-01-07 Thread Bryan Campbell
Been there, done that . . . search the mailing list archives from last month for this topic. The hack turns the av-pair strings into attributes (if you add them to the dictionary). Then you just have to adjust your SQL to address them for writing to the database. Again . . . search the

Re: Cisco-AVPair Accounting

2009-12-08 Thread Bryan Campbell
O.K. What is the best way to accomplish the following . . . For a specific NAS-IP-Address=10.10.10.10 Accounting packet includes the following . . . %{Calling-Station-Id}(does not exist) %{client-mac-address}=.. Need to write the value for .

Re: Cisco-AVPair Accounting

2009-12-08 Thread Bryan Campbell
. So, callingstationid is correct no matter what. No rewrites necessary! Thanks! Bryan - Bryan Campbell wrote: O.K. What is the best way to accomplish the following . . . For a specific NAS-IP-Address=10.10.10.10 Accounting packet includes the following . . . %{Calling-Station-Id

Cisco-AVPair Accounting

2009-12-07 Thread Bryan Campbell
Afternoon - We use Freeradius/MySQL with Cisco-AVPair entries to send radreplies and radgroupreplies that specify speeds and such with great success. However, we are having a bit of difficulty sorting out how to sort out Cisco-AVPair accounting entries so that we can insert them into the

Re: Cisco-AVPair Accounting

2009-12-07 Thread Bryan Campbell
the string from the array variable=value is there a means built into freeradius to write the value of the variable name (both contained in the string) to an attribute? Bryan Campbell - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Cisco-AVPair Accounting

2009-12-07 Thread Bryan Campbell
From someone who has already suffered through it five years ago. And, for the benefit of those who come after me. 1) set with_cisco_vsa_hack = yes in radiusd.conf 2) add the attributes I want to have stripped from the AVPair fields to cisco.dictionary in /usr/local/share/freeradius, freeradius

Re: Cisco-AVPair Accounting

2009-12-07 Thread Bryan Campbell
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