]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
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:32:22 +0000 (12:32 +0100)
raddb/sites-available/default

index f605285584618206581cce392a0e3fb96fa65bbb..365f34fa0841f239873fa60d529f805d30e9e43c 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}}"
@@ -380,6 +382,20 @@ accounting {
        #  See "Accounting queries" in sql.conf
 #      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.