Added notes on SQL && packets with zero session time
authorAlan T. DeKok <aland@freeradius.org>
Fri, 18 Dec 2009 11:31:38 +0000 (12:31 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 18 Dec 2009 11:31:38 +0000 (12:31 +0100)
raddb/sites-available/default

index f605285..365f34f 100644 (file)
@@ -320,6 +320,8 @@ preacct {
        #  The code below creates an explicit start time, which can
        #  then be used in other modules.
        #
+       #  The start time is: NOW - delay - session_length
+       #
 
 #        update request {
 #              FreeRADIUS-Acct-Session-Start-Time = "%{expr: %l - %{%{Acct-Session-Time}:-0} - %{%{Acct-Delay-Time}:-0}}"
@@ -381,6 +383,20 @@ accounting {
 #      sql
 
        #
+       #  If you receive stop packets with zero session length,
+       #  they will NOT be logged in the database.  The SQL module
+       #  will print a message (only in debugging mode), and will
+       #  return "noop".
+       #
+       #  You can ignore these packets by uncommenting the following
+       #  three lines.  Otherwise, the server will not respond to the
+       #  accounting request, and the NAS will retransmit.
+       #
+#      if (noop) {
+#              ok
+#      }
+
+       #
        #  Instead of sending the query to the SQL server,
        #  write it into a log file.
        #