Dcoument the PAM data exports in the pam_winbind manpage.
[Samba.git] / docs-xml / manpages-3 / pam_winbind.7.xml
blobd41b618edca6b0d270731f7e367baafeeb8ef219
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="pam_winbind.7">
5 <refmeta>
6         <refentrytitle>pam_winbind</refentrytitle>
7         <manvolnum>7</manvolnum>
8         <refmiscinfo class="source">Samba</refmiscinfo>
9         <refmiscinfo class="manual">7</refmiscinfo>
10         <refmiscinfo class="version">3.2</refmiscinfo>
11 </refmeta>
14 <refnamediv>
15         <refname>pam_winbind</refname>
16         <refpurpose>PAM module for Winbind</refpurpose>
17 </refnamediv>
19 <refsect1>
20         <title>DESCRIPTION</title>
22         <para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
23         <manvolnum>7</manvolnum></citerefentry> suite.</para>
25         <para>
26         pam_winbind is a PAM module that can authenticate users against the local domain by talking to the Winbind daemon.
27         </para>
29 </refsect1>
31 <refsect1>
32         <title>SYNOPSIS</title>
34         <para>
35                 Edit the PAM system config /etc/pam.d/service and modify it as the following example shows:
36                 <programlisting>
37                             ...
38                             auth      required        pam_env.so
39                             auth      sufficient      pam_unix2.so
40                         +++ auth      required        pam_winbind.so  use_first_pass
41                             account   requisite       pam_unix2.so
42                         +++ account   required        pam_winbind.so  use_first_pass
43                         +++ password  sufficient      pam_winbind.so
44                             password  requisite       pam_pwcheck.so  cracklib
45                             password  required        pam_unix2.so    use_authtok
46                             session   required        pam_unix2.so
47                         +++ session   required        pam_winbind.so
48                             ...
49                 </programlisting>
51                 Make sure that pam_winbind is one of the first modules in the session part. It may retrieve
52                 kerberos tickets which are needed by other modules.
53         </para>
54 </refsect1>
56 <refsect1>
57         <title>OPTIONS</title>
58         <para>
59         
60                 pam_winbind supports several options which can either be set in
61                 the PAM configuration files or in the pam_winbind configuration
62                 file situated at
63                 <filename>/etc/security/pam_winbind.conf</filename>. Options
64                 from the PAM configuration file take precedence to those from
65                 the configuration file.
67                 <variablelist>
69                 <varlistentry>
70                 <term>debug</term>
71                 <listitem><para>Gives debugging output to syslog.</para></listitem>
72                 </varlistentry>
74                 <varlistentry>
75                 <term>debug_state</term>
76                 <listitem><para>Gives detailed PAM state debugging output to syslog.</para></listitem>
77                 </varlistentry>
79                 <varlistentry>
80                 <term>require_membership_of=[SID or NAME]</term>
81                 <listitem><para>
82                 If this option is set, pam_winbind will only succeed if the user is a member of the given SID or NAME. A SID
83                 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
84                 SID. That name must have the form: <parameter>MYDOMAIN\\mygroup</parameter> or
85                 <parameter>MYDOMAIN\\myuser</parameter>.  pam_winbind will, in that case, lookup the SID internally. Note that
86                 NAME may not contain any spaces. It is thus recommended to only use SIDs. You can verify the list of SIDs a
87                 user is a member of with <command>wbinfo --user-sids=SID</command>.
88                 </para></listitem>
89                 </varlistentry>
91                 <varlistentry>
92                 <term>use_first_pass</term>
93                 <listitem><para>
94                 By default, pam_winbind tries to get the authentication token from a previous module. If no token is available
95                 it asks the user for the old password. With this option, pam_winbind aborts with an error if no authentication
96                 token from a previous module is available.
97                 </para></listitem>
98                 </varlistentry>
100                 <varlistentry>
101                 <term>try_first_pass</term>
102                 <listitem><para>
103                                 Same as the use_first_pass option (previous item), except that if the primary password is not
104                                 valid, PAM will prompt for a password.
105                 </para></listitem>
106                 </varlistentry>
108                 <varlistentry>
109                 <term>use_authtok</term>
110                 <listitem><para>
111                 Set the new password to the one provided by the previously stacked password module. If this option is not set 
112                 pam_winbind will ask the user for the new password.
113                 </para></listitem>
114                 </varlistentry>
116                 <varlistentry>
117                 <term>krb5_auth</term>
118                 <listitem><para>
120                 pam_winbind can authenticate using Kerberos when winbindd is
121                 talking to an Active Directory domain controller. Kerberos
122                 authentication must be enabled with this parameter. When
123                 Kerberos authentication can not succeed (e.g. due to clock
124                 skew), winbindd will fallback to samlogon authentication over
125                 MSRPC. When this parameter is used in conjunction with
126                 <parameter>winbind refresh tickets</parameter>, winbind will
127                 keep your Ticket Granting Ticket (TGT) uptodate by refreshing
128                 it whenever necessary.
130                 </para></listitem>
131                 </varlistentry>
133                 <varlistentry>
134                 <term>krb5_ccache_type=[type]</term>
135                 <listitem><para>
136                 
137                 When pam_winbind is configured to try kerberos authentication
138                 by enabling the <parameter>krb5_auth</parameter> option, it can
139                 store the retrieved Ticket Granting Ticket (TGT) in a
140                 credential cache. The type of credential cache can be set with
141                 this option. Currently the only supported value is:
142                 <parameter>FILE</parameter>. In that case a credential cache in
143                 the form of /tmp/krb5cc_UID will be created, where UID is
144                 replaced with the numeric user id.  Leave empty to just do
145                 kerberos authentication without having a ticket cache after the
146                 logon has succeeded.
148                 </para></listitem>
149                 </varlistentry>
150         
151                 <varlistentry>
152                 <term>cached_login</term>
153                 <listitem><para>
154                 Winbind allows to logon using cached credentials when <parameter>winbind offline logon</parameter> is enabled. To use this feature from the PAM module this option must be set.
155                 </para></listitem>
156                 </varlistentry>
158                 <varlistentry>
159                 <term>silent</term>
160                 <listitem><para>
161                 Do not emit any messages.
162                 </para></listitem>
163                 </varlistentry>
165                 </variablelist>
168         </para>
170 </refsect1>
172 <refsect1>
173         <title>PAM DATA EXPORTS</title>
175         <para>This section describes the data exported in the PAM stack which could be used in other PAM modules.</para>
177         <varlistentry>
178                 <term>PAM_WINBIND_HOMEDIR</term>
179                 <listitem>
180                         <para>
181                                 This is the Windows Home Directory set in the profile tab in the user settings
182                                 on the Active Directory Server. This could be a local path or a directory on a
183                                 share mapped to a drive.
184                         </para>
185                 </listitem>
186         </varlistentry>
187         <varlistentry>
188                 <term>PAM_WINBIND_LOGONSCRIPT</term>
189                 <listitem>
190                         <para>
191                                 The path to the logon script which should be executed if a user logs in. This is
192                                 normally a relative path to the script stored on the server.
193                         </para>
194                 </listitem>
195         </varlistentry>
196         <varlistentry>
197                 <term>PAM_WINBIND_LOGONSERVER</term>
198                 <listitem>
199                         <para>
200                                 This exports the Active Directory server we are authenticating against. This can be
201                                 used as a variable later.
202                         </para>
203                 </listitem>
204         </varlistentry>
205         <varlistentry>
206                 <term>PAM_WINBIND_PROFILEPATH</term>
207                 <listitem>
208                         <para>
209                                 This is the profile path set in the profile tab in the user settings. Noramlly
210                                 the home directory is synced with this directory on a share.
211                         </para>
212                 </listitem>
213         </varlistentry>
214 </refsect1>
216 <refsect1>
217         <title>SEE ALSO</title>
218         <para><citerefentry>
219         <refentrytitle>wbinfo</refentrytitle>
220         <manvolnum>1</manvolnum></citerefentry>, <citerefentry>
221         <refentrytitle>winbindd</refentrytitle>
222         <manvolnum>8</manvolnum></citerefentry>, <citerefentry>
223         <refentrytitle>smb.conf</refentrytitle>
224         <manvolnum>5</manvolnum></citerefentry></para>
225 </refsect1>
227 <refsect1>
228         <title>VERSION</title>
230         <para>This man page is correct for version 3 of Samba.</para>
231 </refsect1>
233 <refsect1>
234         <title>AUTHOR</title>
235         
236         <para>
237         The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by
238         the Samba Team as an Open Source project similar to the way the Linux kernel is developed.
239         </para>
240         
241         <para>This manpage was written by Jelmer Vernooij and Guenther Deschner.</para>
243 </refsect1>
245 </refentry>