Ciao Alby -

You can either use the %{SQL:….} special character if you are using an SQL 
database, or write a little hook to generate a pseudo-attribute in the current 
request.

See section 5.2 in the Radiator 4.11 reference manual, and/or the example hooks 
in "goodies/hooks.txt".

regards

Hugh


On 12 Feb 2013, at 20:59, Alby <[email protected]> wrote:

> Dear all,
> 
> My need is to add the strings "AM" or "PM" to the Radiator's accounting file 
> name because I need to generate two accounting files at day, one that 
> contains the accounting entry from 00:00 to 12:00 and one from 12:00 to 
> 00:00. In my opinion the best way to do this is to include the string AM or 
> PM in the accounting file name, so I can have
> tot_YYYYMMDD_AM.acct and
> tot_YYYMMDD_PM.acct.
> I've noticed the %p option in the Radiator manual, but this is used for SQL 
> date format. When used into AcctLogFileName, it prints the Timestamp second 
> (0-59), and this is not my goal. 
> By the way, I'm still using Radiator 4.9
> 
> Could anyone help me?
> Thank you very much!
> Alberto Albesiano
> 
> _______________________________________________
> radiator mailing list
> [email protected]
> http://www.open.com.au/mailman/listinfo/radiator


--

Hugh Irvine
[email protected]

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, 
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. 
Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.

_______________________________________________
radiator mailing list
[email protected]
http://www.open.com.au/mailman/listinfo/radiator

Reply via email to