Creating a name mapping
You can use the vserver name-mapping create command to create a name mapping. You use name mappings to enable Windows users to access UNIX security style volumes and the reverse.
About this task
For each SVM, ONTAP supports up to 12,500 name mappings for each direction.
Examples
The following command creates a name mapping on the SVM named vs1. The mapping is a mapping from Linux to Windows at position 1 in the priority list. The mapping maps the Linux user johnd to the Windows user ENG\JohnDoe.
vs1::> vserver name-mapping create -vserver vs1 -direction unix-win -position 1 -pattern johnd
-replacement "ENG\\JohnDoe"
The following command creates another name mapping on the SVM named vs1. The mapping is a mapping from Windows to Linux at position 1 in the priority list. Here the pattern and replacement include regular expressions. The mapping maps every CIFS user in the domain ENG to users in the LDAP domain associated with the SVM.
vs1::> vserver name-mapping create -vserver vs1 -direction win-unix
-position 1 -pattern "ENG\\(.+)"
-replacement "\1"
The following command creates another name mapping on the SVM named vs1. Here the pattern includes $
as an element in the Windows user name that must be escaped. The mapping maps the windows user ENG\ john$ops to Linux user john_ops.
vs1::> vserver name-mapping create -direction win-unix
-position 1 -pattern ENG\\john\$ops
-replacement john_ops