< Home

local-user device-type

Function

The local-user device-type command configures the type of terminals allowed to access the network.

The undo local-user device-type command deletes the type of terminals allowed to access the network.

By default, the type of terminals allowed to access the network is not configured.

This function is supported only by S5730-HI, S5731-H, S5731S-H, S6730-H, S6730S-H, S5732-H, S6720-HI, and S5720-HI.

Format

local-user user-name device-type device-type &<1-8>

undo local-user user-name device-type

Parameters

Parameter Description Value
user-name Specifies the name of a local user.

When querying and modifying the user account, you can use the wildcard *, for example, *@isp, user@*, and *@*.

The value is a string of 1 to 64 characters. It cannot contain spaces, asterisk, double quotation mark and question mark.
NOTE:

During local authentication or authorization, run the authentication-mode { local | local-case } or authorization-mode { local | local-case } command to configure case sensitivity for user names. If the parameter is set to local, user names are case-insensitive. If the parameter is set to local-case, user names are case-sensitive.

Note the following when configuring case sensitivity for user names:

  • Only the user name is case-sensitive and the domain name is case-insensitive.
  • For user security purposes, you cannot configure multiple local users with the user names that differ only in uppercase or lowercase. For example, after configuring ABC, you cannot configure Abc or abc as the user name.
  • When a device is upgraded from V200R011C10 or an earlier version to a version later than V200R011C10, all local user names in the original configuration file are saved in lowercase. When a configuration file that is manually configured or generated using the third-party tool is used for configuration restoration, local user names that differ only in uppercase or lowercase are considered as one user name and the first one among these local user names is used.
device-type Specifies a terminal type.

The value is a string of 1 to 31 case-insensitive characters without spaces.

Views

AAA view

Default Level

3: Management level

Usage Guidelines

You can run the local-user device-type command to configure the type of terminals allowed to access the network. In local authentication and authorization, the device checks whether a terminal is allowed to access the network. If so, the device checks the user name and password of the terminal.

Example

# Set the type of the terminal that local user hello uses to access the network to iphone.

<HUAWEI> system-view
[HUAWEI] aaa
[HUAWEI-aaa] local-user hello device-type iphone
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >