Hello,

I'm new to freeradius (and this list) but not to radius servers.

I've just compiled freeradius (--with-snmp=yes), and i'm trying to enable SNMP support (Red Hat AS4). It compiles without any errors.

my snmpd.conf:

smuxpeer .1.3.6.1.4.1.3317.1.3.1 secret

raddb/radiusd.conf:

snmp = yes
$INCLUDE  ${confdir}/snmp.conf

raddb/snmp.conf:

smux_password = secret
snmp_write_access = no



When I try to snmpwalk the auth mib, there are no variables in the response:

[EMAIL PROTECTED] ~]# snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.67.1
[EMAIL PROTECTED] ~]#

There are no entries in the log of snmpd or radius regarding this. So I modified radius_snmp.c, and put some debug messages into it.

/*
* Do SMUX initialization.
*/
DEBUG("SMUX initialization");
smux_init (radius_oid, sizeof (radius_oid) / sizeof (oid));
DEBUG("Registering MIB: mibII/radius-acc-server");
REGISTER_MIB("mibII/radius-acc-server", radiusacc_variables, variable, radacc_oid);
DEBUG("Registering MIB: mibII/radius-auth-server");
REGISTER_MIB("mibII/radius-auth-server", radiusauth_variables, variable, radauth_oid);
DEBUG("SMUX start");
smux_start ();


recompiled, then radiusd -x :

Starting - reading configuration files ...
Using deprecated naslist file. Support for this will go away soon.
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded PAP
Module: Instantiated pap (pap)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded MS-CHAP
Module: Instantiated mschap (mschap)
Module: Loaded preprocess
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
Module: Instantiated realm (suffix)
Module: Loaded SQL
rlm_sql (sql): Driver rlm_sql_oracle (module rlm_sql_oracle) loaded and linked
rlm_sql (sql): Attempting to connect to [EMAIL PROTECTED]:/(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.0.20)(PORT=1521))(CONNECT_DATA=(SID=db)))
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): 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): starting 5
rlm_sql (sql): Attempting to connect rlm_sql_oracle #5
rlm_sql (sql): Connected new DB handle, #5
rlm_sql (sql): starting 6
rlm_sql (sql): Attempting to connect rlm_sql_oracle #6
rlm_sql (sql): Connected new DB handle, #6
rlm_sql (sql): starting 7
rlm_sql (sql): Attempting to connect rlm_sql_oracle #7
rlm_sql (sql): Connected new DB handle, #7
Module: Instantiated sql (sql)
Module: Loaded Acct-Unique-Session-Id
Module: Instantiated acct_unique (acct_unique)
Module: Loaded files
Module: Instantiated files (files)
Module: Loaded detail
Module: Instantiated detail (detail)
Initializing the thread pool...
Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.


Those messages are not in the debug log. Seems like SNMP module does not load. What's wrong?

Thanks,
Felician Hoppal


- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to