PAM authentication module for RestAuth