Class attribute questions

Alan DeKok aland at ox.org
Mon Jun 13 00:01:01 CEST 2005


"Shawn K. O'Shea" <shawno at airpath.com> wrote:
> 1) I'm currently using rlm_exec to call a simple perl script that
> "decodes" the Class attribute value (from accessing %{Class}) from it's
> hex octet form back to the ASCII inside. I just wanted to make sure that
> I wasn't missing something, and that there isn't an easier way to get at
> the ASCII inside the octet stream.

  Edit the dictionary, and change "octets" to "string"?

> 2) The rfc's allow for more than one Class attribute (at least in
> Accounting-Request packets). How does FreeRADIUS treat references to
> %{Class} when this happens? i.e. Is there a syntax to refer to each
> instance of the Class attr or get a count of how many are in the packet?

  The CVS snapshots allow this.  1.0.x doesn't.  See doc/variables.txt

  Alan DeKok.



More information about the Freeradius-Users mailing list