]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add postauth_query for mssql 685/head
authorSylph Lin <sylph.lin@gmail.com>
Fri, 13 Jun 2014 10:18:29 +0000 (10:18 +0000)
committerSylph Lin <sylph.lin@gmail.com>
Fri, 13 Jun 2014 10:18:29 +0000 (10:18 +0000)
raddb/sql/mssql/dialup.conf

index e8c1f7caf2c393550fbd8d64d56cfe32908f7262..9b8c54748640505dee2b454ea8fb36b80a85bc81 100644 (file)
        # removed. These fields are processing by a database
        accounting_stop_query_alt = "INSERT into ${acct_table2} (AcctSessionId, AcctUniqueId, UserName, Realm, NASIPAddress, NASPort, NASPortType, AcctStopTime, AcctSessionTime, AcctAuthentic, ConnectInfo_start, ConnectInfo_stop, AcctInputOctets, AcctOutputOctets, CalledStationId, CallingStationId, AcctTerminateCause, ServiceType, FramedProtocol, FramedIPAddress, AcctStartDelay, AcctStopDelay) values('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port-Id}', '%{NAS-Port-Type}', '%S', '%{Acct-Session-Time}', '%{Acct-Authentic}', '', '%{Connect-Info}', '%{Acct-Input-Octets}', '%{Acct-Output-Octets}', '%{Called-Station-Id}', '%{Calling-Station-Id}', '%{Acct-Terminate-Cause}', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '0', '%{Acct-Delay-Time:-0}')"
 
+       #######################################################################
+       # Authentication Logging Queries
+       #######################################################################
+       # postauth_query                - Insert some info after authentication
+       #######################################################################
+
+       postauth_query = "INSERT INTO ${postauth_table} \
+                          (username, pass, reply, authdate) \
+                          VALUES ( \
+                          '%{User-Name}', \
+                          '%{%{User-Password}:-%{Chap-Password}}', \
+                          '%{reply:Packet-Type}', '%S')"
+