119
Description
Use the
user-name-format
command to specify the format of the username to be sent to a RADIUS server.
By default, the ISP domain name is included in the username.
A username is generally in the format
userid
@
isp-name
, of which
isp-name
is used by the device to
determine the ISP domain to which a user belongs. Some earlier RADIUS servers, however, cannot
recognize a username including an ISP domain name. Before sending a username including a domain
name to such a RADIUS server, the device must remove the domain name. This command allows you to
specify whether to include a domain name in a username to be sent to a RADIUS server.
If a RADIUS scheme defines that the username is sent without the ISP domain name, do not apply the
RADIUS scheme to more than one ISP domain, avoiding the confused situation where the RADIUS server
regards two users in different ISP domains but with the same
userid
as one.
For 802.1X users using EAP authentication, the
user-name-format
command configured for a RADIUS
scheme does not take effect and the device does not change the usernames from clients before
forwarding them to the RADIUS server.
Related commands:
radius scheme
.
Examples
# Specify the device to remove the domain name in the username sent to the RADIUS servers for the
RADIUS scheme
radius1
.
<Sysname> system-view
[Sysname] radius scheme radius1
[Sysname-radius-radius1] user-name-format without-domain
HWTACACS configuration commands
data-flow-format (HWTACACS scheme view)
Syntax
data-flow-format
{
data
{
byte
|
giga-byte
|
kilo-byte
|
mega-byte
}
|
packet
{
giga-packet
|
kilo-packet
|
mega-packet
|
one-packet
} } *
undo data-flow-format
{
data
|
packet
}
View
HWTACACS scheme view
Default level
2: System level
Parameters
data
{
byte
|
giga-byte
|
kilo-byte
|
mega-byte
}: Specifies the unit for data flows, which can be byte,
kilobyte, megabyte, or gigabyte.
packet
{
giga-packet
|
kilo-packet
|
mega-packet
|
one-packet
}: Specifies the unit for data packets,
which can be one-packet, kilo-packet, mega-packet, or giga-packet.
Description
Use the
data-flow-format
command to set the traffic statistics unit for data flows or packets.