From imp Fri Feb 07 20:23:16 2003 From: "W. Tasin" Date: Fri, 07 Feb 2003 20:23:16 +0000 To: imp Subject: [horde] passwd expect-script and SuSE-Linux X-MARC-Message: https://marc.info/?l=imp&m=104464944801568 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 -- Horde mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: horde-unsubscribe@lists.horde.org