public class RadClient extends Object
RadClient Arguments: [options] server secret file
server = RADIUS server hostname or ip
secret = Shared secret to use
file = File containing the attribute name/value pairs
Options:
-d java-class = Java class name of the attribute dictionary
(default: net.jradius.dictionary.RadiusDictionaryImpl)
-s java-class = Java class name of the attribute checker
(e.g net.jradius.standard.WISPrStandard)
-a auth-mode = Either PAP (default), CHAP, MSCHAP, MSCHAPv2,
EAP-MD5, EAP-MSCHAPv2 or EAP-TLS
-T tunnel-mode = Only EAP-TTLS currently supported
-A = Generate a unique Acct-Session-Id in Accounting Requests
-C = Turn OFF Class attribute support
Also see http://jradius.net/
If the packet attribtue list contains "Acct-Status-Type", then RadClient will know the packet is an AccountingRequest. Otherwise, it assumes you are sending a AccessRequest. The attribute file can contain multiple packets separated by a single blank line. You can optionally also "sleep" for a number of seconds between packets as shown in this example attributes file (authentication, following by a start, interim, and stop accounting):
# Lines starting with a hash are comments User-Name = test User-Password = test sleep 1 User-Name = test Acct-Status-Type = Start sleep 1 User-Name = test Acct-Status-Type = Interim-Update sleep 1 User-Name = test Acct-Status-Type = Stop
public static void main(String[] args)
Copyright © 2016. All rights reserved.