multiiple values in an attribute

Ali Majdzadeh ali.majdzadeh at gmail.com
Thu Sep 7 16:10:56 CEST 2006


Hi Fonci
Thanks for your attention.
I consulted the freeradius documentation about the problem.
They have mentioned that the AV pairs which contain multiple values are
maintained using arrays. These arrays are available in, for example, shell
scripts:
example:
%{Cisco-AVPair[0]} references the value of the *first* Cisco-AVPair
attribute (if it exists) in the request packet.
You can pass these values as command line arguments to your program.
But my problem was about fetching these types of AV pairs using getenv() in
C.
Example:
char  *Cisco-AVPair;
if (getenv ("Cisco-AVPair"))
{
                Cisco-AVPair = getenv ("Cisco-AVPair");
}
Hope this information can help.

Best Regards
Ali


On 9/7/06, Fonci <fonci at freemail.hu> wrote:
>
> Hi Ali!
> I've seen your mail in the freeradius mailing list. I think
> we have the same problem. Let me write here mine:
> So I get accounting requests from a client, which contains
> an attribute whit these TLV parameters:
> Type   :  PC_Header
> Length: 76 bytes
> The Problem:
> Value  : 003ab54687bcc3029a....    (152 hexadecimal numbers)
> parts  :  message ID. | Event type | ....
>
> The message ID is a random number. But I need to know the
> event type. But all of this are together in one attribute. I
> want to separate these.
> How can I catch this value, and separate them? You mentioned
> a C program or something. Can you give me an advice, how to
> try, or where to find information?
> Thank you, and
> Regards:
> F.
>
> _____________________________________________________________________
> Kamatmentes vásárlás 45 napig! Különleges mindennapok az [origo] klikkbank
> hitelkártyával.
> http://www.klikkbank.hu/lakossagi/termekek/hitelkartya/index.html
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20060907/14b7c9dc/attachment.html>


More information about the Freeradius-Users mailing list