Implement PAM authentication