2 .\" Copyright (c) 2008, 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 PAM_SMBFS_LOGIN 5 "Sep 25, 2008"
8 pam_smbfs_login \- PAM user credential authentication module for SMB/CIFS
19 The \fBpam_smbfs_login\fR module implements \fBpam_sm_setcred\fR(3PAM) to
20 provide functions that act equivalently to the \fBsmbutil\fR(1) login command.
23 This optional functionality is meant to be used only in environments that do
24 not run Active Directory or Kerberos, but which synchronize passwords between
25 Solaris clients and their CIFS/SMB servers.
28 This module permits the login password to be stored as if the \fBsmbutil\fR(1)
29 login command was used to store a password for PAM_USER in the user or system
30 default domain. The choice of default domain is the first of the following:
33 -Domain entry specified in the default section of the \fB$HOME/.nsmbrc\fR
38 -Domain entry specified in the default section shown by the sharectl get smbfs
47 Because \fBpam_smbfs_login\fR runs as root during the login process, a
48 \fB$HOME/.nsmbrc\fR file accessed through NFS may only be readable if the file
49 permits reads by others. This conflicts with the requirement that passwords
50 stored in \fB$HOME/.nsmbrc\fR are ignored when permissions are open.
53 To use this functionality, add the following line to the \fB/etc/pam.conf\fR
58 login auth optional pam_smbfs_login.so.1
64 Authentication service modules must implement both
65 \fBpam_sm_authenticate\fR(3PAM) and \fBpam_sm_setcred\fR(3PAM). In this module,
66 \fBpam_sm_authenticate\fR(3PAM) always returns \fBPAM_IGNORE\fR.
69 The \fBpam_sm_setcred\fR(3PAM) function accepts the following flags:
73 \fB\fBPAM_REFRESH_CRED\fR\fR
83 \fB\fBPAM_SILENT\fR\fR
93 \fB\fBPAM_ESTABLISH_CRED\fR\fR
97 \fB\fBPAM_REINITIALIZE_CRED\fR\fR
101 Stores the authentication token for PAM_USER in the same manner as the
102 \fBsmbutil\fR(1) login command.
108 \fB\fBPAM_DELETE_CRED\fR\fR
112 Deletes the stored password for PAM_USER in the same manner as the
113 \fBsmbutil\fR(1) logout command.
118 The following options can be passed to the \fBpam_smbfs_login\fR module:
126 Produces \fBsyslog\fR(3C) debugging information at the LOG_AUTH or LOG_DEBUG
137 Suppresses warning messages.
144 \fB\fB$HOME/.nsmbrc\fR\fR
147 Find default domain, if present.
153 Upon successful completion of \fBpam_sm_setcred\fR(3PAM), \fBPAM_SUCCESS\fR is
154 returned. The following error codes are returned upon error:
158 \fB\fBPAM_USER_UNKNOWN\fR\fR
168 \fB\fBPAM_AUTHTOK_ERR\fR\fR
178 \fB\fBPAM_AUTH_ERR\fR\fR
188 \fB\fBPAM_SYSTEM_ERR\fR\fR
198 See \fBattributes\fR(5) for descriptions of the following attribute:
206 ATTRIBUTE TYPE ATTRIBUTE VALUE
208 Interface Stability Committed
210 MT Level MT-Safe with exceptions
216 \fBsmbutil\fR(1), \fBsyslog\fR(3C), \fBlibpam\fR(3LIB), \fBpam\fR(3PAM),
217 \fBpam_setcred\fR(3PAM), \fBpam_sm\fR(3PAM), \fBpam_sm_authenticate\fR(3PAM),
218 \fBpam_sm_chauthtok\fR(3PAM), \fBpam_sm_setcred\fR(3PAM), \fBpam.conf\fR(4),
219 \fBattributes\fR(5), \fBsmbfs\fR(7FS)
223 The interfaces in \fBlibpam\fR(3LIB) are MT-Safe only if each thread within
224 the multi-threaded application uses its own PAM handle.