(RADIATOR) Expansion of %G and other Time Characters
Hugh Irvine
hugh at open.com.au
Thu Oct 30 18:17:36 CST 2003
Hello Andrew -
There does not appear to be a problem with Radiator 3.7.1.
This test configuration:
AcctLogFileName ./detail-%G
gives this result:
detail-Oct 31, 2003 11:11:21
Have a look at the code in "Radius/Util.pm" and you will see the
entries for "A", "B", "F" and "G".
# From current time
'B', sub {Radius::Util::strftime('%b %e, %Y %H:%M', time)},
'G', sub {Radius::Util::strftime('%b %e, %Y %H:%M:%S', time)},
.....
# Times from Timestamp in the current packet (if any)
'E', sub { $cpacket && $cpacket->{RecvTime} ? time -
$cpacket->{RecvTime} : undef },
'b', sub { $ptime },
'A', sub { return unless $ptime; Radius::Util::strftime('%b %e, %Y
%H:%M', $ptime)},
'F', sub { return unless $ptime; Radius::Util::strftime('%b %e, %Y
%H:%M:%S', $ptime)},
....
regards
Hugh
On 31/10/2003, at 10:56 AM, Andrew Stevenson wrote:
> Hi,
>
> I am using SessionDatabase SQL and my AddQuery tries to insert '%G'
> into
> the database. %G should expand to "The current time in extended SQL
> date
> format including seconds" according to the manual but sadly it doesn't
> seem to for me - from the log it tries to insert it literally. %t
> expands
> fine.
>
> I think the problem is that G is missing from %conversions in
> Radius::Util.pm. There actually seems to be a number of conversions in
> the
> manual that don't seem to appear in this hash...
>
> Thanks,
>
> Andrew
> ===
> 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, 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