[sork] problems with 'passwd' and expect Driver

Shane Y. Gibson shane at tuna.org
Wed Mar 12 15:48:51 PST 2003


Eric,

Thanks for the reply, comments below.


Eric Rostetter wrote:

> See the list archives for a recent discussion on how to debug the
> expect scripts.

I debugged this, and show that it's working 100% normally, when I 
manually execute expect and call the scripts/passwd_expect as an 
argument.  I can make the expect script change the password without any 
problems, using either the "command line" options (i.e. comment out 
stdin and uncomment the command line stuff in the passwd_expect file), 
or stdin.  In either case, it does _exactly_ what it's supposed to.

I can track that the expect process worked, on the remote system by 
doing a 'last' and seeing the actual SSH login from expect, to change 
the password.  But when running the web UI/passwd form - I don't see any 
access attempts on my system remotely.

> That shouldn't happen.  It seems to think you are not logged in for some
> reason.

Which is what leads me to believe something is borked in my environment. 
  I spent over an hour looking through the entire archives for the sork 
mailing list.  The only debugging mentions I found that seemed remotely 
likely were the debugging of the expect script itself, which isn't an 
issue.   The other was inserting a 'print_r (get_declared_classes());' 
line in the lib/Driver.php file.  I did this, and I get zero additional 
output during the passwd change process, via the web page form.

I configured passwd according to the INSTALL file (eg inserted the 
appropriate info into horde/config/registry.php - added the menu options 
to IMP - edited the passwd/config/*.php files).

I'm at a loss.  Since there are little to zero comments that make any 
sense to a non Horde application developer within the PHP files, I'm 
having a hard time following the exact flow of how things fire off.

...again, any pointers on what/where to change to try and debug this 
would be most welcome.  If there is more info or detail I can provide to 
help, I would be delighted to do so!  TIA!

v/r
Shane





More information about the sork mailing list