AXL RADIUS Server API V3

Package com.theorem.radserver3.dmcoaserver

Server side Disconnect-Message and Change-of-Authorization messages support.

See:
          Description

Class Summary
SendDMCOA Class to send messages to client as described in RFC 3576 - Dynamic Authorization Extensions to RADIUS.
 

Package com.theorem.radserver3.dmcoaserver Description

Server side Disconnect-Message and Change-of-Authorization messages support. DM & COA messages are sent from the server to compliant clients to force disconnects and session authorization attributes respectively. The details are found in RFC 3576 'Dynamic Authorization Extensions to RADIUS'.

The SendDMCOA class is meant to be used locally or in an unrelated JVM. The program that must initiate the DM / COA message need not be within any of the implementations. It must, however reside on the same machine as the RADIUS server API.

The SendDMCOA class sends a RADIUS DM or COA request to the server at 127.0.0.1 which relays the request to the destination client. Therefor there must be a NAS configured for the loop back address of 127.0.0.1. The secret used in the constructor is the secret for the loop back machine and not for the targeted client.

For example if we want to send a Disconnect-Message to a client at 192.168.1.1 and the secret for the server's NAS is 'axltest' the source might look like:

byte[] secret = "axltest".getBytes();
InetAddress clientAddr = InetAddress.getByName("192.168.1.1");

SendDMCOA sd = SendDMCOA(PacketType.Disconnect_Request, clientAddr, secret);
int result = sd.send();
if (result == PacketType.Disconnect_ACK)
	System.out.println("Ack received!");
else
	System.out.println("Failed: " + new PacketType().getName(result));


AXL RADIUS Server API V3

Submit a bug report or feature request

Copyright 1998-2008 AXL Software. PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.