<div dir="ltr"><div><div><div><div><div><div><div><div><div><span style="font-family:trebuchet ms,sans-serif">Dear List & Alan D. Greetings.<br><br></span></div><span style="font-family:trebuchet ms,sans-serif">I read the wiki documentation & also checked the mail archive before posting on the list. Please accept my apologies if topic has been replied before. My "noresetcounter" works fine as expected but <b>"sql daily counter"</b> also do not reset everyday. i tried to dig lot but could not understand the cause. then i upgrade the Freeradius installation from v2.1.12.x to v2.2 but still, daily counter do not reset. i need your help. Due to size restriction i will reduce the output information </span><span style="font-family:trebuchet ms,sans-serif">but i am willing to send more info on request. if a user logs in for 3600 seconds, he can never login again even next day when counting through daily counter, daily counter behaves like noresetcounter. <br>
</span></div><span style="font-family:trebuchet ms,sans-serif"><br><b>sqlcounter dailycounter</b> {<br> counter-name = "Daily-Session-Time"<br> check-name = "Max-Daily-Session"<br>
reply-name = "Session-Timeout"<br> sqlmod-inst = "sql"<br> key = "User-Name"<br> reset = "daily"<br> cache-size = 5000<br>
<font size="1"><font>query = "SELECT SUM(acctsessiontime - GREATEST((%b-UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='%{%k}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '%b'"<br>
}</font><br></font><br>==================================================================================<br><b>Attributes applied to the radius profile for the user:</b><br><br></span></div><span style="font-family:trebuchet ms,sans-serif">Check Items: <br>
</span></div><div><span style="font-family:trebuchet ms,sans-serif">Session-Timeout = 3600<br></span></div></div><span style="font-family:trebuchet ms,sans-serif">Max-Daily-Session = 3600<br><br></span></div><span style="font-family:trebuchet ms,sans-serif">Reply Items:<br>
</span></div><span style="font-family:trebuchet ms,sans-serif">ideal-Timeout = 60<br></span></div><span style="font-family:trebuchet ms,sans-serif">Acct-Interim-Interval = 120<br></span></div><span style="font-family:trebuchet ms,sans-serif">Session-Timeout = 3600<br>
</span>==================================================================================<br><div><div><div><div><div><div><div><div><div><span style="font-family:trebuchet ms,sans-serif">[root@radius mike]# radiusd -X<br>
FreeRADIUS <b>Version 2.2.0</b>, for host x86_64-unknown-linux-gnu, built on Oct 18 2012 at 13:58:38<br>Copyright (C) 1999-2012 The FreeRADIUS server project and contributors.<br>There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A<br>
PARTICULAR PURPOSE.<br>You may redistribute copies of FreeRADIUS under the terms of the<br>GNU General Public License v2.<br>Starting - reading configuration files ...<br>including configuration file /etc/raddb/radiusd.conf<br>
including files in directory /etc/raddb/modules/<br>including configuration file /etc/raddb/sql/mysql/counter.conf<br>including configuration file /etc/raddb/sites-enabled/default<br>more includes ..............<br><br>main {<br>
user = "radiusd"<br> group = "radiusd"<br> allow_core_dumps = no<br>}<br>including dictionary file /etc/raddb/dictionary<br>main {<br> name = "radiusd"<br> prefix = "/usr"<br>
localstatedir = "/var"<br> sbindir = "/usr/sbin"<br> logdir = "/var/log/radius"<br> run_dir = "/var/run/radiusd"<br> libdir = "/usr/lib64/freeradius"<br>
radacctdir = "/var/log/radius/radacct"<br> hostname_lookups = no<br> max_request_time = 30<br> cleanup_delay = 5<br> max_requests = 1024<br> pidfile = "/var/run/radiusd/radiusd.pid"<br>
checkrad = "/usr/sbin/checkrad"<br> debug_level = 0<br> proxy_requests = yes<br> log {<br> stripped_names = no<br> auth = no<br> auth_badpass = no<br> auth_goodpass = no<br>
}<br> security {<br> max_attributes = 200<br> reject_delay = 1<br> status_server = yes<br> }<br>}<br>radiusd: #### Loading Realms and Home Servers ####<br> proxy server {<br> retry_delay = 5<br>
retry_count = 3<br> default_fallback = no<br> dead_time = 120<br> wake_all_if_all_dead = no<br> }<br> home_server localhost {<br> ipaddr = 127.0.0.1<br> port = 1812<br> type = "auth"<br>
secret = "testing123"<br> response_window = 20<br> max_outstanding = 65536<br> require_message_authenticator = yes<br> zombie_period = 40<br> status_check = "status-server"<br>
ping_interval = 30<br> check_interval = 30<br> num_answers_to_alive = 3<br> num_pings_to_alive = 3<br> revive_interval = 120<br> status_check_timeout = 4<br> coa {<br> irt = 2<br>
mrt = 16<br> mrc = 5<br> mrd = 30<br> }<br> }<br> home_server_pool my_auth_failover {<br> type = fail-over<br> home_server = localhost<br> }<br> realm <a href="http://example.com">example.com</a> {<br>
auth_pool = my_auth_failover<br> }<br> realm LOCAL {<br> }<br>radiusd: #### Loading Clients ####<br>radiusd: #### Instantiating modules ####<br> instantiate {<br> Module: Linked to module rlm_exec<br> Module: Instantiating module "exec" from file /etc/raddb/modules/exec<br>
exec {<br> wait = no<br> input_pairs = "request"<br> shell_escape = yes<br> }<br><br>Module: Instantiating module "dailycounter" from file /etc/raddb/sql/mysql/counter.conf<br> sqlcounter dailycounter {<br>
counter-name = "Daily-Session-Time"<br> check-name = "Max-Daily-Session"<br> reply-name = "Session-Timeout"<br> key = "User-Name"<br> sqlmod-inst = "sql"<br>
query = "SELECT SUM(acctsessiontime - GREATEST((%b-UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='%{%k}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '%b'"<br>
reset = "daily"<br> safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"<br> }<br>rlm_sqlcounter: Check attribute Max-Daily-Session is number 11277<br>
rlm_sqlcounter: Current Time: 1358236678 [2013-01-15 07:57:58], Next reset 1358294400 [2013-01-16 00:00:00]<br>rlm_sqlcounter: Current Time: 1358236678 [2013-01-15 07:57:58], Prev reset 1358208000 [2013-01-15 00:00:00]<br>
}<br> Module: Linked to module rlm_sql<br> Module: Instantiating module "sql" from file /etc/raddb/sql.conf<br> sql {<br> driver = "rlm_sql_mysql"<br> server = "localhost"<br>
port = "3306"<br> login = "radius"<br> password = "XXXXXX"<br> radius_db = "radius"<br> read_groups = yes<br> sqltrace = no<br> sqltracefile = "/var/log/radius/sqltrace.sql"<br>
readclients = yes<br> deletestalesessions = yes<br> num_sql_socks = 5<br> lifetime = 0<br> max_queries = 0<br> sql_user_name = "%{User-Name}"<br> default_user_profile = ""<br>
nas_query = "SELECT id, nasname, shortname, type, secret, server FROM nas"<br> authorize_check_query = "SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id"<br>
authorize_reply_query = "SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id"<br> authorize_group_check_query = "SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '%{Sql-Group}' ORDER BY id"<br>
authorize_group_reply_query = "SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = '%{Sql-Group}' ORDER BY id"<br> accounting_onoff_query = " UPDATE radacct SET acctstoptime = '%S', acctsessiontime = unix_timestamp('%S') - unix_timestamp(acctstarttime), acctterminatecause = '%{Acct-Terminate-Cause}', acctstopdelay = %{%{Acct-Delay-Time}:-0} WHERE acctstoptime IS NULL AND nasipaddress = '%{NAS-IP-Address}' AND acctstarttime <= '%S'"<br>
accounting_update_query = " UPDATE radacct SET framedipaddress = '%{Framed-IP-Address}', acctsessiontime = '%{Acct-Session-Time}', acctinputoctets = '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', acctoutputoctets = '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}' WHERE acctsessionid = '%{Acct-Session-Id}' AND username = '%{SQL-User-Name}' AND nasipaddress = '%{NAS-IP-Address}'"<br>
accounting_update_query_alt = " INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctsessiontime, acctauthentic, connectinfo_start, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, servicetype, framedprotocol, framedipaddress, acctstartdelay, xascendsessionsvrkey) VALUES ('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port}', '%{NAS-Port-Type}', DATE_SUB('%S', INTERVAL (%{%{Acct-Session-Time}:-0} + %{%{Acct-Delay-Time}:-0}) SECOND), '%{Acct-Session-Time}', '%{Acct-Authentic}', '', '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}', '%{Called-Station-Id}', '%{Calling-Station-Id}', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '0', '%{X-Ascend-Session-Svr-Key}')"<br>
accounting_start_query = " INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port}', '%{NAS-Port-Type}', '%S', NULL, '0', '%{Acct-Authentic}', '%{Connect-Info}', '', '0', '0', '%{Called-Station-Id}', '%{Calling-Station-Id}', '', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '%{%{Acct-Delay-Time}:-0}', '0', '%{X-Ascend-Session-Svr-Key}')"<br>
accounting_start_query_alt = " UPDATE radacct SET acctstarttime = '%S', acctstartdelay = '%{%{Acct-Delay-Time}:-0}', connectinfo_start = '%{Connect-Info}' WHERE acctsessionid = '%{Acct-Session-Id}' AND username = '%{SQL-User-Name}' AND nasipaddress = '%{NAS-IP-Address}'"<br>
accounting_stop_query = " UPDATE radacct SET acctstoptime = '%S', acctsessiontime = '%{Acct-Session-Time}', acctinputoctets = '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', acctoutputoctets = '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}', acctterminatecause = '%{Acct-Terminate-Cause}', acctstopdelay = '%{%{Acct-Delay-Time}:-0}', connectinfo_stop = '%{Connect-Info}' WHERE acctsessionid = '%{Acct-Session-Id}' AND username = '%{SQL-User-Name}' AND nasipaddress = '%{NAS-IP-Address}'"<br>
accounting_stop_query_alt = " INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, 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}', '%{NAS-Port-Type}', DATE_SUB('%S', INTERVAL (%{%{Acct-Session-Time}:-0} + %{%{Acct-Delay-Time}:-0}) SECOND), '%S', '%{Acct-Session-Time}', '%{Acct-Authentic}', '', '%{Connect-Info}', '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}', '%{Called-Station-Id}', '%{Calling-Station-Id}', '%{Acct-Terminate-Cause}', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '0', '%{%{Acct-Delay-Time}:-0}')"<br>
group_membership_query = "SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority"<br> connect_failure_retry_delay = 60<br> simul_count_query = ""<br>
simul_verify_query = "SELECT radacctid, acctsessionid, username, nasipaddress, nasportid, framedipaddress, callingstationid, framedprotocol FROM radacct WHERE username = '%{SQL-User-Name}' AND acctstoptime IS NULL"<br>
postauth_query = "INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '%{User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S')"<br>
safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"<br> }<br>rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked<br>rlm_sql (sql): Attempting to connect to radius@localhost:3306/radius<br>
rlm_sql (sql): starting 0<br>rlm_sql (sql): Attempting to connect rlm_sql_mysql #0<br>rlm_sql_mysql: Starting connect to MySQL server for #0<br>rlm_sql (sql): Connected new DB handle, #0<br>rlm_sql (sql): starting 1<br>rlm_sql (sql): Attempting to connect rlm_sql_mysql #1<br>
rlm_sql_mysql: Starting connect to MySQL server for #1<br>rlm_sql (sql): Connected new DB handle, #1<br>rlm_sql (sql): Processing generate_sql_clients<br>rlm_sql (sql) in generate_sql_clients: query is SELECT id, nasname, shortname, type, secret, server FROM nas<br>
rlm_sql (sql): Reserving sql socket id: 4<br>rlm_sql (sql): Read entry nasname=127.0.0.1,shortname=localhost,secret=</span><span style="font-family:trebuchet ms,sans-serif"><span style="font-family:trebuchet ms,sans-serif">jhr75hitflcv98rk<br>
</span>rlm_sql (sql): Adding client 127.0.0.1 (localhost, server=<none>) to clients list<br>rlm_sql (sql): Read entry nasname=</span><span style="font-family:trebuchet ms,sans-serif"><span style="font-family:trebuchet ms,sans-serif">172.21.45.33</span>,shortname=pfSense Box,secret=jhr75hitflcv98rk<br>
rlm_sql (sql): Adding client </span><span style="font-family:trebuchet ms,sans-serif"><span style="font-family:trebuchet ms,sans-serif">172.21.45.33</span> (Box, server=<none>) to clients list<br><br>rlm_sql (sql): Released sql socket id: 4<br>
Module: Checking preacct {...} for more modules to load<br> Module: Checking accounting {...} for more modules to load<br> Module: Linked to module rlm_detail<br> Module: Instantiating module "detail" from file /etc/raddb/modules/detail<br>
detail {<br> detailfile = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"<br> header = "%t"<br> detailperm = 384<br> dirperm = 493<br>
locking = no<br> log_packet_header = no<br> }<br> Module: Linked to module rlm_attr_filter<br> Module: Instantiating module "attr_filter.accounting_response" from file /etc/raddb/modules/attr_filter<br>
attr_filter attr_filter.accounting_response {<br> attrsfile = "/etc/raddb/attrs.accounting_response"<br> key = "%{User-Name}"<br> relaxed = no<br> }<br>reading pairlist file /etc/raddb/attrs.accounting_response<br>
Module: Checking session {...} for more modules to load<br> Module: Linked to module rlm_radutmp<br> Module: Instantiating module "radutmp" from file /etc/raddb/modules/radutmp<br> radutmp {<br> filename = "/var/log/radius/radutmp"<br>
username = "%{User-Name}"<br> case_sensitive = yes<br> check_with_nas = yes<br> perm = 384<br> callerid = yes<br> }<br>reading pairlist file /etc/raddb/attrs.access_reject<br>
} # modules<br>} # server<br><br>reading pairlist file /etc/raddb/users<br>reading pairlist file /etc/raddb/acct_users<br>reading pairlist file /etc/raddb/preproxy_users<br> Module: Checking session {...} for more modules to load<br>
Module: Checking post-proxy {...} for more modules to load<br> Module: Checking post-auth {...} for more modules to load<br> } # modules<br>} # server<br>radiusd: #### Opening IP addresses and Ports ####<br>listen {<br> type = "auth"<br>
ipaddr = *<br> port = 0<br>}<br>listen {<br> type = "acct"<br> ipaddr = *<br> port = 0<br>}<br>listen {<br> type = "control"<br> listen {<br> socket = "/var/run/radiusd/radiusd.sock"<br>
}<br>}<br>listen {<br> type = "auth"<br> ipaddr = 127.0.0.1<br> port = 18120<br>}<br> ... adding new socket proxy address * port 55408<br>Listening on authentication address * port 1812<br>
Listening on accounting address * port 1813<br>Listening on command file /var/run/radiusd/radiusd.sock<br>Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel<br>Listening on proxy address * port 1814<br>
<b>Ready to process requests.</b><br>====================================================================================<br><br><b>USER LOGIN REQUEST: THIS USER WAS LAST LOGIN 4 DAYS BACK, ONLY FIRST & LAST TIME. </b><br>
<br>rad_recv: Access-Request packet from host 127.0.0.1 port 51696, id=136, length=78<br> User-Name = "russell"<br> User-Password = "rootadmin"<br> NAS-IP-Address = 172.21.45.33<br>
NAS-Port = 1812<br> Message-Authenticator = 0x7c4bb5c2fa912975d790cb33058d50c5<br># Executing section authorize from file /etc/raddb/sites-enabled/default<br>+- entering group authorize {...}<br>++[preprocess] returns ok<br>
++[chap] returns noop<br>++[mschap] returns noop<br>++[digest] returns noop<br>[suffix] No '@' in User-Name = "russell", looking up realm NULL<br>[suffix] No such realm "NULL"<br>++[suffix] returns noop<br>
[eap] No EAP-Message, not doing EAP<br>++[eap] returns noop<br>[sql] expand: %{User-Name} -> russell<br>[sql] sql_set_user escaped user --> 'russell'<br>rlm_sql (sql): Reserving sql socket id: 2<br>[sql] expand: SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id -> SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'russell' ORDER BY id<br>
[sql] User found in radcheck table<br>[sql] expand: SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id -> SELECT id, username, attribute, value, op FROM radreply WHERE username = 'russell' ORDER BY id<br>
[sql] expand: SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority -> SELECT groupname FROM radusergroup WHERE username = 'russell' ORDER BY priority<br>
[sql] expand: SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '%{Sql-Group}' ORDER BY id -> SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = 'One_Hour_Access' ORDER BY id<br>
[sql] User found in group One_Hour_Access<br>[sql] expand: SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = '%{Sql-Group}' ORDER BY id -> SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'One_Hour_Access' ORDER BY id<br>
rlm_sql (sql): Released sql socket id: 2<br>++[sql] returns ok<br>[expiration] Checking Expiration time: '20 Jan 2013'<br>++[expiration] returns ok<br>++[logintime] returns noop<br>rlm_sqlcounter: Entering module authorize code<br>
WARNING: Please replace '%k' with '${key}'<br>sqlcounter_expand: 'SELECT SUM(acctsessiontime - GREATEST((1358208000-UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='%{User-Name}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1358208000''<br>
[dailycounter] expand: SELECT SUM(acctsessiontime - GREATEST((1358208000-UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='%{User-Name}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1358208000' -> SELECT SUM(acctsessiontime - GREATEST((1358208000-UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='russell' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1358208000'<br>
WARNING: Please replace '%S' with '${sqlmod-inst}'<br>sqlcounter_expand: '%{sql:SELECT SUM(acctsessiontime - GREATEST((1358208000-UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='russell' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1358208000'}'<br>
[dailycounter] sql_xlat<br>[dailycounter] expand: %{User-Name} -> russell<br>[dailycounter] sql_set_user escaped user --> 'russell'<br>[dailycounter] expand: SELECT SUM(acctsessiontime - GREATEST((1358208000-UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='russell' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1358208000' -> SELECT SUM(acctsessiontime - GREATEST((1358208000-UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='russell' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1358208000'<br>
rlm_sql (sql): Reserving sql socket id: 1<br>[dailycounter] sql_xlat finished<br>rlm_sql (sql): Released sql socket id: 1<br>[dailycounter] expand: %{sql:SELECT SUM(acctsessiontime - GREATEST((1358208000-UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='russell' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1358208000'} -> 2146567019<br>
rlm_sqlcounter: (Check item - counter) is less than zero<br><b>rlm_sqlcounter: Rejected user russell, check_item=3600, counter=2576267</b><br>++[dailycounter] returns reject<br>Using Post-Auth-Type REJECT<br># Executing group from file /etc/raddb/sites-enabled/default<br>
+- entering group REJECT {...}<br>[sql] expand: %{User-Name} -> russell<br>[sql] sql_set_user escaped user --> 'russell'<br>[sql] expand: %{User-Password} -> rootadmin<br>[sql] expand: INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '%{User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S') -> INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'russell', 'rootadmin', 'Access-Reject', '2013-01-15 07:59:31')<br>
rlm_sql (sql) in sql_postauth: query is INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'russell', 'rootadmin', 'Access-Reject', '2013-01-15 07:59:31')<br>
rlm_sql (sql): Reserving sql socket id: 0<br>rlm_sql (sql): Released sql socket id: 0<br>++[sql] returns ok<br>[attr_filter.access_reject] expand: %{User-Name} -> russell<br>attr_filter: Matched entry DEFAULT at line 11<br>
++[attr_filter.access_reject] returns updated<br>Delaying reject of request 1 for 1 seconds<br>Going to the next request<br>Waking up in 0.9 seconds.<br>Sending delayed reject for request 1<br>Sending Access-Reject of id 136 to 127.0.0.1 port 51696<br>
<b>Reply-Message = "Your maximum daily usage time has been reached"</b><br>Waking up in 4.9 seconds.<br>Cleaning up request 1 ID 136 with timestamp +93<br>Ready to process request<br><br><br>I would grateful for your assistance & advice.. <br>
</span><br></div><div><span style="font-family:trebuchet ms,sans-serif">Thanks </span>/ Russell<br></div></div></div></div></div></div></div></div></div></div>