After sucessfully configuring Kerberos, this is what I've found in /etc/pam.d/common-auth
file:
auth [success=2 default=ignore] pam_unix.so nullok_secure
auth [success=1 default=ignore] pam_winbind.so krb5_auth krb5_ccache_type=FILE cached_login try_first_pass
auth requisite pam_deny.so
auth required pam_permit.so
Does the success=2
control value mean that if the pam_unix.so
fails, the authentication skips to the auth requisite pam_deny.so
line or to the last line?
From my understanding,
success=$num
will specify how many rules to skip when successful. So if eitherpam_unix.so
orpam_winbind.so
succeed, PAM will skip to the final line. Of course, the final line permits access in all cases.pam.d(5) - Linux man page
What the common-auth says: