(RADIATOR) "Phantom" attribute

Hugh Irvine hugh at open.com.au
Sat Apr 22 20:21:30 CDT 2006


Hello Claudio -

You could try using this:

	0%{IntegerVal:Ascend-Disconnect-Cause}

which will prepend a "0" to whatever is there (or not).

I haven't tested it, but please let me know how it works.

regards

Hugh


On 23 Apr 2006, at 02:27, Claudio Lapidus wrote:

> Hello all
>
> Is there any way to achieve the goal stated below through
> configuration? I mean, without resorting to a hook.
>
> thanks in advance
> cl.
>
>
> On 4/19/06, Claudio Lapidus <clapidus at gmail.com> wrote:
>> Hello Mike,
>>
>> On 4/19/06, Mike McCauley <mikem at open.com.au> wrote:
>>>>> we have not been able to reproduce this problem here.
>>
>> Ok, it seems I've shot my own foot here: the culprit was the  
>> following
>> line in the config file:
>>
>> AcctLogFileFormat   %d/%m/%y %H:%M:%S,site2,,,,,,,,,%{User-Name},%R,\
>>                    %{GlobalVar:nas_id},,,%{NAS-Port},\
>>                    ,,%{Framed-IP-Address},%{Calling-Station-Id},\
>>                    %{Called-Station-Id},%{Acct-Session-Id},\
>>                    ,,%{Acct-Session-Time},,%{Acct-Input-Octets},\
>>                    %{Acct-Output-Octets},,,,,,,,
>>>>>                 %{IntegerVal:Ascend-Disconnect-Cause},,,\
>>                    %{IntegerVal:Acct-Terminate- 
>> Cause},,,,,,,,,,,,,,,,,,\
>>
>> %{NAS-Identifier},,%{GlobalVar:service_name},,,,,,,,,,,,,,End
>>
>> which is meant to produce a report for a legacy application which
>> needs this particular format. The error fires when
>> Ascend-Disconnect-Cause isn't present in the original packet, which
>> leads me into a different question: is it possible somehow to
>> conditionally include an attribute reference in this clause?
>>
>> Example: only apply IntegerVal if the attribute is present, otherwise
>> use 0 (or some other text defined through configuration). I thought
>> the %{Eval:expression} construct could have been useful in this
>> context, especially if I could nest IntegerVal inside it (probably
>> yes). Too bad it is no longer available.
>>
>> best regards
>> cl.
>>
>
> --
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' with
> 'unsubscribe radiator' in the body of the message.


NB:

Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (www.open.com.au/archives/ 
radiator)?
Have you had a quick look on Google (www.google.com)?
Have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.


--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list