Flexible RADIUS accounting and authentication plug-ins allow you to define the content of RADIUS packets that the SAE sends to RADIUS servers. You can specify which attributes are included in different types of RADIUS packets (for example, session start or stop requests, or accounting on or off requests). You can also specify what information is contained in the attribute fields.
A RADIUS attribute configuration consists of RADIUS attribute instances. Each instance defines attributes for a specific type of packet—For example, start requests or accounting off requests.
Within each attribute instance, you define individual RADIUS attributes. The following is a RADIUS attribute instance for authentication requests:
radius-attributes auth {
attributes {
User-Name loginId;
User-Password password;
NAS-Identifier localNasId;
NAS-IP-Address localNasIp;
NAS-Port nasPort;
}
}
Each RADIUS packet template can consist of multiple RADIUS attribute instances.
The SRC software comes with two default templates:
Attribute instances define attributes for a specific type of RADIUS packet. The name that you assign to an attribute instance specifies the type of packet to which the attribute definition is applied. Table 15 lists the available packet types.
Table 15: RADIUS Attribute Instance Names
RADIUS attribute definitions consist of a RADIUS attribute and a value for the RADIUS attribute.
You can define values for standard RADIUS attributes or JUNOSe vendor-specific attributes (VSAs).
For standard RADIUS attributes, use a name or number as defined in RFC 2865—Remote Authentication Dial In User Service (RADIUS) (June 2000), RFC 2866—RADIUS Accounting (June 2000), or RFC 2869—RADIUS Extensions (June 2000). For a full list, see www.iana.org/assignments/radius-types.
For Juniper Networks VSAs, use one of the following formats:
where <type> is one of the following:
The following is an example of RADIUS attribute instances that define RADIUS VSAs.
radius-attributes svcresp {
attributes {
Session-Timeout setSessionTimeout(ATTR);
Idle-Timeout setIdleTimeout(ATTR);
vendor-specific.Juniper.Sdx-Session-Volume-Quota setSessionVolumeQuota(ATTR);
vendor-specific.WISPr.Redirection-URL "setProperty(\"startURL=%s\" % ATTR)";
vendor-specific.WISPr.Bandwidth-Min-Up "setSubstitution(\"min_up_rate=%s\" % ATTR)";
vendor-specific.WISPr.Bandwidth-Min-Down "setSubstitution(\"min_down_rate=%s\" % ATTR)";
vendor-specific.WISPr.Bandwidth-Max-Up "setSubstitution(\"max_up_rate=%s\" % ATTR)";
vendor-specific.WISPr.Bandwidth-Max-Down "setSubstitution(\"max_down_rate=%s\" % ATTR)";
}
}
radius-attributes dhcpresp {
attributes {
Framed-Pool setPoolName(ATTR);
Framed-IP-Address setUserIpAddress(ATTR);
26.4874.1.text setAuthVirtualRouterName(ATTR);
26.4874.2.text setPoolName(ATTR);
26.4874.31.text setServiceBundle(ATTR);
}
}