It's because of Expect, the version of Expect (i believe) is newer than
5.18.  Use version 5.18 and it will be consistent.

_
benchdelosangelesjr.


On Sun, 5 Apr 1998, L. M. Marchese wrote:

> I run RH4.2 with Apache and am trying to write a cgi program which
> changes a user's password based on his/her input in from a web form.  Is
> there a ready program out there I can use?
> 
> I have tried the following EXPECT script from O'Reilly's "UNIX Power
> Tools" but it doesn't work all the time.  I suspect it has to do with
> delays and so on.  I prefer to do it in
> Perl since the cgi program will have to send a confirmation back to the
> user.
> 
> #!/usr/bin/expect
> spawn passwd [lindex $argv 0]
> set password [lindex $argv 1]
> expect "password:"
> send "$password\r"
> expect "password:"
> send "$password\r"
> expect eof
> 
> 
> I appreciate any feedback.
> 
> 
> 
> Bench wrote:
> 
> > Try using Expect.  I use version 5.18 because of some problems
> > I experience with the new versions of it (5.24 and the version
> > included
> > with Redhat 5) and use Tcl 7.4 for this old version of Expect.
> >
> > Look at the example file 'autopasswd' and start from there.
> > If you're using PAM authentication, you might want to comment out
> > this lines:
> >
> > password   required    /lib/security/pam_cracklib.so retry=3
> > password   required    /lib/security/pam_pwdb.so use_authtok nullok
> >
> > as this checks if your password is good.
> >


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to