Install libpam-heimdal by entering the following commands in the terminal:
sudo apt update sudo apt install libpam-heimdal
PAM module for Heimdal Kerberos
A Kerberos PAM module build against the Heimdal 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.