Ah sorry,
By the way, in the C code, please change Cisco-AVPair to CISCO_AVPAIR. This is the transformation which freeradius makes with regard to its environment variables and you should take care of the issue in your shell scripts or C code.

Best Regards
Ali

On 9/7/06, Ali Majdzadeh <[EMAIL PROTECTED]> wrote:
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 <[EMAIL PROTECTED]> 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



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to