< Home

ldap-server template

Function

The ldap-server template command creates an LDAP server template and displays the LDAP server template view.

The undo ldap-server template command deletes an LDAP server template.

By default, no LDAP server template is configured.

Format

ldap-server template template-name

undo ldap-server template template-name

Parameters

Parameter Description Value

template-name

Specifies the name of an LDAP server template.

The value is a string of 1 to 32 case-sensitive characters.
NOTE:
  • The value supports multiple languages, including ASCII characters. The value can only contain letters, digits (0 to 9), dots (.), underscores (_), hyphens (-), and a combination of the above characters. The value can also include non-ASCII characters such as the Chinese, German, and French.
  • You can use a command editor of the GBK or UTF-8 encoding format to edit characters. For details about how to switch the encoding format of the system and related precautions, see the language character-set utf-8 command.
  • The encoding format used by the client through which users access the network needs to be the same as that used by the device. Otherwise, users may fail to go online or the user name is displayed as garbled characters.
  • After the encoding format is switched, if the user names of some users among the original online users contain non-ASCII characters, these user names are displayed as garbled characters.

Views

System view

Default Level

3: Management level

Usage Guidelines

If an LDAP server template is referenced by an authentication domain, you can modify the LDAP server template, but cannot delete it.

If you attempt to delete an LDAP template in use, the system prompts the deletion failure.

Example

# Create an LDAP server template named temp1 and access the corresponding view.

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