From: "Marcel Grandemange" <[email-masked]>
To: <[email-masked]>
Date: Thu, 2 Oct 2008 14:28:31 +0200

Starting - reading configuration files ...
reread_config:  reading radiusd.conf
Config:   including file: /usr/local/etc/raddb/proxy.conf
Config:   including file: /usr/local/etc/raddb/clients.conf
Config:   including file: /usr/local/etc/raddb/snmp.conf
Config:   including file: /usr/local/etc/raddb/sqlcounter.conf
Config:   including file: /usr/local/etc/raddb/sql.conf
Config:   including file: /usr/local/etc/raddb/sqlippool.conf
 main: prefix = "/usr/local"
 main: localstatedir = "/var"
 main: logdir = "/var/log"
 main: libdir = "/usr/local/lib"
 main: radacctdir = "/var/log/radacct"
 main: hostname_lookups = no
 main: snmp = no
 main: max_request_time = 30
 main: cleanup_delay = 5
 main: max_requests = 25600
 main: delete_blocked_requests = 0
 main: port = 0
 main: allow_core_dumps = no
 main: log_stripped_names = no
 main: log_file = "/var/log/radius.log"
 main: log_auth = yes
 main: log_auth_badpass = yes
 main: log_auth_goodpass = yes
 main: pidfile = "/var/run/radiusd/radiusd.pid"
 main: bind_address = 192.168.12.1 IP address [192.168.12.1]
 main: user = "(null)"
 main: group = "(null)"
 main: usercollide = no
 main: lower_user = "no"
 main: lower_pass = "no"
 main: nospace_user = "no"
 main: nospace_pass = "no"
 main: checkrad = "/usr/local/sbin/checkrad"
 main: proxy_requests = no
 proxy: retry_delay = 5
 proxy: retry_count = 3
 proxy: synchronous = no
 proxy: default_fallback = yes
 proxy: dead_time = 120
 proxy: post_proxy_authorize = no
 proxy: wake_all_if_all_dead = no
 security: max_attributes = 200
 security: reject_delay = 1
 security: status_server = no
 main: debug_level = 0
read_config_files:  reading dictionary
read_config_files:  reading naslist
Using deprecated naslist file.  Support for this will go away soon.
read_config_files:  reading clients
read_config_files:  reading realms
radiusd:  entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded exec 
 exec: wait = yes
 exec: program = "(null)"
 exec: input_pairs = "request"
 exec: output_pairs = "(null)"
 exec: packet_type = "(null)"
rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Module: Instantiated exec (exec) 
Module: Loaded expr 
Module: Instantiated expr (expr) 
Module: Loaded PAP 
 pap: encryption_scheme = "crypt"
 pap: auto_header = yes
Module: Instantiated pap (pap) 
Module: Loaded CHAP 
Module: Instantiated chap (chap) 
Module: Loaded MS-CHAP 
 mschap: use_mppe = yes
 mschap: require_encryption = no
 mschap: require_strong = no
 mschap: with_ntdomain_hack = no
 mschap: passwd = "(null)"
 mschap: ntlm_auth = "(null)"
Module: Instantiated mschap (mschap) 
Module: Loaded preprocess 
 preprocess: huntgroups = "/usr/local/etc/raddb/huntgroups"
 preprocess: hints = "/usr/local/etc/raddb/hints"
 preprocess: with_ascend_hack = no
 preprocess: ascend_channels_per_line = 23
 preprocess: with_ntdomain_hack = no
 preprocess: with_specialix_jetstream_hack = no
 preprocess: with_cisco_vsa_hack = no
 preprocess: with_alvarion_vsa_hack = no
Module: Instantiated preprocess (preprocess) 
Module: Loaded files 
 files: usersfile = "/usr/local/etc/raddb/users"
 files: acctusersfile = "/usr/local/etc/raddb/acct_users"
 files: preproxy_usersfile = "/usr/local/etc/raddb/preproxy_users"
 files: compat = "no"
Module: Instantiated files (files) 
Module: Loaded SQL 
 sql: driver = "rlm_sql_mysql"
 sql: server = "192.168.12.2"
 sql: port = ""
 sql: login = "radius"
 sql: password = "vg653gfd63bde76"
 sql: radius_db = "radius"
 sql: nas_table = "nas"
 sql: sqltrace = yes
 sql: sqltracefile = "/var/log/sqltrace.sql"
 sql: readclients = no
 sql: deletestalesessions = yes
 sql: num_sql_socks = 10
 sql: sql_user_name = "%{User-Name}"
 sql: default_user_profile = ""
 sql: query_on_not_found = no
 sql: authorize_check_query = "SELECT id, UserName, Attribute, Value, op
FROM radcheck           WHERE Username = '%{SQL-User-Name}'           ORDER
BY id"
 sql: authorize_reply_query = "SELECT id, UserName, Attribute, Value, op
FROM radreply           WHERE Username = '%{SQL-User-Name}'           ORDER
BY id"
 sql: authorize_group_check_query = "SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupche
ck.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE
usergroup.Username = '%{SQL-User-Name}' AND usergroup.GroupName =
radgroupcheck.GroupName ORDER BY radgroupcheck.id"
 sql: authorize_group_reply_query = "SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgrouprep
ly.Value,radgroupreply.op  FROM radgroupreply,usergroup WHERE
usergroup.Username = '%{SQL-User-Name}' AND usergroup.GroupName =
radgroupreply.GroupName ORDER BY radgroupreply.id"
 sql: accounting_onoff_query = "UPDATE radacct SET AcctStopTime='%S',
AcctSessionTime=unix_timestamp('%S') - unix_timestamp(AcctStartTime),
AcctTerminateCause='%{Acct-Terminate-Cause}', AcctStopDelay =
'%{Acct-Delay-Time}' WHERE AcctSessionTime=0 AND AcctStopTime=0 AND
NASIPAddress= '%{NAS-IP-Address}' AND AcctStartTime <= '%S'"
 sql: 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}'"
 sql: 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}')"
 sql: 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', '0',              '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}')"
 sql: accounting_start_query_alt = "UPDATE radacct SET AcctStartTime = '%S',
AcctStartDelay = '%{Acct-Delay-Time}', ConnectInfo_start = '%{Connect-Info}'
WHERE AcctSessionId = '%{Acct-Session-Id}' AND UserName = '%{SQL-User-Name}'
AND NASIPAddress = '%{NAS-IP-Address}'"
 sql: 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}'"
 sql: 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-Gigawo
 rds:-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}')"
 sql: group_membership_query = "SELECT GroupName FROM usergroup WHERE
UserName='%{SQL-User-Name}'"
 sql: connect_failure_retry_delay = 60
 sql: simul_count_query = "SELECT COUNT(*)                              FROM
radacct                              WHERE UserName='%{SQL-User-Name}'
AND AcctStopTime = 0"
 sql: simul_verify_query = "SELECT RadAcctId, AcctSessionId, UserName,
NASIPAddress, NASPortId, FramedIPAddress,
CallingStationId, FramedProtocol                                FROM radacct
WHERE UserName='%{SQL-User-Name}'                                AND
AcctStopTime = 0"
 sql: postauth_query = "INSERT into radpostauth (user, pass, reply, date)
values ('%{User-Name}', '%{User-Password:-Chap-Password}',
'%{reply:Packet-Type}', NOW())"
 sql: safe-characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
rlm_sql (sql): Attempting to connect to [email-masked]:/radius
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_mysql #0
rlm_sql_mysql: Starting connect to MySQL server for #0
rlm_sql (sql): Connected new DB handle, #0
rlm_sql (sql): starting 1
rlm_sql (sql): Attempting to connect rlm_sql_mysql #1
rlm_sql_mysql: Starting connect to MySQL server for #1
rlm_sql (sql): Connected new DB handle, #1
rlm_sql (sql): starting 2
rlm_sql (sql): Attempting to connect rlm_sql_mysql #2
rlm_sql_mysql: Starting connect to MySQL server for #2
rlm_sql (sql): Connected new DB handle, #2
rlm_sql (sql): starting 3
rlm_sql (sql): Attempting to connect rlm_sql_mysql #3
rlm_sql_mysql: Starting connect to MySQL server for #3
rlm_sql (sql): Connected new DB handle, #3
rlm_sql (sql): starting 4
rlm_sql (sql): Attempting to connect rlm_sql_mysql #4
rlm_sql_mysql: Starting connect to MySQL server for #4
rlm_sql (sql): Connected new DB handle, #4
rlm_sql (sql): starting 5
rlm_sql (sql): Attempting to connect rlm_sql_mysql #5
rlm_sql_mysql: Starting connect to MySQL server for #5
rlm_sql (sql): Connected new DB handle, #5
rlm_sql (sql): starting 6
rlm_sql (sql): Attempting to connect rlm_sql_mysql #6
rlm_sql_mysql: Starting connect to MySQL server for #6
rlm_sql (sql): Connected new DB handle, #6
rlm_sql (sql): starting 7
rlm_sql (sql): Attempting to connect rlm_sql_mysql #7
rlm_sql_mysql: Starting connect to MySQL server for #7
rlm_sql (sql): Connected new DB handle, #7
rlm_sql (sql): starting 8
rlm_sql (sql): Attempting to connect rlm_sql_mysql #8
rlm_sql_mysql: Starting connect to MySQL server for #8
rlm_sql (sql): Connected new DB handle, #8
rlm_sql (sql): starting 9
rlm_sql (sql): Attempting to connect rlm_sql_mysql #9
rlm_sql_mysql: Starting connect to MySQL server for #9
rlm_sql (sql): Connected new DB handle, #9
Module: Instantiated sql (sql) 
Module: Loaded SQL Counter 
 sqlcounter: counter-name = "Max-All-Session-Time"
 sqlcounter: check-name = "Max-All-Session"
 sqlcounter: reply-name = "(null)"
 sqlcounter: key = "User-Name"
 sqlcounter: sqlmod-inst = "sql"
 sqlcounter: query = "SELECT SUM(AcctSessionTime) FROM radacct WHERE
