RADIUS: Using Vendor-Specific Attributes
RADIUS Attributes Overview
The RADIUS RFC defines a list of attributes. These attributes contain authentication and authorization information about a specific user. Attributes are sent between the Shiva device and the RADIUS server in RADIUS packets.
Every attribute used to support RADIUS is specified on the RADIUS server (usually in a file called a "dictionary"), but this varies with each RADIUS Server vendor). Each attribute is assigned a number and a name.
Currently, the RADIUS Authentication RFC defines about 95 attributes, and the remaining numbers, up to 255, are reserved for future use. These attributes are usually in Tag/Length/Value (TLV) format.
Shiva's Vendor-Specific Attribute
Vendor-specific attributes (VSA) are defined by remote access server vendors to customize how RADIUS works on their servers. Shiva has defined one vendor specific attribute.
Shiva's vendor code is 166. The Shiva vendor specific attribute is:
Shiva-User-Attributes (attribute code = 1)
Note: If your users only require one type of permission, the Shiva VSA may not be necessary, because most options which can be configured with this attribute can also be configured using RADIUS defined attributes.
For example:
testuser Password = "testpassword",
Shiva-User-Attributes = "/di/do /ip=200.1.1.1 /max = 180"
The format of this attribute is a string that includes the user options listed in the following table.
|
Radius Attribute Number and Name
|
Packet Sent/Received or Not Supported
|
Corresponding SHIVA USER LIST Option
|
1) User-Name
|
Sent in Access-Request packet
|
|
2) User-Password
|
Sent in Access-Request packet
|
/pwd
|
3) Chap-Password
|
Sent in Access-Request packet
|
/pwd
|
*4) NAS-IP-Address
|
Sent in Access-Request packet
|
|
5) NAS-Port
|
Sent in Access-Request packet
|
|
*6) Service-Type
|
|
Possible values underlined:
Administrative User _ /sh + /cf + /tp
NAS Prompt _ /sh
Outbound _ /do
Framed-User _ /di + /sh (if no Framed-Route specified for this user and Framed-Routing is not specified or is set to None) OR
_ /rt + /sh (if a Framed-Route is specified or Framed-Routing is set to a value other than None)
Login _ /sh + /cmd=<Login-IP-Host>,<Login-IP-Service>,<Login-IP-Port>
Callback NAS Prompt _ /fd + /sh (if Dial-back Number is specified) OR
_ /rd + /sh (if Dial-Back Number is NOT specified)
Callback Login _ /fd (if Dial-Back Number is specified) + /sh + /cmd=<Login-IP- Host>, <Login-IP-Service>,<Login-IP-Port> OR
_ /rd (if Dial-Back Number is NOT specified) + /sh + /cmd=<Login-IP-Host>,<Login-IP-Service>,<Login-IP-Port>
Callback Framed --> /fd + /di (if Dial-Back Number is specified) OR
_ /rd + /di (if Dial-Back Number is NOT specified)
Authenticate Only _ Not Supported
|
7) Framed Protocol
|
|
_ /cmd=ppp OR /cmd=slip
ppp _ initiate a ppp session automatically whenever the user dials in to the command shell.
slip _ initiate a slip session automatically whenever the user dials in to the command shell.
Configuring an AutoShellDelay can be used to cause the user to enter the shell automatically after the configured delay period.
|
8) Framed-IP-Address
|
Received in Access-Accept
|
_ /ip=[address]
A Framed-IP-Address of 255.255.255.254 is ignored if it is received. This address is used to indicate to some remote access servers that the user should be assigned an address from a pool. The Shiva device has a configuration parameter to indicate that addresses should be assigned from a pool. If this configuration parameter is set, and an address is not assigned to the user in the user's list, the user will automatically be assigned an address from the pool.
|
9) Framed-IP-Netmask
|
Not supported
|
|
*10) Framed-Routing
|
Received in Access-Accept
|
_ If Service-Type is Framed-User, this parameter is used in conjunction with the Framed-Route attribute to determine if the user is LTL or Single-User Dialin.
|
*11) Filter-ID
|
Received in Access-Accept packet
|
_ /ipf=[filtername] OR [filter definition]
|
12) Framed-MTU
|
Not supported (not configurable on a per-user basis)
|
|
13) Framed-Compression
|
Not supported (not configurable on a per-user basis)
|
|
*14) Login-IP-Host
|
Received in Access-Accept packet
|
_ Used in combination with Service-Type = Login or Service-Type = Callback Login to implement the /cmd option.
i.e. Service-Type = Login-User
+ Login-IP-Host = 140.l248.299.29
+ Login-Service = TCP-Clear +Login-Port = 23
is equivalent to:
/cmd = telnet, 140.248.299.299, binary, 23
|
*15) Login-Service
|
|
see 14.
|
*16) Login-Port
|
|
see 14.
|
17 (not defined)
|
|
|
18) Reply-Message
|
Not supported
|
|
19) Callback-Number
|
|
_ /db
|
20) Callback-ID
|
Not supported
|
|
21 (not defined)
|
|
|
*22) Framed-Route
|
Received in Access-Accept packet
|
_ /ipst If Service-Type is Framed-User, this parameter is used in conjunction with the Framed-Route attribute to determine if the user is LTL or Single-User-Dialin.
|
23) Framed-IPX-Network
|
Not supported
|
|
24) State
|
Received in Access-Accept packet
|
|
*25) Class
|
Received in Access-Accept packet
|
_ /ba
|
26) Vendor-Specific
|
Received in Access-Accept packet
|
_ incorporates all Shiva User Options (except /nbp and /zf) in the vendor specific attribute called Shiva-User-Attributes
|
*27) Session-Timeout
|
Received in Access-Accept packet
|
_ /max
|
28) Idle-Timeout
|
Not supported (not configurable on a per-user basis)
|
|
29) Termination-Action
|
|
Not Applicable
|
*30) Called-Station-ID
|
Sent in Access-Request packet
|
|
*31) Calling-Station-ID
|
Sent in Access-Request packet
|
|
32) NAS-IDentifier
|
Sent in Access-Request packet
|
|
33) Proxy-State
|
|
Not Applicable
|
34) Login-LAT-Service
|
Not supported
|
|
35) Login-LAT-Node
|
Not supported
|
|
36) Login-LAT-Group
|
Not supported
|
|
37) Framed-AppleTalk-Network
|
Not supported
|
|
38) Framed-AppleTalk-Link
|
Not supported
|
|
39) Framed-AppleTalk-Zone
|
Not supported
|
|
40-59 reserved for accounting
|
|
|
60) Chap-Challenge
|
Sent in Access-Request packet
|
|
*61) NAS-Port-Type
|
Sent in Access-Request packet
|
|
*62) Port-Limit
|
|
_ /ml (for dial-in only, for LTL this will not be limited)
|
63) Login-LAT-Port
|
Not supported
|
|
*209) IP-Direct
|
|
_ /ipd
|
This vendor-specific attribute is necessary if you wish to give users permission for more than one type of access (for example, dial-in, dial-out, shell, LAN-to-LAN, fixed dial-back, roaming dial-back, view config, telnet and ping access.)
The RADIUS protocol allows only one Service-Type attribute to be sent in an Access-Accept packet. Therefore, unless you use a VSA, your users may only be given one type of access. This VSA may be used in combination with RADIUS defined attributes.
If your server supports VSAs according to the method specified in the most current RADIUS Authentication RFC, you do not have to perform any special configuration on the Shiva device. With the latest RADIUS Authentication RFC, add the Shiva-user-attribute to the list of attributes on the RADIUS server with the value of 1, and the Vendor Code of 166 (for Shiva).
VSAs for Non-TLV Format Supported RADIUS Servers
Not all RADIUS servers support the TLV format for the Vendor-Specific attribute. Several configuration parameters have been defined to allow a Shiva device to work with RADIUS servers that do not support the TLV format.
If your RADIUS server does not support the TLV format for the VSA, and you plan to use Shiva VSAs to configure your users, you must configure several configuration parameters in the Security Section on the Shiva device to identify that you are using VSAs, and then define the values these attributes are assigned in the dictionary file.
The Dictionary File
These configuration parameters allow you to "steal" attribute numbers from the reserved range of RADIUS-defined attributes for your VSAs.
To choose attribute numbers to assign to Shiva VSAs, go to the dictionary file on your RADIUS server and find a number lower than 255 that is not already assigned to another attribute. Because only one Shiva VSA is defined, only one number is needed.
Related Information
Security and Accounting
[ Top of Page... ]
[ Back to Shiva Configurator Directory ]
|