Radius authentication

2008-03-27 Thread Charnjit Sidhu
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
 
 

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


RE: Radius authentication

2008-03-27 Thread Charnjit Sidhu
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: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
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


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

php resource application

2008-03-20 Thread Charnjit Sidhu
 
Hi,
 
I have a working client which authenticates with the radius server, I wanted to 
know if anyone has had experience of using a php/sql application called mrbs.
 
 I want the application to use radius authentication to authenticate users 
logging into this resource booking application, there are scripts provided for 
other forms of authentication (ie pam, ldap, smb) however wanted to know if 
anyone has created a php or any other kind of script to do this.  It looks like 
I will need to add php script to authenticate but not sure what needs to go in 
it. 
 
Charnjit

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


FW: php resource application

2008-03-20 Thread Charnjit Sidhu
Hi,
 
I need what is called a Authen/Radius.pm file. for my application 
authentication, does anyone know where I can get one of these from, this is to 
allow my perl script to run Authen::Radius
 
Charnjit
 


From: Charnjit Sidhu
Sent: Thu 3/20/2008 12:15 PM
To: freeradius-users@lists.freeradius.org
Subject: php resource application


 
Hi,
 
I have a working client which authenticates with the radius server, I wanted to 
know if anyone has had experience of using a php/sql application called mrbs.
 
 I want the application to use radius authentication to authenticate users 
logging into this resource booking application, there are scripts provided for 
other forms of authentication (ie pam, ldap, smb) however wanted to know if 
anyone has created a php or any other kind of script to do this.  It looks like 
I will need to add php script to authenticate but not sure what needs to go in 
it. 
 
Charnjit

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


mod_auth_radius

2008-03-07 Thread Charnjit Sidhu
Help,
 
Not sure wether this is the right place to email an issue.
 
I have configured mod_auth_radius to work on my apache 2 webserver as a client, 
the authentication works with the Radius Server, however after authentication a 
blank page is displayed and the only error I get in my error_log is 
 
exit signal Segmentation fault after authentication
 
I'm pulling my hair out, I have tried it on two different web servers, one 
Redhat Linux and the other Centos.  I know the authentication is working as an 
error is displayed if  I enter wrong user credentials.
 
I have followed your online instruction's, to configure my httpd.conf and 
.htaccess.
 
 
Can anyone help
 
Charnjit
 
Charnjit Sidhu
Computing Officer
Birmingham University Imaging Centre
School of Psychology
University of Birmingham
 
Tel: +44 (0)121 4143857
E-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

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


RE: mod_auth_radius

2008-03-07 Thread Charnjit Sidhu
Hi
 
Thanks for all your help, all working now.
 
Charnjit
 
Charnjit Sidhu
Computing Officer
Birmingham University Imaging Centre
School of Psychology
University of Birmingham
 
Tel: +44 (0)121 4143857
E-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 



From: [EMAIL PROTECTED] on behalf of Alan DeKok
Sent: Fri 3/7/2008 11:12 AM
To: FreeRadius users mailing list
Subject: Re: mod_auth_radius



Charnjit Sidhu wrote:
 I have configured mod_auth_radius to work on my apache 2 webserver as a 
 client, the authentication works with the Radius Server, however after 
 authentication a blank page is displayed and the only error I get in my 
 error_log is
 
 exit signal Segmentation fault after authentication
 
 I'm pulling my hair out, I have tried it on two different web servers, one 
 Redhat Linux and the other Centos.  I know the authentication is working as 
 an error is displayed if  I enter wrong user credentials.

  Try grabbing the latest version from CVS.  See
http://freeradius.org/development.html

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


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

nat translation on apache 2 webserver on Linux

2008-03-07 Thread Charnjit Sidhu
Another question.
 
We can only get our radius authentication to work on our webserver when it is 
outside of our internal firewall ie it has a static ip address of what is 
specified on the radius server.
 
The current setup is that it is behind a firewall which translates the external 
ip address with the internal ip address of the linux apache web server on an 
internal local network, this allows for other internal operations to take 
place, however this causes authentication to fail with a 401 error reported on 
the webpage.
 
is there any further configuration I can do on my linux web server to translate 
authentication from the external ipaddress of the web server to the internal ip 
address. or any rules extra rules I need to add to my firewall.
 
hope this makes sense.  
 
Charnjit
 
 
Charnjit Sidhu
Computing Officer
Birmingham University Imaging Centre
School of Psychology
University of Birmingham
 
Tel: +44 (0)121 4143857
E-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

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