User-Name (1)

No.

1

Attribute Name

User-Name

Attribute Value Type

String

Standard Defined

RFC 2865

Server Type

All

Value of Length field (in Bytes)

1–253

Description

Depending on the command line configuration, the user name can contain the domain name (such as user0001@isp) or does not contain the domain name (such as user0001).

The "radius-server domain-annex" command can be run in the domain view to add a prefix or suffix to the domain name carried in the user name of RADIUS request packets. If the added prefix or suffix makes the user name longer than 253 bytes, the user name does not carry the prefix or suffix of the domain name.

The user name can be delivered through RADIUS Access-Accept packets for EAP users, IPoE users (excluding leased lines and leased line users), PPPoE users, and users who use RADIUS proxy as the authentication mode. The other types of users will ignore the user name carried in the RADIUS Access-Accept packets. This function takes effect for IPoE users only when the "radius-attribute apply user-name match user-type ipoe" command is run in the RADIUS server group view. This function takes effect for PPPoE users only when the "radius-attribute apply user-name match user-type pppoe" command is run in the RADIUS server group view.

If the RADIUS server has delivered the user name through the RADIUS Access-Accept packets and the "radius-attribute apply user-name match user-type ipoe" command has been run in the RADIUS server group view, the user name delivered by the RADIUS server will be carried in the RADIUS Accounting-Request packets, irrespective of whether the "radius-server user-name" and "radius-server domain-annex" commands have been run.

Remark

The pure user name consists of 1 to 253 bytes; the domain name consists of 1 to 64 bytes. The total length of the user name, @, and the domain name ranges from 1 to 253 bytes. If the total length exceeds 253 bytes, the pure user name is automatically deleted. For example, if the pure user name consists of 250 bytes and the domain name consists of 10 bytes, the length of the final user name is calculated as follows: 242 bytes (pure user name) + @ + 10 bytes (domain name) = 253 bytes.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >