blob: 53557dc1b8e1370174e922d26ac646eddb331c05 (
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
55
56
|
auth required pam_env.so {{ debug|default('', true) }}
{% if pam_ssh %}
auth sufficient pam_ssh.so
{% endif %}
{% if homed %}
-auth sufficient pam_systemd_home.so
{% endif %}
{% if krb5 %}
auth [success=3 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
{% if caps %}
-auth optional pam_cap.so
{% endif %}
{% if homed %}
-account sufficient pam_systemd_home.so
{% endif %}
{% 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
{% 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 %}
{% if pam_ssh %}
session optional pam_ssh.so
{% endif %}
{% include "templates/system-session.tpl" %}
|