Radius authentication
Hi, My Radius client is working fine with the Radius Server, however I would also like to use this authentication on this same web server on a free resource calender application I have downloaded, to authenticate, I have created a Auth_radius.pl file with the following parameteres, as recommended by the developers, however they have not used radius authentication before. #!/usr/bin/perl use Authen::Radius; my $username = shift; my $password = shift; my $r = new Authen::Radius(Host => 'myserver', Secret => 'mysecret'); my $result = $r->check_pwd($username, $password); exit ($result == 1) ? 0 : 1; I recieve an error in my log file of a missing Authen/Radius.pm file. I think this is a radius client perl module, does any one know where I can download this from, or wether there is a better solution, or I am doing somethin wrong, I am new to all this Radius authentication. Charnjit
Hi,
I recieve an error in my log file of a missing Authen/Radius.pm file. I think this is a radius client perl module, does any one know where I can download this from, or wether there is a better solution, or I am doing somethin wrong, I am new to all this Radius authentication.
as per other recent mailing list - either check your systems package manager for perl-radius packages, use CPAN to install Authen::RADIUS or get the pacakge direct http://search.cpan.org/~manowar/RadiusPerl-0.12/Radius.pm alan
Hi, Have downloaded and installed Authen:: Radius module from cpan without any problems, I know get no errors in my log files but it still does not authenticate, I already have a auth_radius.pl script which is run to authenticate which looks like this: #!/usr/bin/perl use Authen::Radius; my $username = shift; my $password = shift; my $r = new Authen::Radius(Host => 'myserver', Secret => 'mysecret'); my $result = $r->check_pwd($username, $password); exit ($result == 1) ? 0 : 1; I thought this should pass all the relevant radius parametres to the module. Do I need to add the radius server and secret anywhere else in the perl module? (never used perl module before). Charnjit ________________________________ From: freeradius-users-bounces+c.sidhu=bham.ac.uk@lists.freeradius.org on behalf of A.L.M.Buxey@lboro.ac.uk Sent: Thu 3/27/2008 9:55 AM To: FreeRadius users mailing list Subject: Re: Radius authentication Hi,
I recieve an error in my log file of a missing Authen/Radius.pm file. I think this is a radius client perl module, does any one know where I can download this from, or wether there is a better solution, or I am doing somethin wrong, I am new to all this Radius authentication.
as per other recent mailing list - either check your systems package manager for perl-radius packages, use CPAN to install Authen::RADIUS or get the pacakge direct http://search.cpan.org/~manowar/RadiusPerl-0.12/Radius.pm alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Charnjit Sidhu wrote:
Have downloaded and installed Authen:: Radius module from cpan without any problems, I know get no errors in my log files but it still does not authenticate, I already have a auth_radius.pl script which is run to authenticate which looks like this:
Sorry, but this is not the place to learn Perl.
I thought this should pass all the relevant radius parametres to the module. Do I need to add the radius server and secret anywhere else in the perl module? (never used perl module before).
We didn't write that module. Go ask the author how it works. Alan DeKok.
Hi,
use Authen::Radius;
my $username = shift; my $password = shift;
my $r = new Authen::Radius(Host => 'myserver', Secret => 'mysecret'); my $result = $r->check_pwd($username, $password);
exit ($result == 1) ? 0 : 1;
I thought this should pass all the relevant radius parametres to the module. Do I need to add the radius server and secret anywhere else in the perl module? (never used perl module before).
what do the logs from the RADIUS server say and show? WHY is it failing? this is only one half of the equation alan
participants (3)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Charnjit Sidhu