RADIUS Protocol

The RADIUS protocol is designed for extensibility by providing vendor-specific attributes. This is a widely-used mechanism to allow vendors to define additional information attributes to be carried in RADIUS messages. Vendor-specific attributes are carried in a RADIUS message with a message type of 26 and a value of an opaque string. However, RFC 2865 provides a recommended method for structuring the opaque string value into a sequence of subattribute type, length, value triplets, preceded by a vendor identifier.

RadiusVSA

Represents a vendor-specific attribute that consists of a numeric vendor ID and one or more subattributes.

.vendorid
Type:

Integer

Description:

Identifies the vendor for which the sub-attributes apply.

Note

For definitions of vendor IDs, see the SMI Network Management Private Enterprise Codes.

.attributes
Type:

Array

Description:

Array of RadiusVSAAttributes.

RadiusVSAAttribute

Represents a vendor-specific subattribute that is contained in a vendor-specific attribute and contains a vendor-assigned type, length, and value. The value is always a string.

.type
Type:

Integer

Description:

Identifies the subattribute type.

.length
Type:

Integer

Description:

Read-only property that provides the length of the string value.

.value
Type:

String

Description:

Associated value for this subattribute.

The following line of code shows that, in addition to a default constructor, the RadiusVSAAttribute class provides a constructor that takes an integer type and a string value as parameters for type and value.

var attr = new RadiusVSAAttribute( 27, "h323-call-type=VOIP");