Install libpam-krb5 by entering the following commands in the terminal:
sudo apt update sudo apt install libpam-krb5
PAM module for MIT Kerberos
A Kerberos PAM module build against the MIT Kerberos libraries. It supports authenticating against a Kerberos KDC, obtaining tickets and populating an initial ticket cache, authorizing users via a ~/.k5login file, and changing Kerberos passwords.