net.jradius.client
Class RadClient

java.lang.Object
  extended by net.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.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
 

Author:
David Bird

Constructor Summary
RadClient()
           
 
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
 

Constructor Detail

RadClient

public RadClient()
Method Detail

main

public static void main(java.lang.String[] args)


Copyright © 2008 JRadius Project, All Rights Reserved.