An example implementation of the Linux PAM module and using PAM authentication in your projects