(RADIATOR) how to deal with time format?

Hugh Irvine hugh at open.com.au
Fri Aug 31 18:30:26 CDT 2001


Hello Yije -

You will have to write a Hook to parse the string and create a 
pseudo-attribute in the request packet that you can then insert into 
the database table with an AcctSQLStatement.

There are some example hooks (you probably want a PreClientHook) in 
the file called "goodies/hooks.txt" in the Radiator distribution.

hth

Hugh


At 15:03 -0700 01/8/30, yije wrote:
>?My radius client will send me the attributes in accounting requests with
>CISCO format like:
>    h323-connect-time=15:41:44.025 UTC Mon Oct 9 2000
>What could I do in Radiator to transform this format to normal Database
>format in Oracle/MS SQL, which looks like 2000/10/09 15:41:44 when I
>try to insert a new record into acct table?
>     I use acctstatement Insert command to record accounting info.
>
>Thanks!
>===
>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: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
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