Defining RADIUS Attributes for COA Requests with the API
The SRC software provides two ways to define RADIUS attributes for dynamic RADIUS authorization requests:
- Service definition (see Configuring the COA Script Service (SRC CLI))
- SAE core API
Note: Parameters set in the API override parameters set by the service definition.
To send dynamic RADIUS authorization requests with the SAE core API, the script service uses the sendDynamicRadius and getRouterDynRadiusAddr methods in the ServiceSessionInfo interface to provide the content of the RADIUS packet for the dynamic authorization request to the router that is attached to the service session.
For information about the ServiceSessionInfo interface, see the script service documentation in the SAE core API documentation on the Juniper Networks Web site at https://www.juniper.net/techpubs/software/management/src/api-index.html.
For a sample implementation, see the following
file in the SDK+AppSupport+Demos+Samples.tar.gz
file:
SDK/scriptServices/coa/java/net/juniper/smgt/scriptServices/coa/CoaService.java
.