6.0.0-beta1
10/17/25

[#725] passwd_expect needs to expect another pattern
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

History
11/02/2004 09:35:53 PM Jan Schneider Comment #6
State ⇒ Resolved
Reply to this comment
I asked because the regexp can be made simpler then. Try what I committed.
11/02/2004 09:33:41 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Assigned
 
10/26/2004 01:13:49 PM ctnpublic-horde (at) yahoo (dot) com Comment #5 Reply to this comment
I still don't get the implication of the question---what does it 
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.
10/26/2004 11:21:58 AM Jan Schneider Comment #4 Reply to this comment
No, my question was if these are really extended regexps opposed to 
POSIX regexps or some homebrew placeholders.
10/26/2004 10:17:25 AM ctnpublic-horde (at) yahoo (dot) com Comment #3 Reply to this comment
I'm not sure from what angle you're asking, so forgive me if the 
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.
10/26/2004 08:32:12 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
I don't know anything about expect, are these normal regular expressions?
10/26/2004 07:03:51 AM ctnpublic-horde (at) yahoo (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ passwd_expect needs to expect another pattern
Queue ⇒ Passwd
Reply to this comment
The "Retype new UNIX password" prompt can also be "Retype new password"



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


Saved Queries