6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/26/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#4570] Streamlining of passwd expect driver
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..__ ..__. . [__][ __ |[__] | | |[_./\__|| |\__|
Comment
> Reworked the expect and send logic using exp_continue. See full > description below. > > Added procs that ensure consistent handling of sending and exiting. > > Changed default fingerprint_string to work with any prompt that asks > "Are you sure you want to continue connecting" > > Changed default verify_string to accomodate "Retype New Password" and > "Retype new password" > > Removed old commented out code > > Changed starting of remote session to be as generic as possible, > including removing special case handling of telnet. > > Added a common timeout handler so every expect command does not have > to accomodate timeout > > Added handling no output from program that indicates success. > > Ensured that success is returned even if timeout after passwd changed > > Added handling of kpasswd through the -kpasswd command line option > and minor additions to the verify_string > > > > Old logic for expecting and sending was: > > 0> If telnet check for user name prompt and send > > 1> enter password at prompt or ssh accept fingerprint message > > 2> start password changing prompt or send old password if passwd > already started > > 3> send old password if we just sent old password > > 4> send new password if being prompted > > 5> send new password again > > 6> check response > > > > New logic using exp_continue and expect_after > > 1> log in (accept finger print string, supply username, and/or supply > password) > > 2> start password changing program (if necessary) and send old > password. Wait for old password to be accepted. > > 3> send new password (no expect necessary) > > 4> send new password again and wait for password to be verified > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers