Install libpam-freerdp by entering the following commands in the terminal:
sudo apt update sudo apt install libpam-freerdp
PAM Module to auth against an RDP server using FreeRDP
Auth and session PAM module that uses FreeRDP to authenticate against an RDP server as the remote hosts and user. Local account required. Most useful with the pam-temp-account module.