[Contents] [Prev] [Next] [Index] [Report an Error]


Configure RADIUS Authentication

To use RADIUS authentication on the router, configure information about one or more RADIUS servers on the network by including the radius-server statement at the [edit system] hierarchy level:

[edit system]
radius-server server-address {
    port number; 
    secret password; 
    retry number; 
    timeout seconds; 
}

In server-address, specify the address of the RADIUS server.

You can specify a port number on which to contact the RADIUS server. By default, port number 1812 is used (as specified in RFC 2138).

You must specify a password in the secret statement. Passwords can contain spaces. The secret used by the local router must match that used by the server.

Optionally, you can specify the amount of time that the local router waits to receive a response from a RADIUS server (in the timeout statement) and the number of times that the router attempts to contact a RADIUS authentication server (in the retry statement). By default, the router waits 3 seconds. You can configure this to be a value in the range 1 through 90 seconds. By default, the router retries connecting to the server 3 times. You can configure this to be a value in the range 1 through 10 times.

To configure multiple RADIUS servers, include multiple radius-server statements.

To configure a set of users that share a single account for authorization purposes, you create a template user. To do this, include the user statement at the [edit system login] hierarchy level, as described in Configure Template Accounts for RADIUS and TACACS+ Authentication.

Configure Juniper Networks-Specific RADIUS Attributes

The JUNOS software supports the configuration of Juniper Networks-specific RADIUS attributes. These attributes are known as vendor-specific attributes and are described in RFC 2138, Remote Authentication Dial In User Service (RADIUS). These Juniper Networks-specific attributes are encapsulated in a RADIUS vendor-specific attribute with the vendor ID set to the Juniper Networks ID number, 2636. Table 9 lists the Juniper Networks-specific attributes you can configure.


Table 9: Juniper Networks-Specific RADIUS Attributes

Name
Description
Type
Length
String
Juniper-Local-User-Name
Indicates the name of the user template used by this user when logging into a device. This attribute is used only in Access-Accept packets.
1
3
One or more octets containing printable ASCII characters.
Juniper-Allow-Commands
Contains an extended regular expression that allows the user to run operational mode commands in addition to the commands authorized by the user's login class permission bits. This attribute is used only in Access-Accept packets.
2
3
One or more octets containing printable ASCII characters, in the form of an extended regular expression.
Juniper-Deny-Commands
Contains an extended regular expression that denies the user permission to run operation mode commands authorized by the user's login class permission bits. This attribute is used only in Access-Accept packets.
3
3
One or more octets containing printable ASCII characters, in the form of an extended regular expression.
Juniper-Allow-Configuration
Contains an extended regular expression that allows the user to run configuration mode commands in addition to the commands authorized by the user's login class permission bits. This attribute is used only in Access-Accept packets.
4
3
One or more octets containing printable ASCII characters, in the form of an extended regular expression.
Juniper-Deny-Configuration
Contains an extended regular expression that denies the user permission to run configuration commands authorized by the user's login class permission bits. This attribute is used only in Access-Accept packets.
5
3
One or more octets containing printable ASCII characters, in the form of an extended regular expression.


[Contents] [Prev] [Next] [Index] [Report an Error]