B.Â Sample PAM Module

The following is a minimal implementation of
pam_unix(8), offering only authentication services. It
should build and run with most PAM implementations, but takes
advantage of OpenPAM extensions if available: note the use of
pam_get_authtok(3), which enormously simplifies prompting
the user for a password.