For information about character coding of the /etc/usermap.cfg file, see the information about the contents of the /etc directory in the Storage Management Guide.
Each line in the /etc/usermap.cfg file is a map entry in the following format:
[IP_qualifier:] Windows_name [direction] [IP_qualifier:] UNIX_name
The direction field determines whether the entry is for mapping from Windows to UNIX, from UNIX to Windows, or both. For information about why Data ONTAP needs to map UNIX names to Windows names, see Accessing CIFS files from NFS clients.
You can embed comments in the file by beginning the comment lines with #. Comments at the end of an entry are also allowed if preceded by #. Blank lines are ignored.
When CIFS is started, if the /etc/usermap.cfg file is missing, a default file is created. It contains commented-out sample map entries that are useful for improving security.
The IP_qualifier field is an IP address that qualifies the user name by narrowing the match.
The IP qualifier can be any of the following:
Note
Data ONTAP uses the IP qualifier only for matching. If an IP qualifier is present on the destination side of a map entry, Data ONTAP does not consider the login request to come from that IP qualifier.
The Windows_name field consists of a Windows domain name, which is optional, and a Windows user name. For more information about the syntax, see How to specify a filer's Windows name.
On the source side of the map entry, the domain specifies the domain in which the user resides. On the destination side of the map entry, it specifies the domain used for the mapped UNIX entry. If the account name in the entry is a local user account, the Windows domain name is the filer name.
If you omit the domain name in the Windows_name field, it is assumed to be the domain in which the filer is installed. If the filer uses local user accounts for authentication, the domain name is the filer name.
You can use an asterisk (*) as a wildcard character in the following ways:
The trusted domain used for the mapping depends on where Data ONTAP finds the first matching Windows name. Data ONTAP searches only the trusted domains you specify with the cifs.search_domains option, in the order in which the trusted domains are specified. If you do not set this option, Data ONTAP searches all trusted domains in an unspecified order.
If the user name contains spaces or a pound sign (#), enclose the name in double quotation marks, for example, "bob smith" or "eng#lab"\"#joe".
Note
Only the user name should be inside the double quotation marks. For example, it is incorrect to specify "mktg\bob smith". The correct syntax is mktg\"bob smith".
You can use an asterisk (*) in the Windows name. For more information about how to use the asterisk, see Guidelines for wildcard character in user name.
If the user name is empty or blank (specified as "") on the destination side of the map entry, the matching UNIX name is denied access. Use entries with a blank user name to deny access to some or all UNIX users. If you use these entries in conjunction with IP_qualifier, you can exclude all UNIX users except for certain hosts or subnets.
The direction field indicates the direction of the mapping. It can be one of the values in the following table.
Mapping is bidirectional. The entry maps from Windows to UNIX and from UNIX to Windows. Omitting the direction field has the same meaning as specifying ==. |
|
The UNIX_name field is a UNIX name in the UNIX password database.
You can use an asterisk (*) in the UNIX name. For more information about how to use the asterisk, see Guidelines for wildcard character in user name.
If UNIX_name is empty or blank (specified as "") on the destination side of the map entry, the specified source name is prevented from logging in. The Windows user cannot log in to the filer even if the user can see the filer while browsing the network.
The asterisk is considered the wildcard character. It means any user. Remember these guidelines when including an asterisk in the Windows name or the UNIX name:
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00473
File: cifs10.htm
Last updated: 11/25/03 18:02:42