Issue when freeRadius is accessed using JRadius Client.

kpani dhandu_k at
Thu Jun 25 15:10:02 CEST 2009

I am using JRadius Client with freeRadius server for user authentication.
The following code is used to access freeRadius server:
InetAddress addr = InetAddress.getByName(radiusServerAddress);
RadiusClient radiusClient = new RadiusClient(addr, secretKey);
AttributeList attributeList = new AttributeList();
attributeList.add(new Attr_UserName(userName));
attributeList.add(new Attr_NASPortType(Attr_NASPortType.Ethernet));
attributeList.add(new Attr_NASPort(new Long(1)));
AccessRequest request = new AccessRequest(radiusClient, attributeList);
request.addAttribute(new Attr_UserPassword(password));
RadiusPacket reply = radiusClient.authenticate(request, new
PAPAuthenticator(), 0);
System.out.println("Received: " + reply.toString());

The server authenticates the user successfully but the response message is
printed as follows. So I couldn't read the response values. 
     Unknown-Attribute(6) = [Binary Data (length=4)]
     Unknown-Attribute(7) = [Binary Data (length=4)]

The /usr/local/etc/raddb/users configuration is as follows :
    dave   Cleartext-Password := "public"
           Service-Type = Framed-User,
           Framed-Protocol = PPP,

Please help me to resolve this issue. Am I missing anything?

Thanks in advance.

View this message in context:
Sent from the FreeRadius - User mailing list archive at

More information about the Freeradius-Users mailing list