From: Victor Reyes Date: 2006-11-08T04:09:58+09:00 Subject: Re: Linux authentification check? ------=_Part_14682_18679277.1162926595477 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Would LDAP do it? Just curious! On 11/7/06, Wilson Bilkovich wrote: > > On 11/7/06, Roman Hausner 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. > > ------=_Part_14682_18679277.1162926595477--