fix authenticate_pam