[prev in list] [next in list] [prev in thread] [next in thread]
List: imp
Subject: [horde] passwd expect-script and SuSE-Linux
From: "W. Tasin" <tasin () fhm ! edu>
Date: 2003-02-07 20:23:16
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic