<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2> Hello all,
<DIV><FONT face=Arial size=2> I have tried configure the freeradius from
the debian's packages , but they haven't got sql_counter module.</FONT></DIV>
<DIV><FONT face=Arial size=2> Then I decided to download the source
freeradius-1.1.0.tar.gz , I configured it, with the next steps :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> ./configure
--with-experimental-modules</FONT></DIV>
<DIV><FONT face=Arial size=2> make</FONT></DIV>
<DIV><FONT face=Arial size=2> make install</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> For database I used the script
"/freeradius-1.1.0/src/modules/rlm_sql/drivers/rlm_sql_mysql/db_mysql.sql"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> I edited the configuration files sql.conf,
clients.conf and radiusd.conf . (/usr/local/etc/raddb).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> To executed the radiusd -X :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>solsrv:/usr/local/etc/raddb# radiusd -X<BR>Starting
- reading configuration files ...<BR>reread_config: reading
radiusd.conf<BR>Config: including file:
/usr/local/etc/raddb/proxy.conf<BR>Config: including file:
/usr/local/etc/raddb/clients.conf<BR>Config: including file:
/usr/local/etc/raddb/snmp.conf<BR>Config: including file:
/usr/local/etc/raddb/eap.conf<BR>Config: including file:
/usr/local/etc/raddb/sql.conf<BR> main: prefix =
"/usr/local"<BR> main: localstatedir = "/usr/local/var"<BR> main:
logdir = "/usr/local/var/log/radius"<BR> main: libdir =
"/usr/local/lib"<BR> main: radacctdir =
"/usr/local/var/log/radius/radacct"<BR> main: hostname_lookups =
no<BR> main: max_request_time = 30<BR> main: cleanup_delay =
5<BR> main: max_requests = 1024<BR> main: delete_blocked_requests =
0<BR> main: port = 0<BR> main: allow_core_dumps = no<BR> main:
log_stripped_names = no<BR> main: log_file =
"/usr/local/var/log/radius/radius.log"<BR> main: log_auth =
no<BR> main: log_auth_badpass = no<BR> main: log_auth_goodpass =
no<BR> main: pidfile =
"/usr/local/var/run/radiusd/radiusd.pid"<BR> main: user =
"(null)"<BR> main: group = "(null)"<BR> main: usercollide =
no<BR> main: lower_user = "no"<BR> main: lower_pass =
"no"<BR> main: nospace_user = "no"<BR> main: nospace_pass =
"no"<BR> main: checkrad = "/usr/local/sbin/checkrad"<BR> main:
proxy_requests = yes<BR> proxy: retry_delay = 5<BR> proxy: retry_count
= 3<BR> proxy: synchronous = no<BR> proxy: default_fallback =
yes<BR> proxy: dead_time = 120<BR> proxy: post_proxy_authorize =
no<BR> proxy: wake_all_if_all_dead = no<BR> security: max_attributes =
200<BR> security: reject_delay = 1<BR> security: status_server =
no<BR> main: debug_level = 0<BR>read_config_files: reading
dictionary<BR>read_config_files: reading naslist<BR>Using deprecated
naslist file. Support for this will go away
soon.<BR>read_config_files: reading clients<BR>read_config_files:
reading realms<BR>radiusd: entering modules setup<BR>Module: Library
search path is /usr/local/lib<BR>Module: Loaded exec <BR> exec: wait =
yes<BR> exec: program = "(null)"<BR> exec: input_pairs =
"request"<BR> exec: output_pairs = "(null)"<BR> exec: packet_type =
"(null)"<BR>rlm_exec: Wait=yes but no output defined. Did you mean
output=none?<BR>Module: Instantiated exec (exec) <BR>Module: Loaded expr
<BR>Module: Instantiated expr (expr) <BR>Module: Loaded PAP <BR> pap:
encryption_scheme = "crypt"<BR>Module: Instantiated pap (pap) <BR>Module: Loaded
CHAP <BR>Module: Instantiated chap (chap) <BR>Module: Loaded MS-CHAP
<BR> mschap: use_mppe = yes<BR> mschap: require_encryption =
no<BR> mschap: require_strong = no<BR> mschap: with_ntdomain_hack =
no<BR> mschap: passwd = "(null)"<BR> mschap: authtype =
"MS-CHAP"<BR> mschap: ntlm_auth = "(null)"<BR>Module: Instantiated mschap
(mschap) <BR>Module: Loaded System <BR> unix: cache = no<BR> unix:
passwd = "(null)"<BR> unix: shadow = "(null)"<BR> unix: group =
"(null)"<BR> unix: radwtmp =
"/usr/local/var/log/radius/radwtmp"<BR> unix: usegroup = no<BR> unix:
cache_reload = 600<BR>Module: Instantiated unix (unix) <BR>Module: Loaded eap
<BR> eap: default_eap_type = "md5"<BR> eap: timer_expire =
60<BR> eap: ignore_unknown_eap_types = no<BR> eap:
cisco_accounting_username_bug = no<BR>rlm_eap: Loaded and initialized type
md5<BR>rlm_eap: Loaded and initialized type leap<BR> gtc: challenge =
"Password: "<BR> gtc: auth_type = "PAP"<BR>rlm_eap: Loaded and initialized
type gtc<BR> mschapv2: with_ntdomain_hack = no<BR>rlm_eap: Loaded and
initialized type mschapv2<BR>Module: Instantiated eap (eap) <BR>Module: Loaded
preprocess <BR> preprocess: huntgroups =
"/usr/local/etc/raddb/huntgroups"<BR> preprocess: hints =
"/usr/local/etc/raddb/hints"<BR> preprocess: with_ascend_hack =
no<BR> preprocess: ascend_channels_per_line = 23<BR> preprocess:
with_ntdomain_hack = no<BR> preprocess: with_specialix_jetstream_hack =
no<BR> preprocess: with_cisco_vsa_hack = no<BR>Module: Instantiated
preprocess (preprocess) <BR>Module: Loaded realm <BR> realm: format =
"suffix"<BR> realm: delimiter = "@"<BR> realm: ignore_default =
no<BR> realm: ignore_null = no<BR>Module: Instantiated realm (suffix)
<BR>Module: Loaded files <BR> files: usersfile =
"/usr/local/etc/raddb/users"<BR> files: acctusersfile =
"/usr/local/etc/raddb/acct_users"<BR> files: preproxy_usersfile =
"/usr/local/etc/raddb/preproxy_users"<BR> files: compat = "no"<BR>Module:
Instantiated files (files) <BR>Module: Loaded SQL <BR> sql: driver =
"rlm_sql_mysql"<BR> sql: server = "localhost"<BR> sql: port =
""<BR> sql: login = "root"<BR> sql: password = "fusi0n"<BR> sql:
radius_db = "radius"<BR> sql: acct_table = "radacct"<BR> sql:
acct_table2 = "radacct"<BR> sql: authcheck_table = "radcheck"<BR> sql:
authreply_table = "radreply"<BR> sql: groupcheck_table =
"radgroupcheck"<BR> sql: groupreply_table = "radgroupreply"<BR> sql:
usergroup_table = "usergroup"<BR> sql: nas_table = "nas"<BR> sql:
dict_table = "dictionary"<BR> sql: sqltrace = no<BR> sql: sqltracefile
= "/usr/local/var/log/radius/sqltrace.sql"<BR> sql: readclients =
no<BR> sql: deletestalesessions = yes<BR> sql: num_sql_socks =
5<BR> sql: sql_user_name = "%{User-Name}"<BR> sql:
default_user_profile = ""<BR> sql: query_on_not_found = no<BR> sql:
authorize_check_query = "SELECT id, UserName, Attribute, Value,
op FROM
radcheck WHERE
Username =
'%{SQL-User-Name}'
ORDER BY id"<BR> sql: authorize_reply_query = "SELECT id, UserName,
Attribute, Value, op
FROM radreply WHERE
Username =
'%{SQL-User-Name}'
ORDER BY id"<BR> sql: authorize_group_check_query = "SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value,radgroupcheck.op
FROM radgroupcheck,usergroup WHERE usergroup.Username = '%{SQL-User-Name}' AND
usergroup.GroupName = radgroupcheck.GroupName ORDER BY
radgroupcheck.id"<BR> sql: authorize_group_reply_query = "SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgroupreply.Value,radgroupreply.op
FROM radgroupreply,usergroup WHERE usergroup.Username = '%{SQL-User-Name}' AND
usergroup.GroupName = radgroupreply.GroupName ORDER BY
radgroupreply.id"<BR> 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'"<BR> sql: accounting_update_query = "UPDATE
radacct SET
FramedIPAddress =
'%{Framed-IP-Address}',
AcctSessionTime =
'%{Acct-Session-Time}',
AcctInputOctets =
'%{Acct-Input-Octets}',
AcctOutputOctets =
'%{Acct-Output-Octets}'
WHERE AcctSessionId =
'%{Acct-Session-Id}'
AND UserName =
'%{SQL-User-Name}'
AND NASIPAddress= '%{NAS-IP-Address}'"<BR> 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) 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-Octets}', '%{Acct-Output-Octets}', '%{Called-Station-Id}',
'%{Calling-Station-Id}', '%{Service-Type}', '%{Framed-Protocol}',
'%{Framed-IP-Address}', '0')"<BR> 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)
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')"<BR> 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}'"<BR> sql:
accounting_stop_query = "UPDATE radacct SET AcctStopTime = '%S', AcctSessionTime
= '%{Acct-Session-Time}', AcctInputOctets = '%{Acct-Input-Octets}',
AcctOutputOctets = '%{Acct-Output-Octets}', AcctTerminateCause =
'%{Acct-Terminate-Cause}', AcctStopDelay = '%{Acct-Delay-Time}',
ConnectInfo_stop = '%{Connect-Info}' WHERE AcctSessionId = '%{Acct-Session-Id}'
AND UserName = '%{SQL-User-Name}' AND NASIPAddress =
'%{NAS-IP-Address}'"<BR> 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-Octets}', '%{Acct-Output-Octets}',
'%{Called-Station-Id}', '%{Calling-Station-Id}', '%{Acct-Terminate-Cause}',
'%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '0',
'%{Acct-Delay-Time}')"<BR> sql: group_membership_query = "SELECT GroupName
FROM usergroup WHERE UserName='%{SQL-User-Name}'"<BR> sql:
connect_failure_retry_delay = 60<BR> sql: simul_count_query =
""<BR> sql: simul_verify_query = "SELECT RadAcctId, AcctSessionId,
UserName, NASIPAddress, NASPortId, FramedIPAddress, CallingStationId,
FramedProtocol FROM radacct WHERE UserName='%{SQL-User-Name}' AND AcctStopTime =
0"<BR> sql: postauth_table = "radpostauth"<BR> sql: postauth_query =
"INSERT into radpostauth (id, user, pass, reply, date) values ('',
'%{User-Name}', '%{User-Password:-Chap-Password}', '%{reply:Packet-Type}',
NOW())"<BR> sql: safe-characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_:
/"<BR>Segmentation fault<BR>solsrv:/usr/local/etc/raddb# </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>someone could help me?</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>PS: I use Debian 3.1 r1.</FONT></DIV>
<DIV> </DIV></FONT></DIV>
<DIV>
<P><FONT face=Arial size=2></FONT> </P></DIV></BODY></HTML>