Command Manual – AAA RADIUS HWTACACS
H3C S7500E Series Ethernet Switches
Chapter 1 AAA/RADIUS/HWTACACS
Configuration Commands
1-59
1.2.27 user-name-format
Syntax
user-name-format
{
with-domain
|
without-domain
}
View
RADIUS scheme view
Parameters
with-domain
: Includes the ISP domain name in the username sent to the RADIUS
server.
without-domain
: Excludes the ISP domain name from the username sent to the
RADIUS server.
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.
Note that:
z
A username is generally in the format of 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 is
thus provided for you to decide whether to include a domain name in a username
to be sent to a RADIUS server.
z
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, thus
avoiding the confused situation where the RADIUS server regards two users in
different ISP domains but with the same userid as one.
Related commands:
radius scheme
.
Examples
# Specify the device to include 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