I try to do a veeery simple radius+perl setup....

Im running that issue for 2 days (each time i fix
a small step) but now im stuck in one point...

--DEBUG-----------------
Module: Loaded perl
 perl: cmd = "(null)"
 perl: persistent = "(null)"
Segmentation fault
------------------------

I'm new in this radius world.. and i believe its a small
mistake... but i cannot find on faq/docs/list_search/google

Can somebody help me on that?


OBS: I paste some details to be more easy


------------------------------------------------------------
------------------------------------------------------------
-----START debug--------------------------------------------
# radiusd -Xsf
Starting - reading configuration files ...
reread_config:  reading radiusd.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: max_request_time = 30
 main: cleanup_delay = 5
 main: max_requests = 1024
 main: delete_blocked_requests = 0
 main: port = 0
 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 = "(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
 security: max_attributes = 200
 security: reject_delay = 2
 security: status_server = no
 main: debug_level = 0
read_config_files:  reading dictionary
read_config_files:  reading naslist
read_config_files:  reading clients
read_config_files:  reading realms
radiusd:  entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded perl
 perl: cmd = "(null)"
 perl: persistent = "(null)"
Segmentation fault
-----END debug----------------------------------------------
------------------------------------------------------------
------------------------------------------------------------




------------------------------------------------------------
------------------------------------------------------------
-----START radiusd.conf-------------------------------------
prefix = /usr/local
exec_prefix = ${prefix}
sysconfdir = ${prefix}/etc
localstatedir = ${prefix}/var
sbindir = ${exec_prefix}/sbin
logdir = ${localstatedir}/log/radius
raddbdir = ${sysconfdir}/raddb
radacctdir = ${logdir}/radacct
confdir = ${raddbdir}
run_dir = ${localstatedir}/run/radiusd
log_file = ${logdir}/radius.log
libdir = ${exec_prefix}/lib
pidfile = ${run_dir}/radiusd.pid
max_request_time = 30
delete_blocked_requests = no
cleanup_delay = 5
max_requests = 1024
bind_address = *
port = 0
hostname_lookups = no
allow_core_dumps = no
regular_expressions     = yes
extended_expressions    = yes
log_stripped_names = no
log_auth = yes
log_auth_badpass = yes
log_auth_goodpass = yes
usercollide = no
lower_user = no
lower_pass = no
nospace_user = no
nospace_pass = no
checkrad = ${sbindir}/checkrad
security {
        max_attributes = 200
        reject_delay = 2
        status_server = no
}
proxy_requests  = no
thread pool {
        start_servers = 5
        max_servers = 32
        min_spare_servers = 3
        max_spare_servers = 10
        max_requests_per_server = 0
}
modules {
        perl {
                module = "/usr/local/etc/raddb/t1.pl"
                func_accounting = "accounting"
                func_authentication = "authentication"
        }
}
instantiate {}
authorize {}
authentication {
        authtype PERL {
                perl
        }
}
preacct {}
accounting {
        perl
}
session {}
post-auth {}

-----END radiusd.conf---------------------------------------
------------------------------------------------------------
------------------------------------------------------------




------------------------------------------------------------
------------------------------------------------------------
-----START users--------------------------------------------
DEFAULT Auth-Type := perl
-----END users----------------------------------------------
------------------------------------------------------------
------------------------------------------------------------




------------------------------------------------------------
------------------------------------------------------------
-----START t1.pl--------------------------------------------
#!/usr/bin/perl
use vars qw(%RAD_REQUEST %RAD_REPLY %RAD_CHECK);
use constant  RLM_MODULE_REJECT   => 0;
use constant  RLM_MODULE_FAIL     => 1;
use constant  RLM_MODULE_OK       => 2;
use constant  RLM_MODULE_HANDLED  => 3;
use constant  RLM_MODULE_INVALID  => 4;
use constant  RLM_MODULE_USERLOCK => 5;
use constant  RLM_MODULE_NOTFOUND => 6;
use constant  RLM_MODULE_NOOP     => 7;
use constant  RLM_MODULE_UPDATED  => 8;
use constant  RLM_MODULE_NUMCODES => 9;
sub accounting { return RLM_MODULE_OK }
sub authorize  { return RLM_MODULE_OK }
-----END t1.pl----------------------------------------------
------------------------------------------------------------
------------------------------------------------------------



------------------------------------------------------------
------------------------------------------------------------
-----START system info--------------------------------------
# ldd /usr/local/sbin/radiusd
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x4001a000)
        libradius-0.8.1.so => /usr/local/lib/libradius-0.8.1.so (0x40048000)
        libltdl.so.3 => /usr/local/lib/libltdl.so.3 (0x40057000)
        libdl.so.2 => /lib/libdl.so.2 (0x4005d000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40060000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x40075000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40087000)
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

# /usr/local/etc/raddb/t1.pl

# ls -lah /usr/local/lib/rlm_perl*
lrwxrwxrwx    1 root     root           11 Jun 18 14:50
/usr/local/lib/rlm_perl-0.8.1.la -> rlm_perl.la
-rwxr-xr-x    1 root     root         100K Jun 18 14:50
/usr/local/lib/rlm_perl-0.8.1.so
-rw-r--r--    1 root     root         129K Jun 18 14:50
/usr/local/lib/rlm_perl.a
-rwxr-xr-x    1 root     root          865 Jun 18 14:50
/usr/local/lib/rlm_perl.la
lrwxrwxrwx    1 root     root           17 Jun 18 14:50
/usr/local/lib/rlm_perl.so -> rlm_perl-0.8.1.so

# /usr/local/sbin/radiusd -v
radiusd: FreeRADIUS Version 0.8.1, for host i686-pc-linux-gnu, built on Jun
18 2003 at 12:49:31

# cat /proc/version
Linux version 2.4.18-14 ([EMAIL PROTECTED]) (gcc version
3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Wed Sep 4 13:35:50 EDT 2002

# cat /etc/redhat-release
Red Hat Linux release 8.0 (Psyche)
-----END system info----------------------------------------
------------------------------------------------------------
------------------------------------------------------------




--- N e y    F r o t a ----------------------------
mailto:[EMAIL PROTECTED]
http://ney.frota.net


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

Reply via email to