[horde] passwd expect-script and SuSE-Linux

W. Tasin tasin at fhm.edu
Fri Feb 7 12:23:16 PST 2003


Hi all,

the expect script doesn't work for my linux box, because the 
passwd-command returns on successful operation:
Password changed

But the regexp inside passwd_expect expects at least two blanks between 
"(P|p)assword" and "changed".

Here's the patch:
=====
---passwd_expect Thu Nov 14 05:54:33 2002
+++ passwd_expect       Fri Feb  7 21:07:30 2003
@@ -42,7 +42,7 @@
 #set badpassword_string "(passwd|BAD PASSWORD).*^"
 set badpassword_string "(passwd|Bad:).*\r"
 set verify_string "((R|r)e-*enter.*(P|p)assword|Retype new UNIX 
password|(V|v)erification|(V|v)erify|(A|a)gain).*"
-set success_string "((P|p)assword .* changed|successfully)"
+set success_string "((P|p)assword.* changed|successfully)"
 set login_string "(((L|l)ogin|(U|u)sername).*)"
 set timeout 20
 set log "/tmp/passwd.out"
=====

Ciao

Walter




More information about the horde mailing list