rlm_perl
Alex rsm
alex-rsm at hotmail.com
Thu Sep 29 20:04:31 CEST 2011
Hi Arran,
Thank you for the response.
I add perl in the sites-available/default file as follow:
authorize {
#
# The preprocess module takes care of sanitizing some bizarre
# attributes in the request, and turning them into attributes
# which are more standard.
#
# It takes care of processing the 'raddb/hints' and the
# 'raddb/huntgroups' files.
preprocess
....
ldap
perl
.....
}
And added the following into raddb/modules/perl file
perl {
module = <path>/example.pl
}
And added the following in src/modules/rlm_perl/example.pl
sub authorize {
print "This is a TEST\n";
.....
}
However, When I send a simple test request I don't see my debug line. I also don't see the message "perl loaded" when start Freeradius in debug mode (radiusd -X).
Am I missing anything?
I appreciate it.
ASM
From: a.cudbardb at freeradius.org
Subject: Re: rlm_perl
Date: Thu, 29 Sep 2011 19:39:55 +0200
To: freeradius-users at lists.freeradius.org
On 29 Sep 2011, at 19:25, Alex rsm wrote:Hi,
How can I configure Freeradius to call example.pl perl script in the rlm_perl module? i.e., I want the perl script to be called when Freeradius receives a request.
read/modify raddb/modules/perl and list perl in sites-available/default authorize {}
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Betelwiki, Betelwiki, Betelwiki.... http://wiki.freeradius.org/ !
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110929/e8e168c1/attachment.html>
More information about the Freeradius-Users
mailing list