coova / jradius

JRadius is a Java RADIUS framework for client and server.
Other
92 stars 92 forks source link

How to test a RADIUS server with EAP-MSCHAPv2 authentication protocol? #26

Open rochiang opened 6 years ago

rochiang commented 6 years ago

I setup a freeRADIUS server and tested it with JRadiusSimulator. I just specified User-Name, User-Password attributes. PAP, CHAP, MSCHAPv1 and MSCHAPv2 passed. But for EAP-MSCHAPv2, it stuck after "received RADIUS packet net.sf.jradius.packet.AccessChallenge". How should I configure the attributes or other settings in JRadiusSimulator?

The server is

/usr/sbin/radiusd -d /etc/raddb -X

FreeRADIUS Version 2.1.12, for host x86_64-redhat-linux-gnu, built on Oct 15 2014 at 05:01:25 Copyright (C) 1999-2009 The FreeRADIUS server project and contributors.

pavelnt commented 6 years ago

There is a problem in release version of JRadiusSimulator (1.1.5). By default simulator uses Crypto Provider from JDK. This provider doesn't support MD4 algorithm that is required to encode user's password. See the latest commit from David Greene. Now simulator uses BouncyCastle Crypto Provider. All should work if you build project from master brunch.

RobernetCO commented 4 months ago

Hi, i have found EAPTest very useful, just if you have macOS