Pam_gmail is a project mainly written in C, it's free.
pam module that authenticates against gmail or your google app domain
404: Not Found