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


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


Command Reference

OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5 storage systems. It describes hardware installation of those storage systems for helping you easily and quickly finish the installation.

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).
add identity_mapping rule

add identity_mapping rule


The add identity_mapping rule command is used to add user mapping rules.


add identity_mapping rule from_identity=? to_identity=? mapping_type=? [ priority=? ] [ host_name=? | address=? ]





from_identity=? Pre-mapping identifier.

The * wildcard character is supported, but the ** is not. The value is a string containing 1 to 256 characters. The value cannot contain (/), ([]), (:), (;), (|), (=), (,), (+), (?), (<>), (@), ("), and control characters. The last character cannot be (.).

to_identity=? Post-mapping identifier.

The value is a string containing 1 to 256 characters. The value cannot contain (/), ([]), (:), (;), (|), (=), (,), (+), (*), (?), (<>), (@), ("), and control characters. The last character cannot be (.).

mapping_type=? Mapping type.

The value can be "Windows_to_Unix" and "Unix_to_Windows", where:

  • "Windows_to_Unix": maps a Windows user as a UNIX user.
  • "Unix_to_Windows": maps a UNIX user as a Windows user.
priority=? Priority of mapping rules.

The value ranges from 1 to 32. The default value is 10.

host_name=? Host name.

The value ranges from 1 to 256 characters.

  • The value can consist of letters, digits, hyphens (-), periods (.), and underscores (_).
  • The value starts with a letter or digit and cannot end with a hyphen (-) or underscore (_).
  • The value cannot contain consecutive periods (.), combination of a period and hyphen (.- or -.), or the combination of a period and underscore (._ or _.).
  • The value cannot consist of pure digits.
  • The fully qualified domain name (FQDN) is recommended.
address=? IP address segment.

The value can be an IPv4 address segment or an IPv6 address segment, for example:



Usage Guidelines



Add user mapping rules.

admin:/>add identity_mapping rule from_identity=windowsuser to_identity=unixuser mapping_type=Windows_to_Unix priority=5
Command executed successfully.

System Response


Updated: 2020-01-17

Document ID: EDOC1000181601

Views: 381015

Downloads: 56

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next