Skip to content

Commit ec147f9

Browse files
committed
Rework pam_krb5 auth
If pam_krb5 succeeds, set the action to ok and use a dummy pam_permit to skip over the other auth modules. This should fix breakage triggered by removing pam_shells by default. Bug: https://bugs.gentoo.org/939892 Bug: https://bugs.gentoo.org/956600 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
1 parent 9ca1508 commit ec147f9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

templates/system-auth.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ auth sufficient pam_ssh.so
44
{% endif %}
55

66
{% if krb5 %}
7-
auth [success={{ 4 if homed else 3 }} default=ignore] pam_krb5.so {{ debug }} ignore_root try_first_pass
7+
auth [success=ok default=1] pam_krb5.so {{ debug }} ignore_root try_first_pass
8+
auth [default={{ 3 + homed + (sssd * 3) }}] pam_permit.so
89
{% endif %}
910

1011
{% if sssd %}

0 commit comments

Comments
 (0)