SNMP with Freeradius - Again
Velikanov
alex at asu.farlep.net
Fri Oct 20 11:59:14 CEST 2006
Good Day.
I use Oracle with Freeradius.
The situation with SNMP is as follows now:
1. When i have sql in radiusd.conf and such string:
snmp = no
then i have working radiusd with Oracle
2. When i have no sql , but have
snmp = yes
then i have working radiusd with SNMP
3. When i have sql in radiusd.conf and
snmp = yes
i have not working radiusd, debug does not contain any strings with SMUX
and it is finished with:
Module: Instantiated sql (sql)
Segmentation fault
In all cases the configurations was the same, except pointed above
I post you the radiusd -X of last case (3) with sql and snmp = yes
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/eap.conf
Config: including file: /usr/local/etc/raddb/oraclesql.conf
main: prefix = "/usr/local"
main: localstatedir = "/usr/local/var"
main: logdir = "/usr/local/var/log/radius"
main: libdir = "/usr/local/lib"
main: radacctdir = "/usr/local/var/log/radius/radacct"
main: hostname_lookups = no
main: snmp = yes
main: max_request_time = 30
main: cleanup_delay = 5
main: max_requests = 1024
main: delete_blocked_requests = 0
main: port = 1812
main: allow_core_dumps = no
main: log_stripped_names = no
main: log_file = "/usr/local/var/log/radius/radius.log"
main: log_auth = yes
main: log_auth_badpass = yes
main: log_auth_goodpass = yes
main: pidfile = "/usr/local/var/run/radiusd/radiusd.pid"
main: user = "nobody"
main: group = "nobody"
main: usercollide = no
main: lower_user = "no"
main: lower_pass = "no"
main: nospace_user = "no"
main: nospace_pass = "no"
main: checkrad = "/usr/local/etc/raddb/checkrad"
main: proxy_requests = yes
proxy: retry_delay = 5
proxy: retry_count = 3
proxy: synchronous = no
proxy: default_fallback = yes
proxy: default_fallback = yes
proxy: dead_time = 120
proxy: post_proxy_authorize = yes
proxy: wake_all_if_all_dead = no
security: max_attributes = 200
security: reject_delay = 1
security: status_server = yes
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"
Module: Instantiated pap (pap)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded Pam
pam: pam_auth = "radiusd"
Module: Instantiated pam (pam)
Module: Loaded eap
eap: default_eap_type = "md5"
eap: timer_expire = 60
eap: ignore_unknown_eap_types = no
eap: cisco_accounting_username_bug = no
rlm_eap: Loaded and initialized type md5
rlm_eap: Loaded and initialized type md5
rlm_eap: Loaded and initialized type leap
gtc: challenge = "Password: "
gtc: auth_type = "PAP"
rlm_eap: Loaded and initialized type gtc
mschapv2: with_ntdomain_hack = no
rlm_eap: Loaded and initialized type mschapv2
Module: Instantiated eap (eap)
Module: Loaded preprocess
preprocess: huntgroups = "/usr/local/etc/raddb/huntgroups"
preprocess: hints = "/usr/local/etc/raddb/hints"
preprocess: with_ascend_hack = yes
preprocess: ascend_channels_per_line = 23
preprocess: with_ntdomain_hack = no
preprocess: with_specialix_jetstream_hack = no
preprocess: with_cisco_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
realm: format = "suffix"
realm: delimiter = "@"
realm: ignore_default = no
realm: ignore_null = no
Module: Instantiated realm (suffix)
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 Acct-Unique-Session-Id
acct_unique: key = "Acct-Session-Id, NAS-IP-Address, Login-IP-Host,
Login-TCP-Port"
Module: Instantiated acct_unique (acct_PIX)
exec: wait = yes
exec: program = "/usr/local/etc/raddb/radius.auth"
exec: input_pairs = "request"
exec: output_pairs = "request"
exec: packet_type = "(null)"
Module: Instantiated exec (echo)
Module: Loaded SQL
sql: driver = "rlm_sql_oracle"
sql: server = "192.168.98.100"
sql: port = "1521"
sql: login = "inter1_odessa"
sql: password = "inter1_odessa"
sql: radius_db = "(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
apusold)(PORT = 1521))(CONNECT_DATA = (SERVICE_NAME = APUSOLD)))"
sql: nas_table = "nas"
sql: sqltrace = no
sql: sqltracefile = "/usr/local/var/log/radius/sqltrace.sql"
sql: readclients = yes
sql: deletestalesessions = yes
sql: num_sql_socks = 5
sql: sql_user_name = "%{User-Name}"
sql: default_user_profile = ""
sql: query_on_not_found = no
sql: authorize_check_query = "SELECT * FROM
TABLE(CAST(INTERNET_SECURITY.CHECK_USER ?('%{SQL-User-Name}',
?'%{NAS-IP-Address}','%{NAS-Port-T
sql: authorize_reply_query = "SELECT * FROM
?TABLE(CAST(INTERNET_SECURITY.REPLY_USER('%{SQL-User-Name}','%{NAS-IP-Addres
s}','%{Framed-Protoc
sql: authorize_group_check_query = ""
sql: authorize_group_reply_query = ""
sql: accounting_onoff_query = "UPDATE radacct ?SET
AcctStopTime=TO_DATE('%S','yyyy-mm-dd hh24:mi:ss'),
?AcctSessionTime=((TO_DATE('%S','yyyy
sql: accounting_update_query = "UPDATE radacct SET FramedIPAddress =
NULLIF('%{Framed-IP-Address}', ''), AcctStatusType = '%{Acct-St
sql: accounting_update_query_alt = "INSERT into radacct ?(RadAcctId,
AcctSessionId, AcctUniqueId, UserName, ?NASIPAddress, NASPort, NASPortT
sql: accounting_start_query = "INSERT into radacct (UserName,
NASIPAddress, NASPort, NASPortType, ServiceType, AcctStatusTy
sql: accounting_start_query_alt = "UPDATE radacct SET ?AcctStartTime =
TO_DATE('%S','yyyy-mm-dd hh24:mi:ss'),AcctStartDelay = '%{Acct-Delay-
sql: accounting_stop_query = "UPDATE radacct SET AcctStopTime =
TO_DATE('%S','yyyy-mm-dd hh24:mi:ss'), AcctStatusType = '%{Acct-Status-Type}
sql: accounting_stop_query_alt = "INSERT into radacct ?(UserName,
NASIPAddress, NASPort, NASPortType, ServiceType, ?AcctStatusType, ?AcctSe
sql: group_membership_query = "SELECT SERVICE_NAME 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 IS NULL ??AND NASIPAddress =
'%{N
sql: simul_verify_query = "SELECT RadAcctId, AcctSessionId, UserName,
?NASIPAddress, NASPort, FramedIPAddress, CallingStationId, ?FramedProt
sql: postauth_query = "INSERT into radpostauth ?(id, username,
user_password, sql_password, Packet_Type, ?AUTH_START_TIME,
reply_message,ses
sql: safe-characters =
"$@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
rlm_sql (sql): Driver rlm_sql_oracle (module rlm_sql_oracle) loaded and
linked
rlm_sql (sql): Attempting to connect to
inter1_odessa at 192.168.98.100:1521/(DESCRIPTION = (ADDRESS = (PROTOCOL =
TCP)(HOST = apusold)(PORT = 1
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_oracle #0
rlm_sql (sql): Connected new DB handle, #0
rlm_sql (sql): starting 1
rlm_sql (sql): Attempting to connect rlm_sql_oracle #1
rlm_sql (sql): Attempting to connect rlm_sql_oracle #1
rlm_sql (sql): Connected new DB handle, #1
rlm_sql (sql): starting 2
rlm_sql (sql): Attempting to connect rlm_sql_oracle #2
rlm_sql (sql): Connected new DB handle, #2
rlm_sql (sql): starting 3
rlm_sql (sql): Attempting to connect rlm_sql_oracle #3
rlm_sql (sql): Connected new DB handle, #3
rlm_sql (sql): starting 4
rlm_sql (sql): Attempting to connect rlm_sql_oracle #4
rlm_sql (sql): Connected new DB handle, #4
rlm_sql (sql): - generate_sql_clients
rlm_sql (sql): Query: SELECT * FROM nas
rlm_sql (sql): Reserving sql socket id: 4
rlm_sql (sql): Read entry
nasname=192.168.10.111,shortname=192.168.10.111,secret=test123
rlm_sql (sql): Adding client 192.168.10.111 (192.168.10.111) to clients list
rlm_sql (sql): Read entry
nasname=pix.asu.farlep.net,shortname=PIX,secret=pixfirewall
rlm_sql (sql): Adding client 192.168.98.1 (PIX) to clients list
rlm_sql (sql): Released sql socket id: 4
Module: Instantiated sql (sql)
Module: Instantiated sql (sql)
Segmentation fault
Thanks for your attention.
More information about the Freeradius-Users
mailing list