A while ago for work I wrote a plugin for Zend Framework. It was an adapter for Zend_Auth that authenticated against PAM for authentication of local users through a web interface. So I have decided to release it in the hope that there will be other people out there who find it useful.
Please visit the Zend_Auth Pam Adapter page in the labs section for more information.