pairfind() with VSAs

Alan Dekok aland at deployingradius.com
Sun Jun 10 15:50:47 CEST 2007


hwang at i-fone.net wrote:
> I'm trying to write my own module and come into some problems.
> I'm trying to access request attributes using pairfind() as mentioned in
> the Wiki.  I can get normal attributes without problem but having
> problem with VSAs.
> I tried to access some Cisco VSAs like h323-conf-id, h323-call-origin by
> using something like PW_H323_CONF_ID, CISCO_H323_CONF_ID, H323_CONF_ID
> but compiler told me those are "undeclared".

   Because they're not defined in src/include/radius.h

> How do I access those VSAs?

   You can use the name to look up the DICT_ATTR structure, and then 
look at the attribute value from there.

   Or, read the rest of the code to see how it handles VSA's.  Grep for 
"pairfind", and look at the code.

   Alan DeKok.



More information about the Freeradius-Users mailing list