On 11/7/06, Roman Hausner <roman.hausner / gmail.com> wrote: > Jon Lim wrote: > > ruby-pam might be what you're looking for. > It seems this needs the system PAM libraries to be installed. > I am not really intending to switch the authentification methods of > the linux box or anything, I just want ruby to use the existing > authentification method to check for a valid username/password. > > Maybe I am missing something, but I was expecting something like > boolean = validate(username,password) > and be done with it :) > Are you saying that PAM isn't installed on your Linux box? If it is, you should use it. /etc/passwd is definitely not the last word in login authentication. Be careful about your assumptions, or else the guy with the smartcard won't be able to use your Ruby program.