< Home

ldap-server user-filter

Function

The ldap-server user-filter command configures the user filtering field that functions as the user name for an LDAP server. You can use the value of a user filtering field as the user name.

The undo ldap-server user-filter command restores the default value of the user filtering field that functions as the user name for an LDAP server.

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

Format

ldap-server user-filter field

undo ldap-server user-filter

Parameters

Parameter Description Value
field Specifies the user filtering field. The value is a string of 1 to 63 characters. It cannot contain spaces or the following symbols: \, /, < , >, ?, &, |, ', and ". The user attribute must be the same as that specified on the LDAP server.

Views

LDAP server template view

Default Level

3: Management level

Usage Guidelines

The command configures the user filtering field that functions as the user name for an LDAP server. The value of the user filtering field can be considered as the user name.

Example

# Configure user filtering field cn.

<sysname> system-view
[sysname] ldap-server template temp1
[sysname-ldap-temp1] ldap-server user-filter cn
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >