]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/debian-org/templates/pam.common-session.erb
b79cffaa1f73ba3994ef4e2995af1be70966b554
[dsa-puppet.git] / modules / debian-org / templates / pam.common-session.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 <% unless lsbdistcodename == 'lenny' %>
7 #
8 # /etc/pam.d/common-session - session-related modules common to all services
9 #
10 # This file is included from other service-specific PAM config files,
11 # and should contain a list of modules that define tasks to be performed
12 # at the start and end of sessions of *any* kind (both interactive and
13 # non-interactive).
14 #
15 # As of pam 1.0.1-6, this file is managed by pam-auth-update by default.
16 # To take advantage of this, it is recommended that you configure any
17 # local modules either before or after the default block, and use
18 # pam-auth-update to manage selection of other modules.  See
19 # pam-auth-update(8) for details.
20
21 # here are the per-package modules (the "Primary" block)
22 session [default=1]                     pam_permit.so
23 # here's the fallback if no module succeeds
24 session requisite                       pam_deny.so
25 # prime the stack with a positive return value if there isn't one already;
26 # this avoids us returning an error just because nothing sets a success code
27 # since the modules above will each just jump around
28 session required                        pam_permit.so
29 # and here are more per-package modules (the "Additional" block)
30 session required        pam_unix.so 
31 # end of pam-auth-update config
32 session [success=1 default=ignore]      pam_succeed_if.so quiet_fail quiet_success home = /nonexistent
33 session optional                        pam_mkhomedir.so skel=/etc/skel umask=0022
34 session optional                        pam_permit.so
35 <% else %>
36 #
37 # /etc/pam.d/common-session - session-related modules common to all services
38 #
39 # This file is included from other service-specific PAM config files,
40 # and should contain a list of modules that define tasks to be performed
41 # at the start and end of sessions of *any* kind (both interactive and
42 # non-interactive).  The default is pam_unix.
43 #
44 session required        pam_unix.so
45 session optional        pam_mkhomedir.so skel=/etc/skel umask=0022
46 <% end %>