UserName='%{%k}'"
 sqlcounter: reset = "never"
 sqlcounter: safe-characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
rlm_sqlcounter: Reply attribute set to Session-Timeout.
rlm_sqlcounter: Counter attribute Max-All-Session-Time is number 1830
rlm_sqlcounter: Check attribute Max-All-Session is number 1831
rlm_sqlcounter: Current Time: 1222950419 [2008-10-02 14:26:59], Next reset 0
[2008-10-02 14:00:00]
rlm_sqlcounter: Current Time: 1222950419 [2008-10-02 14:26:59], Prev reset 0
[2008-10-02 14:00:00]
Module: Instantiated sqlcounter (noresetcounter) 
 sqlcounter: counter-name = "Daily-Session-Time"
 sqlcounter: check-name = "Max-Daily-Session"
 sqlcounter: reply-name = "(null)"
 sqlcounter: key = "User-Name"
 sqlcounter: sqlmod-inst = "sql"
 sqlcounter: query = "SELECT SUM(AcctSessionTime - GREATEST((%b -
UNIX_TIMESTAMP(AcctStartTime)), 0)) FROM radacct WHERE UserName='%{%k}' AND
UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > '%b'"
 sqlcounter: reset = "daily"
 sqlcounter: safe-characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
rlm_sqlcounter: Reply attribute set to Session-Timeout.
rlm_sqlcounter: Counter attribute Daily-Session-Time is number 1832
rlm_sqlcounter: Check attribute Max-Daily-Session is number 1833
rlm_sqlcounter: Current Time: 1222950419 [2008-10-02 14:26:59], Next reset
1222984800 [2008-10-03 00:00:00]
rlm_sqlcounter: Current Time: 1222950419 [2008-10-02 14:26:59], Prev reset
1222898400 [2008-10-02 00:00:00]
Module: Instantiated sqlcounter (dailycounter) 
 sqlcounter: counter-name = "Monthly-Session-Time"
 sqlcounter: check-name = "Max-Monthly-Session"
 sqlcounter: reply-name = "(null)"
 sqlcounter: key = "User-Name"
 sqlcounter: sqlmod-inst = "sql"
 sqlcounter: query = "SELECT SUM(AcctSessionTime - GREATEST((%b -
UNIX_TIMESTAMP(AcctStartTime)), 0)) FROM radacct WHERE UserName='%{%k}' AND
UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > '%b'"
 sqlcounter: reset = "monthly"
 sqlcounter: safe-characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
rlm_sqlcounter: Reply attribute set to Session-Timeout.
rlm_sqlcounter: Counter attribute Monthly-Session-Time is number 1834
rlm_sqlcounter: Check attribute Max-Monthly-Session is number 1835
rlm_sqlcounter: Current Time: 1222950419 [2008-10-02 14:26:59], Next reset
1225490400 [2008-11-01 00:00:00]
rlm_sqlcounter: Current Time: 1222950419 [2008-10-02 14:26:59], Prev reset
1222812000 [2008-10-01 00:00:00]
Module: Instantiated sqlcounter (monthlycounter) 
 sqlcounter: counter-name = "Monthly-Traffic"
 sqlcounter: check-name = "Max-Monthly-Traffic"
 sqlcounter: reply-name = "Mikrotik-Xmit-Limit-Gigawords"
 sqlcounter: key = "User-Name"
 sqlcounter: sqlmod-inst = "sql"
 sqlcounter: query = "SELECT SUM(AcctInputOctets + AcctOutputOctets) FROM
radacct WHERE UserName='%{%k}' AND UNIX_TIMESTAMP(AcctStartTime) > '%b'"
 sqlcounter: reset = "monthly"
 sqlcounter: safe-characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
rlm_sqlcounter: Reply attribute Mikrotik-Xmit-Limit-Gigawords is number
982253583
rlm_sqlcounter: Counter attribute Monthly-Traffic is number 1836
rlm_sqlcounter: Check attribute Max-Monthly-Traffic is number 1837
rlm_sqlcounter: Current Time: 1222950419 [2008-10-02 14:26:59], Next reset
1225490400 [2008-11-01 00:00:00]
rlm_sqlcounter: Current Time: 1222950419 [2008-10-02 14:26:59], Prev reset
1222812000 [2008-10-01 00:00:00]
Module: Instantiated sqlcounter (monthlytraffic) 
Module: Loaded Acct-Unique-Session-Id 
 acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address,
Client-IP-Address, NAS-Port"
Module: Instantiated acct_unique (acct_unique) 
Module: Loaded SQL IP Pool 
 sqlippool: sql-instance-name = "sql"
 sqlippool: lease-duration = 3600
 sqlippool: pool-name = ""
 sqlippool: allocate-begin = "BEGIN"
 sqlippool: allocate-clear = "UPDATE radippool   SET NASIPAddress = '',
pool_key = 0, CallingStationId = '',   expiry_time = NOW() - INTERVAL 1
SECOND   WHERE pool_key = '%{NAS-Port}'   AND NASIPAddress =
'%{NAS-IP-Address}'"
 sqlippool: allocate-find = "SELECT FramedIPAddress FROM radippool   WHERE
pool_name = '%P' AND expiry_time < NOW()   ORDER BY (UserName <>
'%{SQL-User-Name}'),   (CallingStationId <> '%{Calling-Station-Id}'),
expiry_time   LIMIT 1   FOR UPDATE"
 sqlippool: allocate-update = "UPDATE radippool   SET NASIPAddress =
'%{NAS-IP-Address}', pool_key = '%{NAS-Port}',   CallingStationId =
'%{Calling-Station-Id}', UserName = '%{SQL-User-Name}',   expiry_time =
NOW() + INTERVAL 3600 SECOND   WHERE FramedIPAddress = '%I'"
 sqlippool: allocate-commit = "COMMIT"
 sqlippool: allocate-rollback = "ROLLBACK"
 sqlippool: start-begin = "BEGIN"
 sqlippool: start-update = "UPDATE radippool   SET expiry_time = NOW() +
INTERVAL 3600 SECOND   WHERE NASIPAddress = '%{NAS-IP-Address}'   AND
pool_key = '%{NAS-Port}'"
 sqlippool: start-commit = "COMMIT"
 sqlippool: start-rollback = "ROLLBACK"
 sqlippool: alive-begin = "BEGIN"
 sqlippool: alive-update = "UPDATE radippool   SET expiry_time = NOW() +
INTERVAL 3600 SECOND   WHERE NASIPAddress = '%{Nas-IP-Address}'   AND
pool_key = '%{NAS-Port}'   AND UserName = '%{SQL-User-Name}'   AND
CallingStationId = '%{Calling-Station-Id}'   AND FramedIPAddress =
'%{Framed-IP-Address}'"
 sqlippool: alive-commit = "COMMIT"
 sqlippool: alive-rollback = "ROLLBACK"
 sqlippool: stop-begin = "BEGIN"
 sqlippool: stop-clear = "UPDATE radippool   SET NASIPAddress = '', pool_key
= 0, CallingStationId = '',   expiry_time = NOW() - INTERVAL 1 SECOND
WHERE NASIPAddress = '%{NAS-IP-Address}'   AND pool_key = '%{NAS-Port}'
AND UserName = '%{SQL-User-Name}'   AND CallingStationId =
'%{Calling-Station-Id}'   AND FramedIPAddress = '%{Framed-IP-Address}'"
 sqlippool: stop-commit = "COMMIT"
 sqlippool: stop-rollback = "ROLLBACK"
 sqlippool: on-begin = "BEGIN"
 sqlippool: on-clear = "UPDATE radippool   SET NASIPAddress = '', pool_key =
0, CallingStationId = '',   expiry_time = NOW() - INTERVAL 1 SECOND   WHERE
NASIPAddress = '%{NAS-IP-Address}'"
 sqlippool: on-commit = "COMMIT"
 sqlippool: on-rollback = "ROLLBACK"
 sqlippool: off-begin = "BEGIN"
 sqlippool: off-clear = "UPDATE radippool   SET NASIPAddress = '', pool_key
= 0, CallingStationId = '',   expiry_time = NOW() - INTERVAL 1 SECOND
WHERE NASIPAddress = '%{NAS-IP-Address}'"
 sqlippool: off-commit = "COMMIT"
 sqlippool: off-rollback = "ROLLBACK"
rlm_sql (sql): Reserving sql socket id: 9
Module: Instantiated sqlippool (sqlippool) 
Listening on authentication 192.168.12.1:1812
Listening on accounting 192.168.12.1:1813
Ready to process requests.
rad_recv: Access-Request packet from host 192.168.12.4:33600, id=68,
length=44
	User-Name = "TEST"
	User-Password =
"\025\002\202\216\241\253\244C\221Q\202\027\275\203=("
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
  modcall[authorize]: module "preprocess" returns ok for request 0
  modcall[authorize]: module "chap" returns noop for request 0
  modcall[authorize]: module "mschap" returns noop for request 0
    users: Matched entry DEFAULT at line 153
  modcall[authorize]: module "files" returns ok for request 0
radius_xlat:  'TEST'
rlm_sql (sql): sql_set_user escaped user --> 'TEST'
radius_xlat:  'SELECT id, UserName, Attribute, Value, op           FROM
radcheck           WHERE Username = 'TEST'           ORDER BY id'
rlm_sql (sql): Reserving sql socket id: 8
rlm_sql_mysql: query:  SELECT id, UserName, Attribute, Value, op
FROM radcheck           WHERE Username = 'TEST'           ORDER BY id
rlm_sql (sql): User TEST not found in radcheck
radius_xlat:  'SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupche
ck.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE
usergroup.Username = 'TEST' AND usergroup.GroupName =
radgroupcheck.GroupName ORDER BY radgroupcheck.id'
rlm_sql_mysql: query:  SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupche
ck.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE
usergroup.Username = 'TEST' AND usergroup.GroupName =
radgroupcheck.GroupName ORDER BY radgroupcheck.id
radius_xlat:  'SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgrouprep
ly.Value,radgroupreply.op  FROM radgroupreply,usergroup WHERE
usergroup.Username = 'TEST' AND usergroup.GroupName =
radgroupreply.GroupName ORDER BY radgroupreply.id'
rlm_sql_mysql: query:  SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgrouprep
ly.Value,radgroupreply.op  FROM radgroupreply,usergroup WHERE
usergroup.Username = 'TEST' AND usergroup.GroupName =
radgroupreply.GroupName ORDER BY radgroupreply.id
rlm_sql (sql): User TEST not found in radgroupcheck
rlm_sql (sql): Released sql socket id: 8
rlm_sql (sql): User not found
  modcall[authorize]: module "sql" returns notfound for request 0
rlm_sqlcounter: Entering module authorize code
rlm_sqlcounter: Could not find Check item value pair
  modcall[authorize]: module "noresetcounter" returns noop for request 0
rlm_sqlcounter: Entering module authorize code
rlm_sqlcounter: Could not find Check item value pair
  modcall[authorize]: module "dailycounter" returns noop for request 0
rlm_sqlcounter: Entering module authorize code
rlm_sqlcounter: Could not find Check item value pair
  modcall[authorize]: module "monthlycounter" returns noop for request 0
rlm_sqlcounter: Entering module authorize code
rlm_sqlcounter: Could not find Check item value pair
  modcall[authorize]: module "monthlytraffic" returns noop for request 0
rlm_pap: WARNING! No "known good" password found for the user.
Authentication may fail because of this.
  modcall[authorize]: module "pap" returns noop for request 0
modcall: leaving group authorize (returns ok) for request 0
  rad_check_password:  Found Auth-Type System
auth: type "System"
  ERROR: Unknown value specified for Auth-Type.  Cannot perform requested
