(RADIATOR) Problem with Timestamp

Hugh Irvine hugh at open.com.au
Thu Apr 24 18:26:17 CDT 2003


Hello Sergio -

The Timestamp attribute gets added to the incoming request *after* the 
PreProcessingHook is run (as you have discovered).

You should use a PreAuthHook instead.

Have a look at "Radius/Handler.pm -> sub handle_request".

regards

Hugh


On Friday, Apr 25, 2003, at 01:52 Australia/Melbourne, Sergio Gonzalez 
wrote:

> *This message was transferred with a trial version of CommuniGate(tm) 
> Pro*
> Hello there.
>
> I've been working on a hook to make some discounts on user's available 
> time. I've a problem and I was wondering if someone can help me with 
> this.
>
> When I receive a Acct Stop Type I catch the packet and try to see the 
> Timestamp for the packet. This is because I need to make the discounts 
> based on that value. I assumed I could use
>
> ${$_[0]}->get_attr('Timestamp')
>
> but I found that attribute isn't set into the request stop packet. I 
> saw notice Timestamp attribute is set (for example) when another 
> RADIUS send the stop request, but not when it was originated by a RAS. 
> Well, then I tried
>
> $Radius::Radius::Timestamp
>
> as a Timestamp. but I couldn't get the value either. Looking at some 
> examples of AcctColumnDef I found this:
>
>          AcctColumnDef  TIME_STAMP,Timestamp,integer
>                                                         ^^^^^^^^^^^^
>
> How can I get that value inside my hook?
>
> My hook is a PreProcessingHook one.
>
> Thanks in advance for the help
>
>
> Sergio Alejandro Gonzalez
> Director Operativo
> Network and Services Field Manager
> SkyNet de Colombia.
> Calle 100 No. 8A-55 Of. 711
> Bogota, Cundinamarca
> Colombia, South America.
> Tel: 57 (+1) 6 422 020
> Cel: 57 (+3)/(03315) 3551034
> Pager: 5405555, 3469999 Cod 2010
>
> ===
> 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 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 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.

===
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