Hi

I have installed freeRADIUS 0.8.1 and got rlm_perl working no problems.

Just installed freeRADIUS from daily cvs snapshot 20030327.  I notice the 
rlm_perl has changed, so has the example file. I can install and start 
freeRADIUS but it gives a segmentation fault when running radtest on it.

debug:
-- snip
Module: Loaded perl
 perl: module = "/usr/local/freeradius-snapshot-20030327/etc/raddb/example.pl"
 perl: func_authorize = "authorize"
 perl: func_authenticate = "authenticate"
 perl: func_accounting = "accounting"
 perl: func_preacct = "preacct"
 perl: func_checksimul = "checksimul"
 perl: func_detach = "detach"
 perl: func_xlat = "xlat"
Module: Instantiated perl (perl)
--end snip

-- snip
Listening on IP address *, ports 1812/udp and 1813/udp, with proxy on 
1814/udp.
Ready to process requests.
rad_recv: Access-Request packet from host 127.0.0.1:33201, id=156, length=59
        User-Name = "test"
Segmentation fault
-- end snip



radius.conf:
--snip

        #  Persistent, embedded Perl interpreter.
        #
        perl {
                #
                #  The Perl script to execute on authorize, authenticate,
                #  accounting, xlat, etc.  This is very similar to using
                #  Exec-Program-Wait = "/path/foo.pl", but it is persistent,
                #  and therefore faster.
                #
                module = 
/usr/local/freeradius-snapshot-20030327/etc/raddb/example.pl

                #
                #  The following hashes are given to the module and
                #  filled with value-pairs (Attribute names and values)
                #
                #  %RAD_REPLY           Attributes to go into the reply
                #  %RAD_REQUEST         Attributes from the request
                #  %RAD_CHECK           Check items
                #
                #  Only the %RAD_REPLY hash can be modified.
                #  All of the other hashes are read only.
                #
                #  The return codes from functions in the perl_script
                #  are passed directly back to the server.  These
                #  codes are defined in doc/configurable_failover,
                #  src/include/modules.h (RLM_MODULE_REJECT, etc),
                #  and are pre-defined in the 'example.pl' program
                #  which is included.
                #
                func_accounting = accounting
                func_authentication = authenticate
                func_preacct = preacct
                func_checksimul = checksimul
                func_xlat = xlat
        }
-- end snip

-- snip 

authorize {
        perl
}

authentication {

        authtype PERL {
                perl
        }

}

-- end snip

users file:
-- snip
DEFAULT Auth-Type := PERL
-- end snip

I also noticed the example does not have an authorize function so I tried 
adding one in.

I prefer the new example.pl file, it makes more sense.  Just wondering if it 
is just my setup or if there is a problem with that cvs snapshot.  I am using 
Redhat 7.3, Perl 5.8.0.

If anyone has any ideas I will try them, I assume the old conf style for 
rlm_perl wont be kept so it would be nice to get the new one going.

Cheers
-- 
Martin ([EMAIL PROTECTED])
ICQ# 748846


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

Reply via email to