net.sf.jradius.client
Class RadClient
java.lang.Object
net.sf.jradius.client.RadClient
public class RadClient
- extends java.lang.Object
A Java RADIUS Client program.
Usage:
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.sf.jradius.dictionary.RadiusDictionaryImpl)
-s java-class = Java class name of the attribute checker
(e.g net.sf.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
(See http://jradius.sourceforge.net/radclient.html)
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
- Author:
- David Bird
Method Summary |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RadClient
public RadClient()
main
public static void main(java.lang.String[] args)
Copyright © 2006 The JRadius Project, All Rights Reserved.