From: Alan T. DeKok Date: Mon, 7 Dec 2009 12:24:14 +0000 (+0100) Subject: Added notes on use of FreeRADIUS-Acct-Session-Start-Time X-Git-Tag: release_2_1_8~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bf2c645f818e663b2e5e8d636fefd59a78fdf50;p=thirdparty%2Ffreeradius-server.git Added notes on use of FreeRADIUS-Acct-Session-Start-Time --- diff --git a/raddb/sites-available/default b/raddb/sites-available/default index 184baa73d40..f6052855846 100644 --- a/raddb/sites-available/default +++ b/raddb/sites-available/default @@ -310,6 +310,22 @@ authenticate { preacct { preprocess + # + # Session start times are *implied* in RADIUS. + # The NAS never sends a "start time". Instead, it sends + # a start packet, *possibly* with an Acct-Delay-Time. + # The server is supposed to conclude that the start time + # was "Acct-Delay-Time" seconds in the past. + # + # The code below creates an explicit start time, which can + # then be used in other modules. + # + +# update request { +# FreeRADIUS-Acct-Session-Start-Time = "%{expr: %l - %{%{Acct-Session-Time}:-0} - %{%{Acct-Delay-Time}:-0}}" +# } + + # # Ensure that we have a semi-unique identifier for every # request, and many NAS boxes are broken.