Hi, again, I've been trying to connect FreeRadius with an application on Java, but I don't find the correct way. Could somebody tell me something about it?, please!
Have you looked Jradius which is Radius Plugin for Java ? On Wed, Dec 21, 2011 at 1:01 AM, Jeisson Fabian Perez Rodriguez < jeissonfabian.pr@gmail.com> wrote:
Hi, again,
I've been trying to connect FreeRadius with an application on Java, but I don't find the correct way.
Could somebody tell me something about it?, please!
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Tuesday 20 Dec 2011, Jeisson Fabian Perez Rodriguez wrote:
Hi, again,
I've been trying to connect FreeRadius with an application on Java, but I don't find the correct way.
Could somebody tell me something about it?, please! Look for jradius. It provides what you are looking for.
David
umm Yeah, I've been trying that. But now I found another problem! :( When I run the application, appears this: log4j:WARN No appenders could be found for logger (net.jradius.log.Log4JRadiusLogger). log4j:WARN Please initialize the log4j system properly. And really I dont know what happens. Please, if somebody knows! On Tue, Dec 20, 2011 at 2:50 PM, David Goodenough < david.goodenough@linkchoose.co.uk> wrote:
On Tuesday 20 Dec 2011, Jeisson Fabian Perez Rodriguez wrote:
Hi, again,
I've been trying to connect FreeRadius with an application on Java, but I don't find the correct way.
Could somebody tell me something about it?, please! Look for jradius. It provides what you are looking for.
David - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Tiny Radius works well as well I find. On Thu, Dec 22, 2011 at 3:27 AM, Jeisson Fabian Perez Rodriguez < jeissonfabian.pr@gmail.com> wrote:
umm Yeah,
I've been trying that.
But now I found another problem! :(
When I run the application, appears this:
log4j:WARN No appenders could be found for logger (net.jradius.log.Log4JRadiusLogger). log4j:WARN Please initialize the log4j system properly.
And really I dont know what happens.
Please, if somebody knows!
On Tue, Dec 20, 2011 at 2:50 PM, David Goodenough < david.goodenough@linkchoose.co.uk> wrote:
On Tuesday 20 Dec 2011, Jeisson Fabian Perez Rodriguez wrote:
Hi, again,
I've been trying to connect FreeRadius with an application on Java, but I don't find the correct way.
Could somebody tell me something about it?, please! Look for jradius. It provides what you are looking for.
David - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Yeah, I found a lot of problems with JRadius, and tried TinyRadius, it's easy! And It didn't present any problem. Thanks! Sent from my BlackBerry® wireless device -----Original Message----- From: Peter Lambrechtsen <plambrechtsen@gmail.com> Sender: freeradius-users-bounces+jeissonfabian.pr=gmail.com@lists.freeradius.org Date: Thu, 22 Dec 2011 13:58:43 To: FreeRadius users mailing list<freeradius-users@lists.freeradius.org> Reply-To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Subject: Re: Radius with Java - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Thu, Dec 22, 2011 at 3:08 PM, <jeissonfabian.pr@gmail.com> wrote:
Yeah, I found a lot of problems with JRadius, and tried TinyRadius, it's easy!
And It didn't present any problem.
Thanks!
I use this BeanShell script (www.beanshell.org) which allows for Java code to be executed from the command line without needing to be complied: Easy for remote server testing multi-platform without needing radclient and just java installed on the remote end. java -cp bsh-2.0b4.jar:TinyRadius-1.0.jar:commons-logging-1.1.1.jar bsh.Interpreter radius.bsh ---radius.bsh--- import org.tinyradius.util.*; import org.tinyradius.packet.*; String radiusHost = "192.168.0.1"; String radiusSharedSecret = "sharedsecret"; String radiusUser = "user"; String radiusPassword = "password"; RadiusClient rc = new RadiusClient(radiusHost, radiusSharedSecret); rc.setRetryCount(1); AccessRequest ar = new AccessRequest(radiusUser, radiusPassword); ar.setAuthProtocol(AccessRequest.AUTH_PAP); try { RadiusPacket response = rc.authenticate(ar); if (response.getPacketType() == RadiusPacket.ACCESS_ACCEPT) { msg = "Success: Expected radius response"; } else { msg = "Warning: RADIUS authentication did not return expected response " + response.getPacketType(); } } catch(Exception e) { msg = "Error: RADIUS authentication failed " + e ; } print (msg); ---end beanshell script--- Cheers Peter
participants (5)
-
David Goodenough -
Jeisson Fabian Perez Rodriguez -
jeissonfabian.pr@gmail.com -
Peter Lambrechtsen -
Suman Dash