From: Aredridel Date: 2003-07-05T07:00:30+09:00 Subject: Re: Using ruby-pam in a CGI On Fri, 2003-07-04 at 14:40, Samuel Tesla wrote: > I suppose some clarification is in order. > > All I'm really trying to figure out is how to write the conversation > function. Since it's going to be a CGI, I can't write an interactive > conversation function (which is kind of what PAM assumes). You can if you use a persistent authenticator process, that handles several stages of the request, or do what everyone else does for non-interactive apps: assume that the first prompt is username, the second is password, and if there's more, carp and die. > See, before, I was running my perl script as me instead of root. It > would let me authenticate fine but it wouldn't let me change my > password. I'm going to write a ruby script and see if it works when I > run it as root. Good luck! > > In any event, I'll post my results. > > Thanks, > Samuel >