pam_krb5 leaks into every PAM stack on mail and nb #273
Labels
No labels
bug
enhancement
in-progress
needs-info
needs-triage
p0
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/nixos#273
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
security.pam.krb5.enabledefaults tosecurity.krb5.enable. #271 spotted this onweb-armand set itfalsethere, buthosts/mail/modules/kerberos.nix:24(#267) andhosts/nb/modules/ldap-login.nix:84(#269) both enable the Kerberos client config without opting out, so pam_krb5 is now in every PAM stack on both hosts.nb: an off-VPN login stalls while pam_krb5 tries to reachmail.cloonar.com:88before falling through topam_unix. It is also redundant — SSSD'sauth_provider = krb5already performs the Kerberos auth and places the ticket in KCM, whereas pam_krb5 would write a parallel FILE ccache.mail: pam_krb5 sits in every PAM stack on the host holding the KDC and the directory, creating an auth path where a local account whose name matches a principal could authenticate with its Kerberos password.Fix is
security.pam.krb5.enable = false;in both modules.