< Home

radius-server authorization match-type

Function

The radius-server authorization match-type command configures the method in which the device checks whether the RADIUS attributes in the received CoA or DM Request packet match user information on the device.

The undo radius-server authorization match-type command restores the default setting.

By default, a device checks whether the RADIUS attributes in the received CoA or DM Request packet match user information on the device using the any method, namely, the device checks whether a specific RADIUS attribute in the received CoA or DM Request packet matches user information on the device.

Format

radius-server authorization match-type { any | all }

undo radius-server authorization match-type

Parameters

Parameter

Description

Value

any

Indicates that the device checks whether a specified attribute matches user information on the device.

-

all

Indicates that the device checks whether all attributes match user information on the device.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

A device checks whether the RADIUS attributes in the CoA or DM Request packet match user information on the device to identify users in the following two methods:
  • any method: The device checks whether an attribute matches user information on the device. The priority of identifying the RADIUS attributes used by the users is as follows: Acct-Session-ID (44) > Calling-Station-Id (31) > Framed-IP-Address (8). The device searches for the attributes in the Request packet based on the priority, and matches the first found attribute against user information on the device. If the attribute is successfully matched, the device responds with an ACK packet; otherwise, the device responds with a NAK packet.
  • all method: The device checks whether all attributes match user information on the device. It identifies the following RADIUS attributes used by users in the listed order: Acct-Session-ID (44), Calling-Station-Id (31), Framed-IP-Address (8), and User-Name (1). The device matches one or more of the preceding attributes in the Request packet against user information on the device. If all the attributes are successfully matched, the device responds with an ACK packet; otherwise, the device responds with a NAK packet.

Precautions

When the RADIUS attribute translation function is configured in the RADIUS template using the radius-attribute translate command, the match will fail.

Currently, the any method supports only the Acct-Session-ID (44), Calling-Station-Id (31), and Framed-IP-Address (8) attributes. The device does not match other attributes against user information on the device.

Example

# Configure the device to check whether all RADIUS attributes in the received CoA or DM Request packet match user information on the device.

<sysname> system-view
[sysname] radius-server authorization match-type all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >