2 .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SMBAUTOHOME 4 "Feb 25, 2017"
8 smbautohome \- CIFS autohome configuration
17 The Solaris CIFS service can automatically share home directories when a CIFS
18 client connects. The autohome map file, \fB/etc/smbautohome\fR, uses the search
19 options and rules to determine whether to share a home directory when a CIFS
20 client connects to the server.
23 For example, the following entries specify the autohome rules for a particular
28 +nsswitch dn=ad,dn=sun,dn=com,ou=users
29 jane /home/?/& dn=ad,dn=sun,dn=com,ou=users
36 The \fBnsswitch\fR autohome entry uses the naming service to match users to
37 home directories. The second autohome entry specifies that the home directory
38 for user \fBjane\fR is \fB/home/j/jane\fR.
39 .SS "autohome Map Entry Format"
41 A map entry, which is also referred to as a mapping, uses the following format:
45 \fIkey\fR \fIlocation\fR [ \fIoptions\fR ]
52 \fIkey\fR is a user name, \fIlocation\fR is the fully qualified path for the
53 user's home directory, and \fIoptions\fR specifies the share options, for
54 example, an AD container or description. See \fBsharemgr\fR(1M) for information
58 If you intend to publish the share in Active Directory (AD), you \fBmust\fR
59 specify an AD container name, which is specified as a comma-separated list of
60 attribute name-value pairs. The attributes use the LDAP distinguished name (DN)
61 or relative distinguished name (RDN) format.
64 The DN or RDN must be specified in LDAP format by using the following attribute
70 \fBcn=\fR represents the common name
76 \fBou=\fR represents the organizational unit
82 \fBdc=\fR represents the domain component
86 The attribute type that is used to describe an object's RDN is called a
87 \fBnaming attribute\fR. AD uses the naming attributes as follows:
92 \fBcn\fR for the \fBuser\fR object class
98 \fBou\fR for the \fBOU\fR (organizational unit) object class
104 \fBdc\fR for the \fBdomainDns\fR object class
106 .SS "autohome Map Key Substitution"
108 The autohome feature supports the following wildcard substitutions for the
109 value of the key field:
114 The ampersand character (\fB&\fR) is expanded to the value of the key field for
115 the entry in which it occurs. In the following example, \fB&\fR expands to
129 The question mark character (\fB?\fR) is expanded to the value of the first
130 character in the key field for the entry in which it occurs. In the following
131 example, \fB?\fR expands to \fBj\fR:
142 When supplied in the key field, the asterisk character (\fB*\fR) is recognized
143 as the "catch-all" entry. Such an entry matches any key not previously matched.
146 For example, the following entry would map any user to a home directory in
147 \fB/home\fR in which the home directory name was the same as the user name:
157 The wildcard rule is \fBonly\fR applied if an appropriate rule is not matched
158 by another map entry.
161 The \fBnsswitch\fR map is used to request that the home directory be obtained
162 from a password database, such as the local, NIS, or LDAP databases. If
163 an AD path is appended, it is used to publish shares.
173 Like the "catch-all" entry, the \fBnsswitch\fR map is \fBonly\fR searched if an
174 appropriate rule is not matched by another map entry.
177 The wildcard and \fBnsswitch\fR rules are mutually exclusive. Do not include an
178 \fBnsswitch\fR rule if a wildcard rule has already been defined.
181 \fB/etc/smbautohome\fR
184 See the \fBattributes\fR(5) man page for descriptions of the following
193 ATTRIBUTE TYPE ATTRIBUTE VALUE
195 Interface Stability Uncommitted
200 \fBsharectl\fR(1M), \fBsharemgr\fR(1M), \fBsmbadm\fR(1M), \fBsmbd\fR(1M),
201 \fBsmbstat\fR(1M), \fBsmb\fR(4), \fBattributes\fR(5)