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

FusionServer Tools 2.0 uREST User Guide 16

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).
Importing an LDAP Certificate

Importing an LDAP Certificate

Function

Import an LDAP certificate.

Format

./urest -H HOST -p PORT -U USERNAME -P PASSWORD --timeout=TIMEOUT importldapcert -I {1,2,3,4,5,6} -C CONTENT -F FILE

Parameters

Parameter

Description

Value

HOST

iBMC IP address or domain name. It is a mandatory parameter. If an IPv6 address is used, the IPv6 address must be included in square brackets, such as [1001::1001].

-

PORT

Port number. The default value is 443. It is an optional parameter.

Enter the port number if the default value 443 is not used.

USERNAME

iBMC user name. It is a mandatory parameter.

-

PASSWORD

Password of the iBMC user. It is a mandatory parameter.

-

TIMEOUT

Timeout interval for accessing the iBMC Redfish interface. It is an optional parameter. The default value is 120 seconds.

The value ranges from 10 to 1000, and the unit is seconds.

{1,2,3,4,5,6}

LDAP controller number. It is a mandatory parameter.

1 to 6

CONTENT

/tmp directory in the iBMC or remote directory to which the file is imported. It is an optional parameter.

  • If a local directory is used, the directory must be /tmp in the iBMC.
  • If a remote directory is used, the value must be in File transferring protocol://User name:Password@Remote server IP address/Directory/File name format. (The file transferring protocols include sftp, https, nfs, cifs, and scp. The protocol names must be in lowercase letters.)
NOTE:
  • Only Server Message Block (SMB) V1.0 is supported.
  • The file path restrictions are as follows:
    • The domain name and host name formats are not supported.
    • The e$ path format is not supported.
    • Anonymous login is not supported.
    • Backslashes (\) are not supported.
    • The file path cannot contain spaces. If the path contains spaces on Windows, add three double quotation marks (""") before and after the path. If the path contains spaces on Linux, add a double quotation mark (") before and after the path.

FILE

Local import path. It is an optional parameter.

The file path cannot contain spaces. If the path contains spaces:

  • On Windows, add three double quotation marks (""") before and after the path, for example, -F """D:\\test ldap\\ldap.cer"".
  • On Linux, add a double quotation mark (") before and after the path, for example, -F "/home/test ldap /ldap.cer".

Usage Guidelines

None

Example

Obtain help information.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** importldapcert -h 
usage: urest importldapcert [-h] -I {1,2,3,4,5,6} [-C CONTENT] [-F FILE]
 
optional arguments:
  -h, --help        show this help message and exit
  -I {1,2,3,4,5,6}  LDAP controller ID
  -C CONTENT        the path of certificate. Local import:Folder/File name or
                    File name. Remote import:File transfer protocol://User
                    name:Password@IP address/Folder/File name. The file
                    transfer protocols include the following: sftp, https,
                    nfs, cifs, scp.
  -F FILE           the path of file. Local import:Folder/File name.

Import the LDAP certificate of a remote directory.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** importldapcert -I 1 -C sftp://******:******@10.10.10.10/home/ldap.cer 
Success: successfully completed request
Translation
Download
Updated: 2020-02-13

Document ID: EDOC1000176182

Views: 121196

Downloads: 588

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next