action.
auth: Failed to validate the user.
Login incorrect: [TEST/\025\002\202\216\241\253\244C\221Q\202\027\275\203=(]
(from client OldPPPOES port 0)
  WARNING: Unprintable characters in the password. ?  Double-check the
shared secret on the server and the NAS!
  Found Post-Auth-Type 
  Processing the post-auth section of radiusd.conf
modcall: entering group REJECT for request 0
rlm_sql (sql): Processing sql_postauth
radius_xlat:  'TEST'
rlm_sql (sql): sql_set_user escaped user --> 'TEST'
radius_xlat:  'INSERT into radpostauth (user, pass, reply, date) values
('TEST',
'=5C025=5C002=5C202=5C216=5C241=5C253=5C244C=5C221Q=5C202=5C027=5C275=5C203=
3D=28', 'Access-Reject', NOW())'
radius_xlat:  '/var/log/sqltrace.sql'
rlm_sql (sql) in sql_postauth: query is INSERT into radpostauth (user, pass,
reply, date) values ('TEST',
'=5C025=5C002=5C202=5C216=5C241=5C253=5C244C=5C221Q=5C202=5C027=5C275=5C203=
3D=28', 'Access-Reject', NOW())
rlm_sql (sql): Reserving sql socket id: 7
rlm_sql_mysql: query:  INSERT into radpostauth (user, pass, reply, date)
values ('TEST',
'=5C025=5C002=5C202=5C216=5C241=5C253=5C244C=5C221Q=5C202=5C027=5C275=5C203=
3D=28', 'Access-Reject', NOW())
rlm_sql (sql): Released sql socket id: 7
  modcall[post-auth]: module "sql" returns ok for request 0
modcall: leaving group REJECT (returns ok) for request 0
Delaying request 0 for 1 seconds
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Sending Access-Reject of id 68 to 192.168.12.4 port 33600
Waking up in 4 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 68 with timestamp 48e4be26
Nothing to do.  Sleeping until we see a request.
rad_recv: Accounting-Request packet from host 192.168.15.6:58678, id=136,
length=131
	Service-Type = Framed-User
	NAS-Port-Id = "Flat"
	User-Name = "00:80:48:47:6F:F2"
	Acct-Session-Id = "82801ac4"
	Acct-Authentic = RADIUS
	Acct-Status-Type = Interim-Update
	Acct-Session-Time = 1545000
	Acct-Input-Octets = 248807338
	Acct-Input-Gigawords = 0
	Acct-Input-Packets = 2025591
	Acct-Output-Octets = 384010966
	Acct-Output-Gigawords = 0
	Acct-Output-Packets = 2082610
	NAS-Identifier = "CM"
	NAS-IP-Address = 192.168.15.6
	Acct-Delay-Time = 0
  Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 1
  modcall[preacct]: module "preprocess" returns noop for request 1
rlm_acct_unique: WARNING: Attribute NAS-Port was not found in request,
unique ID MAY be inconsistent
rlm_acct_unique: Hashing ',Client-IP-Address = 192.168.15.6,NAS-IP-Address =
192.168.15.6,Acct-Session-Id = "82801ac4",User-Name = "00:80:48:47:6F:F2"'
rlm_acct_unique: Acct-Unique-Session-ID = "1a32dc6c68823764".
  modcall[preacct]: module "acct_unique" returns ok for request 1
  modcall[preacct]: module "files" returns noop for request 1
modcall: leaving group preacct (returns ok) for request 1
  Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 1
rlm_ippool: Could not find port number in packet.
  modcall[accounting]: module "sqlippool" returns noop for request 1
radius_xlat:  '00:80:48:47:6F:F2'
rlm_sql (sql): sql_set_user escaped user --> '00:80:48:47:6F:F2'
radius_xlat:  '           UPDATE radacct           SET
FramedIPAddress = '',              AcctSessionTime     = '1545000',
AcctInputOctets     = '0'  << 32 |
'248807338',              AcctOutputOctets    = '0' << 32 |
'384010966'           WHERE AcctSessionId = '82801ac4'           AND
UserName        = '00:80:48:47:6F:F2'           AND NASIPAddress    =
'192.168.15.6''
radius_xlat:  '/var/log/sqltrace.sql'
rlm_sql (sql): Reserving sql socket id: 6
rlm_sql_mysql: query:             UPDATE radacct           SET
FramedIPAddress = '',              AcctSessionTime     = '1545000',
AcctInputOctets     = '0'  << 32 |
'248807338',              AcctOutputOctets    = '0' << 32 |
'384010966'           WHERE AcctSessionId = '82801ac4'           AND
UserName        = '00:80:48:47:6F:F2'           AND NASIPAddress    =
'192.168.15.6'
rlm_sql (sql): Released sql socket id: 6
  modcall[accounting]: module "sql" returns ok for request 1
modcall: leaving group accounting (returns ok) for request 1
Sending Accounting-Response of id 136 to 192.168.15.6 port 58678
Finished request 1
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 192.168.12.4:50168, id=133,
length=150
	Service-Type = Framed-User
	Framed-Protocol = PPP
	NAS-Port = 40596
	NAS-Port-Type = Ethernet
	User-Name = "njale"
	Calling-Station-Id = "00:0C:29:0B:44:66"
	Called-Station-Id = "thavinci"
	NAS-Port-Id = "InternalBridge"
	CHAP-Challenge = 0x8e78677c318f0e58b26b90c8a2e9b4e3
	CHAP-Password = 0x01f060af8acac8590e9b48fa7752f37616
	NAS-Identifier = "oldPPPOES"
	NAS-IP-Address = 192.168.12.4
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 2
  modcall[authorize]: module "preprocess" returns ok for request 2
  rlm_chap: Setting 'Auth-Type := CHAP'
  modcall[authorize]: module "chap" returns ok for request 2
  modcall[authorize]: module "mschap" returns noop for request 2
    users: Matched entry DEFAULT at line 153
    users: Matched entry DEFAULT at line 172
    users: Matched entry DEFAULT at line 184
  modcall[authorize]: module "files" returns ok for request 2
radius_xlat:  'njale'
rlm_sql (sql): sql_set_user escaped user --> 'njale'
radius_xlat:  'SELECT id, UserName, Attribute, Value, op           FROM
radcheck           WHERE Username = 'njale'           ORDER BY id'
rlm_sql (sql): Reserving sql socket id: 5
rlm_sql_mysql: query:  SELECT id, UserName, Attribute, Value, op
FROM radcheck           WHERE Username = 'njale'           ORDER BY id
radius_xlat:  'SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupche
ck.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE
usergroup.Username = 'njale' AND usergroup.GroupName =
radgroupcheck.GroupName ORDER BY radgroupcheck.id'
rlm_sql_mysql: query:  SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupche
ck.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE
usergroup.Username = 'njale' AND usergroup.GroupName =
radgroupcheck.GroupName ORDER BY radgroupcheck.id
radius_xlat:  'SELECT id, UserName, Attribute, Value, op           FROM
radreply           WHERE Username = 'njale'           ORDER BY id'
rlm_sql_mysql: query:  SELECT id, UserName, Attribute, Value, op
FROM radreply           WHERE Username = 'njale'           ORDER BY id
radius_xlat:  'SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgrouprep
ly.Value,radgroupreply.op  FROM radgroupreply,usergroup WHERE
usergroup.Username = 'njale' AND usergroup.GroupName =
radgroupreply.GroupName ORDER BY radgroupreply.id'
rlm_sql_mysql: query:  SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgrouprep
ly.Value,radgroupreply.op  FROM radgroupreply,usergroup WHERE
usergroup.Username = 'njale' AND usergroup.GroupName =
radgroupreply.GroupName ORDER BY radgroupreply.id
rlm_sql (sql): Released sql socket id: 5
  modcall[authorize]: module "sql" returns ok for request 2
rlm_sqlcounter: Entering module authorize code
rlm_sqlcounter: Could not find Check item value pair
  modcall[authorize]: module "noresetcounter" returns noop for request 2
rlm_sqlcounter: Entering module authorize code
rlm_sqlcounter: Could not find Check item value pair
  modcall[authorize]: module "dailycounter" returns noop for request 2
rlm_sqlcounter: Entering module authorize code
rlm_sqlcounter: Could not find Check item value pair
  modcall[authorize]: module "monthlycounter" returns noop for request 2
rlm_sqlcounter: Entering module authorize code
sqlcounter_expand:  'SELECT SUM(AcctInputOctets + AcctOutputOctets) FROM
radacct WHERE UserName='%{User-Name}' AND UNIX_TIMESTAMP(AcctStartTime) >
'1222812000''
radius_xlat:  'SELECT SUM(AcctInputOctets + AcctOutputOctets) FROM radacct
WHERE UserName='njale' AND UNIX_TIMESTAMP(AcctStartTime) > '1222812000''
sqlcounter_expand:  '%{sql:SELECT SUM(AcctInputOctets + AcctOutputOctets)
FROM radacct WHERE UserName='njale' AND UNIX_TIMESTAMP(AcctStartTime) >
'1222812000'}'
radius_xlat: Running registered xlat function of module sql for string
'SELECT SUM(AcctInputOctets + AcctOutputOctets) FROM radacct WHERE
UserName='njale' AND UNIX_TIMESTAMP(AcctStartTime) > '1222812000''
rlm_sql (sql): - sql_xlat
radius_xlat:  'njale'
rlm_sql (sql): sql_set_user escaped user --> 'njale'
radius_xlat:  'SELECT SUM(AcctInputOctets + AcctOutputOctets) FROM radacct
WHERE UserName='njale' AND UNIX_TIMESTAMP(AcctStartTime) > '1222812000''
radius_xlat:  '/var/log/sqltrace.sql'
rlm_sql (sql): Reserving sql socket id: 4
rlm_sql_mysql: query:  SELECT SUM(AcctInputOctets + AcctOutputOctets) FROM
radacct WHERE UserName='njale' AND UNIX_TIMESTAMP(AcctStartTime) >
'1222812000'
rlm_sql (sql): - sql_xlat finished
rlm_sql (sql): Released sql socket id: 4
radius_xlat:  '407334542'
rlm_sqlcounter: (Check item - counter) is less than zero
rlm_sqlcounter: Rejected user njale, check_item=-1073741824,
counter=407334542
  modcall[authorize]: module "monthlytraffic" returns reject for request 2
modcall: leaving group authorize (returns reject) for request 2
Invalid user (rlm_sqlcounter: Maximum monthly usage time reached):
[njale/<CHAP-Password>] (from client OldPPPOES port 40596 cli
00:0C:29:0B:44:66)
Delaying request 2 for 1 seconds
Finished request 2
Going to the next request
Waking up in 6 seconds...
rad_recv: Accounting-Request packet from host 192.168.12.4:48774, id=134,
length=195
	Service-Type = Framed-User
	Framed-Protocol = PPP
	NAS-Port = 40580
	NAS-Port-Type = Ethernet
	User-Name = "njale"
	Calling-Station-Id = "00:14:A5:B7:6E:D9"
	Called-Station-Id = "thavinci"
	NAS-Port-Id = "ExternalBridge"
	Acct-Session-Id = "8170020d"
	Framed-IP-Address = 172.16.1.219
	Acct-Authentic = RADIUS
	Event-Timestamp = "Oct  2 2008 14:27:30 SAST"
	Acct-Session-Time = 10500
	Acct-Input-Octets = 5857508
	Acct-Input-Gigawords = 0
	Acct-Input-Packets = 40738
	Acct-Output-Octets = 53312876
	Acct-Output-Gigawords = 0
	Acct-Output-Packets = 49027
	Acct-Status-Type = Interim-Update
	NAS-Identifier = "oldPPPOES"
	NAS-IP-Address = 192.168.12.4
	Acct-Delay-Time = 0
  Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 3
  modcall[preacct]: module "preprocess" returns noop for request 3
rlm_acct_unique: Hashing 'NAS-Port = 40580,Client-IP-Address =
192.168.12.4,NAS-IP-Address = 192.168.12.4,Acct-Session-Id =
"8170020d",User-Name = "njale"'
rlm_acct_unique: Acct-Unique-Session-ID = "a04aa47508857178".
  modcall[preacct]: module "acct_unique" returns ok for request 3
  modcall[preacct]: module "files" returns noop for request 3
modcall: leaving group preacct (returns ok) for request 3
  Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 3
rlm_sql (sql): Reserving sql socket id: 3
radius_xlat:  'njale'
rlm_sql (sql): sql_set_user escaped user --> 'njale'
radius_xlat:  'BEGIN'
rlm_sql_mysql: query:  BEGIN
radius_xlat:  'njale'
rlm_sql (sql): sql_set_user escaped user --> 'njale'
radius_xlat:  'UPDATE radippool   SET expiry_time = NOW() + INTERVAL 3600
SECOND   WHERE NASIPAddress = '192.168.12.4'   AND pool_key = '40580'   AND
UserName = 'njale'   AND CallingStationId = '00:14:A5:B7:6E:D9'   AND
FramedIPAddress = '172.16.1.219''
rlm_sql_mysql: query:  UPDATE radippool   SET expiry_time = NOW() + INTERVAL
3600 SECOND   WHERE NASIPAddress = '192.168.12.4'   AND pool_key = '40580'
AND UserName = 'njale'   AND CallingStationId = '00:14:A5:B7:6E:D9'   AND
FramedIPAddress = '172.16.1.219'
radius_xlat:  'njale'
rlm_sql (sql): sql_set_user escaped user --> 'njale'
radius_xlat:  'COMMIT'
rlm_sql_mysql: query:  COMMIT
rlm_sql (sql): Released sql socket id: 3
  modcall[accounting]: module "sqlippool" returns ok for request 3
radius_xlat:  'njale'
rlm_sql (sql): sql_set_user escaped user --> 'njale'
radius_xlat:  '           UPDATE radacct           SET
FramedIPAddress = '172.16.1.219',              AcctSessionTime     =
'10500',              AcctInputOctets     = '0'  << 32 |
'5857508',              AcctOutputOctets    = '0' << 32 |
'53312876'           WHERE AcctSessionId = '8170020d'           AND UserName
= 'njale'           AND NASIPAddress    = '192.168.12.4''
radius_xlat:  '/var/log/sqltrace.sql'
rlm_sql (sql): Reserving sql socket id: 2
rlm_sql_mysql: query:             UPDATE radacct           SET
FramedIPAddress = '172.16.1.219',              AcctSessionTime     =
'10500',              AcctInputOctets     = '0'  << 32 |
'5857508',              AcctOutputOctets    = '0' << 32 |
'53312876'           WHERE AcctSessionId = '8170020d'           AND UserName
= 'njale'           AND NASIPAddress    = '192.168.12.4'
rlm_sql (sql): Released sql socket id: 2
  modcall[accounting]: module "sql" returns ok for request 3
modcall: leaving group accounting (returns ok) for request 3
Sending Accounting-Response of id 134 to 192.168.12.4 port 48774
Finished request 3
Going to the next request
--- Walking the entire request list ---
Sending Access-Reject of id 133 to 192.168.12.4 port 50168
	Reply-Message = "Your maximum monthly usage time has been reached"
Waking up in 2 seconds...
--- Walking the entire request list ---
Cleaning up request 2 ID 133 with timestamp 48e4be2d
Cleaning up request 1 ID 136 with timestamp 48e4be2d
Waking up in 4 seconds...
--- Walking the entire request list ---
Cleaning up request 3 ID 134 with timestamp 48e4be31
Nothing to do.  Sleeping until we see a request.

__________ NOD32 3489 (20081002) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com