[sork] Re: expect and passwd

lody at great2cu.net lody at great2cu.net
Thu Feb 20 11:14:08 PST 2003


Thanks, this will help a lot. I will have some time this evening to debug.

The reason I don't use the smbpasswd backend is that it only changes the samba 
password and not the system password required for mail. 

(or is there a combination possible?)

Thanks again for your quick responses,

Lody

>   
> I myself had no experience in running expect, but after some browsing through
> 
> documentation and man pages I came up with the following patch that helped me
> 
> debug the expect script. 
> 
> Expect creates a log file in your upload_tmp_dir (I think this is in your 
> php.ini) called passwd.log. If you add the -d flag to the expect command it
> 
> will show all the prompts that expect receives from yout system and the rules
> 
> that it tries to match. This should tell you where and why it fails. 
> 
> Note that the passwd.log file will contain plaintext copies of the password
> so 
> you should be very carefull not to test this with sensitive users and/or 
> passwords and to remove the debug info in a production environment. 
> 
> I hope this helps. 
> 
> Eric, I assume that a lot of people who want to use the expect backend will
> 
> have similar problems. How would you feel about including something along the
> 
> lines of the above in the code where the log file is returned in the browser
> or 
> something when you are in debuggin mode? 
> 
> Regards, 
> Jeroen 
> 
> 
> 
> 
> __________________________________________________________
> 
> 
> http://www.wanadoo.nl/




-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


More information about the sork mailing list