| 1 | '\" t
|
|---|
| 2 | .\" Title: pam_winbind
|
|---|
| 3 | .\" Author: [see the "AUTHOR" section]
|
|---|
| 4 | .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
|---|
| 5 | .\" Date: 01/14/2010
|
|---|
| 6 | .\" Manual: 8
|
|---|
| 7 | .\" Source: Samba 3.3
|
|---|
| 8 | .\" Language: English
|
|---|
| 9 | .\"
|
|---|
| 10 | .TH "PAM_WINBIND" "8" "01/14/2010" "Samba 3\&.3" "8"
|
|---|
| 11 | .\" -----------------------------------------------------------------
|
|---|
| 12 | .\" * set default formatting
|
|---|
| 13 | .\" -----------------------------------------------------------------
|
|---|
| 14 | .\" disable hyphenation
|
|---|
| 15 | .nh
|
|---|
| 16 | .\" disable justification (adjust text to left margin only)
|
|---|
| 17 | .ad l
|
|---|
| 18 | .\" -----------------------------------------------------------------
|
|---|
| 19 | .\" * MAIN CONTENT STARTS HERE *
|
|---|
| 20 | .\" -----------------------------------------------------------------
|
|---|
| 21 | .SH "NAME"
|
|---|
| 22 | pam_winbind \- PAM module for Winbind
|
|---|
| 23 | .SH "DESCRIPTION"
|
|---|
| 24 | .PP
|
|---|
| 25 | This tool is part of the
|
|---|
| 26 | \fBsamba\fR(7)
|
|---|
| 27 | suite\&.
|
|---|
| 28 | .PP
|
|---|
| 29 | pam_winbind is a PAM module that can authenticate users against the local domain by talking to the Winbind daemon\&.
|
|---|
| 30 | .SH "SYNOPSIS"
|
|---|
| 31 | .PP
|
|---|
| 32 | Edit the PAM system config /etc/pam\&.d/service and modify it as the following example shows:
|
|---|
| 33 | .sp
|
|---|
| 34 | .if n \{\
|
|---|
| 35 | .RS 4
|
|---|
| 36 | .\}
|
|---|
| 37 | .nf
|
|---|
| 38 | \&.\&.\&.
|
|---|
| 39 | auth required pam_env\&.so
|
|---|
| 40 | auth sufficient pam_unix2\&.so
|
|---|
| 41 | +++ auth required pam_winbind\&.so use_first_pass
|
|---|
| 42 | account requisite pam_unix2\&.so
|
|---|
| 43 | +++ account required pam_winbind\&.so use_first_pass
|
|---|
| 44 | +++ password sufficient pam_winbind\&.so
|
|---|
| 45 | password requisite pam_pwcheck\&.so cracklib
|
|---|
| 46 | password required pam_unix2\&.so use_authtok
|
|---|
| 47 | session required pam_unix2\&.so
|
|---|
| 48 | +++ session required pam_winbind\&.so
|
|---|
| 49 | \&.\&.\&.
|
|---|
| 50 |
|
|---|
| 51 | .fi
|
|---|
| 52 | .if n \{\
|
|---|
| 53 | .RE
|
|---|
| 54 | .\}
|
|---|
| 55 | .sp
|
|---|
| 56 | Make sure that pam_winbind is one of the first modules in the session part\&. It may retrieve kerberos tickets which are needed by other modules\&.
|
|---|
| 57 | .SH "OPTIONS"
|
|---|
| 58 | .PP
|
|---|
| 59 | pam_winbind supports several options which can either be set in the PAM configuration files or in the pam_winbind configuration file situated at
|
|---|
| 60 | /etc/security/pam_winbind\&.conf\&. Options from the PAM configuration file take precedence to those from the configuration file\&.
|
|---|
| 61 | .PP
|
|---|
| 62 | debug
|
|---|
| 63 | .RS 4
|
|---|
| 64 | Gives debugging output to syslog\&.
|
|---|
| 65 | .RE
|
|---|
| 66 | .PP
|
|---|
| 67 | debug_state
|
|---|
| 68 | .RS 4
|
|---|
| 69 | Gives detailed PAM state debugging output to syslog\&.
|
|---|
| 70 | .RE
|
|---|
| 71 | .PP
|
|---|
| 72 | require_membership_of=[SID or NAME]
|
|---|
| 73 | .RS 4
|
|---|
| 74 | If this option is set, pam_winbind will only succeed if the user is a member of the given SID or NAME\&. A SID can be either a group\-SID, an alias\-SID or even an user\-SID\&. It is also possible to give a NAME instead of the SID\&. That name must have the form:
|
|---|
| 75 | \fIMYDOMAIN\e\emygroup\fR
|
|---|
| 76 | or
|
|---|
| 77 | \fIMYDOMAIN\e\emyuser\fR\&. pam_winbind will, in that case, lookup the SID internally\&. Note that NAME may not contain any spaces\&. It is thus recommended to only use SIDs\&. You can verify the list of SIDs a user is a member of with
|
|---|
| 78 | wbinfo \-\-user\-sids=SID\&.
|
|---|
| 79 | .RE
|
|---|
| 80 | .PP
|
|---|
| 81 | use_first_pass
|
|---|
| 82 | .RS 4
|
|---|
| 83 | By default, pam_winbind tries to get the authentication token from a previous module\&. If no token is available it asks the user for the old password\&. With this option, pam_winbind aborts with an error if no authentication token from a previous module is available\&.
|
|---|
| 84 | .RE
|
|---|
| 85 | .PP
|
|---|
| 86 | try_first_pass
|
|---|
| 87 | .RS 4
|
|---|
| 88 | Same as the use_first_pass option (previous item), except that if the primary password is not valid, PAM will prompt for a password\&.
|
|---|
| 89 | .RE
|
|---|
| 90 | .PP
|
|---|
| 91 | use_authtok
|
|---|
| 92 | .RS 4
|
|---|
| 93 | Set the new password to the one provided by the previously stacked password module\&. If this option is not set pam_winbind will ask the user for the new password\&.
|
|---|
| 94 | .RE
|
|---|
| 95 | .PP
|
|---|
| 96 | krb5_auth
|
|---|
| 97 | .RS 4
|
|---|
| 98 | pam_winbind can authenticate using Kerberos when winbindd is talking to an Active Directory domain controller\&. Kerberos authentication must be enabled with this parameter\&. When Kerberos authentication can not succeed (e\&.g\&. due to clock skew), winbindd will fallback to samlogon authentication over MSRPC\&. When this parameter is used in conjunction with
|
|---|
| 99 | \fIwinbind refresh tickets\fR, winbind will keep your Ticket Granting Ticket (TGT) uptodate by refreshing it whenever necessary\&.
|
|---|
| 100 | .RE
|
|---|
| 101 | .PP
|
|---|
| 102 | krb5_ccache_type=[type]
|
|---|
| 103 | .RS 4
|
|---|
| 104 | When pam_winbind is configured to try kerberos authentication by enabling the
|
|---|
| 105 | \fIkrb5_auth\fR
|
|---|
| 106 | option, it can store the retrieved Ticket Granting Ticket (TGT) in a credential cache\&. The type of credential cache can be set with this option\&. Currently the only supported value is:
|
|---|
| 107 | \fIFILE\fR\&. In that case a credential cache in the form of /tmp/krb5cc_UID will be created, where UID is replaced with the numeric user id\&. Leave empty to just do kerberos authentication without having a ticket cache after the logon has succeeded\&.
|
|---|
| 108 | .RE
|
|---|
| 109 | .PP
|
|---|
| 110 | cached_login
|
|---|
| 111 | .RS 4
|
|---|
| 112 | Winbind allows to logon using cached credentials when
|
|---|
| 113 | \fIwinbind offline logon\fR
|
|---|
| 114 | is enabled\&. To use this feature from the PAM module this option must be set\&.
|
|---|
| 115 | .RE
|
|---|
| 116 | .PP
|
|---|
| 117 | silent
|
|---|
| 118 | .RS 4
|
|---|
| 119 | Do not emit any messages\&.
|
|---|
| 120 | .RE
|
|---|
| 121 | .PP
|
|---|
| 122 | mkhomedir
|
|---|
| 123 | .RS 4
|
|---|
| 124 | Create homedirectory for a user on\-the\-fly, option is valid in PAM session block\&.
|
|---|
| 125 | .RE
|
|---|
| 126 | .PP
|
|---|
| 127 | warn_pwd_expire
|
|---|
| 128 | .RS 4
|
|---|
| 129 | Defines number of days before pam_winbind starts to warn about passwords that are going to expire\&. Defaults to 14 days\&.
|
|---|
| 130 | .RE
|
|---|
| 131 | .SH "PAM DATA EXPORTS"
|
|---|
| 132 | .PP
|
|---|
| 133 | This section describes the data exported in the PAM stack which could be used in other PAM modules\&.
|
|---|
| 134 | .PP
|
|---|
| 135 | PAM_WINBIND_HOMEDIR
|
|---|
| 136 | .RS 4
|
|---|
| 137 | This is the Windows Home Directory set in the profile tab in the user settings on the Active Directory Server\&. This could be a local path or a directory on a share mapped to a drive\&.
|
|---|
| 138 | .RE
|
|---|
| 139 | .PP
|
|---|
| 140 | PAM_WINBIND_LOGONSCRIPT
|
|---|
| 141 | .RS 4
|
|---|
| 142 | The path to the logon script which should be executed if a user logs in\&. This is normally a relative path to the script stored on the server\&.
|
|---|
| 143 | .RE
|
|---|
| 144 | .PP
|
|---|
| 145 | PAM_WINBIND_LOGONSERVER
|
|---|
| 146 | .RS 4
|
|---|
| 147 | This exports the Active Directory server we are authenticating against\&. This can be used as a variable later\&.
|
|---|
| 148 | .RE
|
|---|
| 149 | .PP
|
|---|
| 150 | PAM_WINBIND_PROFILEPATH
|
|---|
| 151 | .RS 4
|
|---|
| 152 | This is the profile path set in the profile tab in the user settings\&. Noramlly the home directory is synced with this directory on a share\&.
|
|---|
| 153 | .RE
|
|---|
| 154 | .SH "SEE ALSO"
|
|---|
| 155 | .PP
|
|---|
| 156 | \fBwbinfo\fR(1),
|
|---|
| 157 | \fBwinbindd\fR(8),
|
|---|
| 158 | \fBsmb.conf\fR(5)
|
|---|
| 159 | .SH "VERSION"
|
|---|
| 160 | .PP
|
|---|
| 161 | This man page is correct for version 3 of Samba\&.
|
|---|
| 162 | .SH "AUTHOR"
|
|---|
| 163 | .PP
|
|---|
| 164 | The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
|
|---|
| 165 | .PP
|
|---|
| 166 | This manpage was written by Jelmer Vernooij and Guenther Deschner\&.
|
|---|