Ruby on rails user authentication using linux passwd file?
Is there an authentication plugin for rails which uses the host system's /etc/passwd
file to provide user/password inf开发者_高级运维ormation? The goal is to provide user login to a rails app for the same users who already have local login accounts to the linux machine hosting the rails app.
Cheers.
If your system uses PAM (h ttp://en.wikipedia.org/wiki/Pluggable_Authentication_Modules), most linux distributions do, you might want to look at Ruby/PAM.
Or you could try and use the authlogic gem + authogic_pam http://github.com/nbudin/authlogic_pam. I think the
精彩评论