blob: 6edba8d3f6e382d8b9785e6446ad15917820ccd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
auth required pam_env.so {{ debug|default('', true) }}
{% if pam_ssh %}
auth sufficient pam_ssh.so
{% endif %}
{% if krb5 %}
auth [success=4 default=ignore] pam_krb5.so {{ krb5_params }}
{% endif %}
auth requisite pam_faillock.so preauth
auth [success=1 default=ignore] pam_unix.so {{ nullok|default('', true) }} {{ debug|default('', true) }} try_first_pass
auth [default=die] pam_faillock.so authfail
auth optional pam_permit.so
{% if krb5 %}
account [success=2 default=ignore] pam_krb5.so {{ krb5_params }}
{% endif %}
account required pam_unix.so {{ debug|default('', true) }}
account required pam_faillock.so
account optional pam_permit.so
{% if passwdqc %}
password required pam_passwdqc.so config=/etc/security/passwdqc.conf
{% endif %}
{% if pwquality %}
password required pam_pwquality.so
{% endif %}
{% if pwhistory %}
password required pam_pwhistory.so use_authtok remember=5 retry=3
{% endif %}
{% if krb5 %}
password [success=1 default=ignore] pam_krb5.so {{ krb5_params }}
{% endif %}
{% if passwdqc or pwquality %}
password required pam_unix.so try_first_pass {{ unix_authtok|default('', true) }} {{ nullok|default('', true) }} {{ unix_extended_encryption|default('', true) }} {{ debug|default('', true) }}
{% else %}
password required pam_unix.so try_first_pass {{ nullok|default('', true) }} {{ unix_extended_encryption|default('', true) }} {{ debug|default('', true) }}
{% endif %}
password optional pam_permit.so
{% if pam_ssh %}
session optional pam_ssh.so
{% endif %}
{% if libcap %}
-session optional pam_cap.so
{% endif %}
{% include "templates/system-session.tpl" %}
|