com.theorem.radius3.examples.radauth
Class radauth
Object
radauth
- public class radauth
- extends Object
Test authentication class for a radius server.
Sends an authentication request to a RADIUS server using command line options.
This is a command line driven test for a radius server.
Usage: radauth login password authtype server[:port default is 1812] nas_port_id secret [nasname]
The arguments:
- login - Entity's name to login under - may contain a realm of the form michael@theorem.com
- password - The entity's password.
- authtype - The authentiction type. Choose from PAP, CHAP, EAPMD5, MSCHAP or MSCHAP2.
These names must be in upper case.
- server - The RADIUS server name or address. Optionally the port number can be appended
to the server name. The default port is the RFC standard 1812. Many servers use the non-standard
1645 port.
- nas_port_id - NAS port this message is arriving from. The number 1 is a good choice. This
is a legacy option from the radtest.c program.
- secret - The Radius server shared secret.
- nasname - Optional name to use for the NAS-Identifier value.
Examples:
radauth michael test MSCHAP 127.0.0.1 1 seversecret
radauth michael test EAPMD5 192.168.1.1:1645 5 testtesttest
radauth michael test PAP 192.168.1.1 1 seversecret NAS1
radauth michael@theorem.com test MSCHAP2 192.168.1.1:1645 1 seversecret
Be sure that the RADIUS server allows the workstation as a client and that the secret is the same
for the client and server.
|
Method Summary |
static void |
main(String[] args)
Main task.
|
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
radauth
public radauth()
main
public static void main(String[] args)
- Main task.
This authenticates and accounts against a radius server defined the radtest.properties file.
The Authentication loop uses the AttributeArray class to create attributes.
The Accounting loop use the Radius object's methods to create attributes.
- Parameters:
args - Command line arguments.
login, password, server[:port default is 1812], nas_port_id secretkey [nasname]
Submit a bug report or feature request
Copyright 1998-2002 AXL Software. PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.