No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference 10

OceanStor 18500 V3 and 18800 V3 Mission Critical Storage System V300R003

"Based on the CLI, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions."
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
test ldap configuration

test ldap configuration

Function

The test ldap configuration command is used to test LDAP server configuration information.

Format

test ldap configuration type=? base_dn=? bind_dn=? bind_password=? over_ssl=? [ ip=? | port=? ]

Parameters

Parameter

Description

Value

type=? Type of the LDAP server.

The value is case-insensitive and can be "LDAP" or "AD", where:

  • "LDAP": indicates the common openLDAP protocol.
  • "AD": indicates the Active Directory (AD) protocol.
base_dn=? A basic distinguished name (DN). This parameter defines a start point for searching on an LDAP directory server.

The value is in the format of cn=, ou=, dc=.

bind_dn=? A DN bound with an LDAP server. If anonymous binding is not available for an LDAP server, you must bind DNs before you can retrieve the information on users or user groups.

The value is in the format of cn=, ou=, dc=.

bind_password=? A password for a bound DN.

The value contains 1 to 63 characters.

over_ssl=? Whether to enable SSL communication for an LDAP server.

The value can be "yes" or "no", where:

  • "yes": The SSL function is used.
  • "no": The SSL function is not used.
The default value is "no".
ip=? IP address of the LDAP server. ip and port are optional. If no value is input for ip, the value is the domain name of the test base_dn.

The IP address can be used to access the LDAP server.

port=? Listening port number of LDAP. This parameter is optional. If no value is input for port, the default ldaps port is 636 and the default ldap port is 389.

The value is an integer ranging from 1 to 65535.

Level

Super administrator

Usage Guidelines

The test will fail if you configure LDAP server information different from that on the server.

Example

  • Test LDAP server configuration information. LDAP server type: LDAP. Base DN: dc=test,dc=com. Bind DN: cn=Manager,dc=test,dc=com. Bind password: 7654321. SSL encryption.

    admin:/>test ldap configuration type=LDAP base_dn=dc=test,dc=com bind_dn=cn=Manager,dc=test,dc=com bind_password=****** over_ssl=yes
    Command executed successfully.
  • Test LDAP server configuration information. LDAP server type: LDAP. Base DN: dc=test,dc=com. Bind DN: cn=Manager,dc=test,dc=com. Bind password: 7654321. SSL encryption. IP address: 172.16.123.123.

    admin:/>test ldap configuration type=LDAP base_dn=dc=test,dc=com bind_dn=cn=Manager,dc=test,dc=com bind_password=****** over_ssl=yes ip=172.16.123.123
    Command executed successfully.
  • Test LDAP server configuration information. LDAP server type: LDAP. Base DN: dc=test,dc=com. Bind DN: cn=Manager,dc=test,dc=com. Bind password: 7654321. SSL encryption. Port: 636.

    admin:/>test ldap configuration type=LDAP base_dn=dc=test,dc=com bind_dn=cn=Manager,dc=test,dc=com bind_password=****** over_ssl=yes port=636
    Command executed successfully.
  • Test LDAP server configuration information. LDAP server type: LDAP. Base DN: dc=test,dc=com. Bind DN: cn=Manager,dc=test,dc=com. Bind password: 7654321. SSL encryption. IP address: 172.16.123.123. Port: 636.

    admin:/>test ldap configuration type=LDAP base_dn=dc=test,dc=com bind_dn=cn=Manager,dc=test,dc=com bind_password=****** over_ssl=yes ip=172.16.123.123 port=636
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-04-04

Document ID: EDOC1000084078

Views: 272028

Downloads: 249

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next