include

Function

The include command configures an attribute to be included in the RADIUS test group.

The undo include command cancels the configuration.

By default, attributes to be included in a RADIUS test group are not configured.

Format

include [ authentication | accounting ] { radius-attr-name auto | radius-attr-name radius-attribute-value | user-password user-password | chap-password chap-password }

undo include [ authentication | accounting ] [ radius-attr-name ]

Parameters

Parameter Description Value
authentication

Indicates authentication attributes.

-

accounting

Indicates accounting attributes.

-

radius-attr-name

Specifies an attribute name.

The value is a string of 1 to 64 characters.

auto

Indicates that the RADIUS attributes use default values.

-

radius-attribute-value

Specifies an attribute value.

The value is a string of 1 to 253 case-sensitive characters, spaces not supported. The valid length of the attribute ranges from 1 to 247.

user-password user-password

Specifies a user password.

The value is a string of 1 to 128 case-insensitive characters, spaces not supported. When value is auto, a user password is generated automatically.

chap-password chap-password

Specifies a CHAP password.

The value is a string of 1 to 16 case-insensitive characters, spaces not supported. When value is auto, a CHAP password is generated automatically.

Views

RADIUS test template view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
radius write

Usage Guidelines

Usage Scenario

When the test-aaa command is run to test whether a user can be authenticated by a RADIUS server, you can run the exclude command to configure authentication or accounting packets to carry specific attributes.

If you have run the exclude command to configure an attribute to be excluded, run the undo exclude command to cancel the configuration before running the include command.

In VS mode, this command is supported only by the admin VS.

Example

# In the RADIUS test group named alu, configure the authentication packets to carry the chap-password attribute, with the attribute value of 123@pEAK.
<HUAWEI> system-view
[~HUAWEI] radius-test-group alu
Info: It's successful to create an radius test group!
[*HUAWEI-rds-test-grp-alu] include authentication chap-password 123@pEAK
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >