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

OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI provided by DeviceManager, 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=? | server_id=? ]

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=?

Base distinguished name (DN). This parameter defines a start point for searching on an LDAP directory server.

The value contains 1 to 255 characters and cannot contain slashes (/). The value is in the format of "cn=", "ou=", and "dc=" and can contain one, two, or three of them. If the value contains only "dc=", "dc=domain" is not supported.

bind_dn=?

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 contains 1 to 255 characters in the format of "cn=", "ou=", and "dc=".

bind_password=?

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. Parameters "ip" and "port" are optional. If no value is input for the "ip" parameter, 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 this parameter is left blank, default LDAPS port 636 and default LDAP port 389 are used.

The value is an integer ranging from "1" to "65535".

server_id=?

ID of a domain authentication server.

The value is an integer from 0 to 3.

Level

Super administrator

Usage Guidelines

  • The test will fail if you configure LDAP server information different from that on the server.
  • If SSL encryption is used and the domain server ID is not specified, the certificate configuration of domain server "0" is used by default.

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: 192.168.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=192.168.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: 192.168.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=192.168.123.123 port=636 
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-09-02

Document ID: EDOC1000181601

Views: 319982

Downloads: 41

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