Re: SNMP with Freeradius - Again

2006-10-24 Thread Velikanov
>SNMP/SMUX support should not affect the rlm_sql module in any way.
>
>See doc/bugs for steps to debug the segfault issue and identify where the
>program is actually failing.

Good Day.
I did all the steps in doc/bugs, and this is the result:

[EMAIL PROTECTED] freeradius-1.1.3]# gdb /usr/local/sbin/radiusd
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".

(gdb) set logging file gdb-radiusd.log
(gdb) set logging on
Copying output to gdb-radiusd.log.
(gdb) run
Starting program: /usr/local/sbin/radiusd
[Thread debugging using libthread_db enabled]
[New Thread -1208568128 (LWP 6866)]
Tue Oct 24 09:25:22 2006 : Info: Starting - reading configuration files ...

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208568128 (LWP 6866)]
0x0804e816 in cf_expand_variables (cf=0x8065a9e "?", lineno=0x9fd2d38,
outercs=0x9fd2d30, output=0xbff15700 "\001", input=0x8061711 "")
at conffile.c:233
233 for (parentcs = outercs;
(gdb)

Is it usefull information?
May be i must do something else?

Thanks.



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


Re: SNMP with Freeradius - Again

2006-10-20 Thread Kevin Bonner
On Friday 20 October 2006 05:59, Velikanov wrote:
> 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

SNMP/SMUX support should not affect the rlm_sql module in any way.

See doc/bugs for steps to debug the segfault issue and identify where the 
program is actually failing.

Kevin Bonner


pgp14fIiKv3Cb.pgp
Description: PGP signature
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: SNMP with Freeradius - Again

2006-10-20 Thread Velikanov
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 

Re: SNMP with Freeradius - Again

2006-10-19 Thread Kevin Bonner
On Thursday 19 October 2006 08:38, Velikanov wrote:
>  when I run   /usr/local/sbin/radiusd -X
>
>  And NOW, again, there are no   strings   with   "smux", as shown in wiki
>
>   Where is my mistake?
>  What must I looking for?
>
>  Thanks.

Did you also configure your local SNMP daemon with the proper smuxpeer entry?  
Can you post your debug mode output?

Kevin Bonner


pgpVVr0PKPGLO.pgp
Description: PGP signature
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

SNMP with Freeradius - Again

2006-10-19 Thread Velikanov
   I want to use SNMP with Freeradius.

  NOW, after some work, I have:
  1.FreeRADIUS Version 1.1.3, for host, configured with option  '-with-snmp'

  Now   I see  in src/include/autoconf.h:

  /* Include SNMP subagent */
#define WITH_SNMP 1
#define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
/* #undef HAVE_ASN1_SNMP_SNMPIMPL_H */
#define HAVE_LIBSNMP 1

 All other rest the same
  2.Red Hat Linux v.3.3;  2.6.9-34.EL

  3.net-snmp-5.1.2-11.EL4.6 configured with option  '--with-mib-modules=host
  agentx smux ucd-snmp/lmSensors'

 radiusd.conf, snmp.conf, snmpd.conf - where configured as in docs and in
 http://wiki.freeradius.org/SNMP_HOWTO

 when I run   /usr/local/sbin/radiusd -X

 And NOW, again, there are no   strings   with   "smux", as shown in wiki

  Where is my mistake?
 What must I looking for?

 Thanks.

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