Summary | passwd_expect needs to expect another pattern |
Queue | Passwd |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | ctnpublic-horde (at) yahoo (dot) com |
Created | 10/26/2004 (7661 days ago) |
Due | |
Updated | 11/02/2004 (7654 days ago) |
Assigned | 11/02/2004 (7654 days ago) |
Resolved | 11/02/2004 (7654 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
State ⇒ Assigned
matter what type of regex it is if that is what is properly expected
by expect, the target at hand?
In any case, afaik, expect uses Tcl regex, which is a superset of POSIX.
Thanks.
POSIX regexps or some homebrew placeholders.
answer is simplistic.
Yes, that's the regex needed to have expect properly match both
responses "Retype new password" (my system's) and "Retype new UNIX
password" (current passwd HEAD's) as the prompt to confirm the new
password. The other patterns are presumably for other *nix flavors.
State ⇒ Feedback
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ passwd_expect needs to expect another pattern
Queue ⇒ Passwd
cvs diff -u -r HEAD passwd/scripts/passwd_expect
Index: passwd/scripts/passwd_expect
===================================================================
RCS file: /repository/passwd/scripts/passwd_expect,v
retrieving revision 1.3
diff -u -r1.3 passwd_expect
--- passwd/scripts/passwd_expect 4 Mar 2003 16:22:42 -0000 1.3
+++ passwd/scripts/passwd_expect 26 Oct 2004 07:02:02 -0000
@@ -41,7 +41,7 @@
set newpassword_string "(N|n)ew.* (P|p)assword.*"
#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 verify_string "((R|r)e-*enter.*(P|p)assword|Retype (new|new UNIX)
password|(V|v)erification|(V|v)erify|(A|a)gain).*"
set success_string "((P|p)assword.* changed|successfully)"
set login_string "(((L|l)ogin|(U|u)sername).*)"
set timeout 20