]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Added notes on use of FreeRADIUS-Acct-Session-Start-Time
authorAlan T. DeKok <aland@freeradius.org>
Mon, 7 Dec 2009 12:24:14 +0000 (13:24 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 7 Dec 2009 12:24:59 +0000 (13:24 +0100)
raddb/sites-available/default

index 184baa73d40c89323c666a6c20d7b7b21fe03f94..f605285584618206581cce392a0e3fb96fa65bbb 100644 (file)
@@ -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.