From: Alan T. DeKok Date: Fri, 18 Dec 2009 11:31:38 +0000 (+0100) Subject: Added notes on SQL && packets with zero session time X-Git-Tag: release_2_1_8~13 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=1eb392b733a51218a9ece0e7271d8d9e220ed526;p=freeradius.git Added notes on SQL && packets with zero session time --- diff --git a/raddb/sites-available/default b/raddb/sites-available/default index f605285..365f34f 100644 --- a/raddb/sites-available/default +++ b/raddb/sites-available/default @@ -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. #