public class RadBench extends Object
RadBench 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)
-a auth-mode = Either PAP (default), CHAP, MSCHAP, MSCHAPv2,
EAP-MD5, or EAP-MSCHAPv2
(always provide the plain-text password in User-Password)
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):
| 限定符和类型 | 字段和说明 |
|---|---|
protected static RadiusAuthenticator |
auth |
protected static RadiusClient |
client |
| 构造器和说明 |
|---|
RadBench() |
protected static RadiusClient client
protected static RadiusAuthenticator auth
protected static void usage()
protected static boolean loadAttributes(AttributeList list, BufferedReader in) throws IOException
IOExceptionpublic static void main(String[] args)
Copyright © 2016. All rights reserved.