(RADIATOR) Calculating Session-Timeout based on Expiration?

Radius Admin radius at vqbn.com
Sat Nov 16 20:44:13 CST 2002


Brian,

You can try something like this as well.

<AuthBy SQL>

AuthSQLStatement update USERS set TIMELEFT=%t+86400 where LOGIN=0

AuthSelect select PASSWORD, TIMELEFT-%t as TIMELEFT

AcctSQLStatement update USERS set LOGIN=LOGIN+1

</AuthBy>

Regards



----- Original Message ----- 
From: "Hugh Irvine" <hugh at open.com.au>
To: <signal at shreve.net>
Cc: <radiator at open.com.au>
Sent: Saturday, November 16, 2002 5:05 AM
Subject: Re: (RADIATOR) Calculating Session-Timeout based on Expiration?


> 
> Hello Brian -
> 
> I think you will need to write a Hook to do this.
> 
> There are some example hooks in the file "goodies/hooks.txt".
> 
> regards
> 
> Hugh
> 
> 
> On Saturday, Nov 16, 2002, at 07:58 Australia/Melbourne, Brian wrote:
> 
> >
> > I know that Radiator can calculate the Session-Timeout, as an offset 
> > from the
> > Time setting, using the "until Time" syntax.  Does such an option 
> > exist for
> > Expiration as well?
> >
> > For example, I want to set the Expiration to a unix timestamp, so I get
> > granularity.  I want the Session-Timeout passed back to the NAS to be 
> > the
> > difference between NOW and Expiration.  Is this possible?
> >
> > Brian
> >
> > -- 
> > -----------------------------------------------
> > Brian Feeny, CCIE #8036    e: signal at shreve.net
> > Network Engineer    p: 318.222.2638x109 
> > ShreveNet Inc.    f: 318.221.6612
> >      
> >
> > ===
> > 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.
> >
> >
> 
> -- 
> 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.
> 

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