< Home

user-attribute

Function

The user-attribute command configures the attribute of users to be imported from an authentication server.

The undo user-attribute command restores the default user attribute.

Format

user-attribute user-attribute

undo user-attribute

Parameters

Parameter Description Value
user-attribute Specifies user attribute. If the user attribute does not contain any space, its length ranges from 1 to 63. If the user attribute contains spaces, its length ranges from 3 to 65, and you must enclose the parameter with double quotation marks (") and ensure that the user attribute does not start or end with a space. The default value is recommended.

Views

Server import policy view

Default Level

2: Configuration level

Usage Guidelines

By default, the user attribute of an AD server or AD LDAP server is sAMAccountName, the user attribute of an Open LDAP server is cn, and the user attribute of a Sun ONE LDAP server is uid. You are advised to keep the default values.

Example

# Set the user attribute to sAMAccountName.

<sysname> system-view
[sysname] user-manage import-policy policy1 from ldap
[sysname-import-policy1] user-attribute sAMAccountName
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >