net.sf.jradius.client
Class RadBench
java.lang.Object
net.sf.jradius.client.RadBench
public class RadBench
- extends java.lang.Object
A Java RADIUS Benchmarking program.
Usage:
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.sf.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):
- Author:
- David Bird
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
client
protected static RadiusClient client
auth
protected static RadiusAuthenticator auth
RadBench
public RadBench()
usage
protected static void usage()
loadAttributes
protected static boolean loadAttributes(AttributeList list,
java.io.BufferedReader in)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
Copyright © 2006 The JRadius Project, All Rights Reserved.