]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Added "Interim-Update" as a copy of "Alive"
authorAlan T. DeKok <aland@freeradius.org>
Thu, 15 Mar 2012 21:37:22 +0000 (17:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 15 Mar 2012 21:37:22 +0000 (17:37 -0400)
raddb/modules/sql_log

index aad8c559f2620c45d2d3f50514c7b8b0ec691746..344cadec24a82d75e7e68563d86e71d3adc54dc6 100644 (file)
@@ -48,6 +48,13 @@ sql_log {
         ('%{Acct-Session-Id}', '%{User-Name}', '%{NAS-IP-Address}', \
         '%{Framed-IP-Address}', '0', '0', '%{Acct-Session-Time}','');"
 
+       # The same as "Alive"
+       Interim-Update = "INSERT INTO ${acct_table} (AcctSessionId, UserName, \
+        NASIPAddress, FramedIPAddress, AcctStartTime, AcctStopTime, \
+        AcctSessionTime, AcctTerminateCause) VALUES                 \
+        ('%{Acct-Session-Id}', '%{User-Name}', '%{NAS-IP-Address}', \
+        '%{Framed-IP-Address}', '0', '0', '%{Acct-Session-Time}','');"
+
        Post-Auth = "INSERT INTO ${postauth_table}                   \
         (username, pass, reply, authdate) VALUES                    \
         ('%{User-Name}', '%{User-Password:-Chap-Password}',         \