OmniAuth PAM
Allows you to authenticate against PAM using OmniAuth.
Usage
use OmniAuth:Strategies::PAM
There are no configuration options. It's been tested under Debian 6.0 (Squeeze) and Ruby 1.9.3, but there's no reason why it won't work anywhere which doesn't have PAM correctly configured. Note: The above is assumed for Sinatra, check the OmniAuth docs for Rails, et. al. usage.
Then navigate to '/auth/pam'.
On Debian/Ubuntu you will need the libpam0g-dev
package to compile the rpam
gem. YMMV with others.
This strategy only supports Ruby 1.9. Read here about 1.8 support.
Credits
Originally hacked together by Nick Charlton, with modifications by Jaakko Kantojärvi for GitLab support. Licensed under the MIT license.