Bug 56860 - Crash when password too simple
Summary: Crash when password too simple
Status: RESOLVED FIXED
Alias: None
Product: kdepasswd
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-05 02:29 UTC by David Smith
Modified: 2003-06-22 17:00 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
proposed patch (1.23 KB, patch)
2003-04-22 19:26 UTC, Waldo Bastian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Smith 2003-04-05 02:29:07 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Debian stable Packages

KDEpasswd crashes with the password "qwert6" or any other passwords that cause a "password too simple" from passwd.

Running Debian3.0r1 w/KDE 3.1
Comment 1 ccheney 2003-04-15 00:04:59 UTC
This bug is still seen with KDE 3.1.1 on Debian sid as well. A bug report 
with strace information is available here: http://bugs.debian.org/163499 
 
I have not looked at the kdepasswd source but it appears it assumes any 
change of password will automatically be accepted, which is not the case 
when pam is used with password checking. 
Comment 2 Waldo Bastian 2003-04-21 21:00:52 UTC
It looks like passwd never exits in this case. What is the output of passwd when you 
change your password to qwert6 manually? 
Comment 3 David Smith 2003-04-22 07:57:58 UTC
Results of passwd from the command line (trying over and over): 
 
sidicas@Skuld:~$ passwd 
Changing password for sidicas 
(current) UNIX password: 
Enter new UNIX password: 
Retype new UNIX password: 
Bad: new password is too simple 
Enter new UNIX password: 
Retype new UNIX password: 
Bad: new password is too simple 
Enter new UNIX password: 
Retype new UNIX password: 
Bad: new password is too simple 
passwd: Authentication token manipulation error 
sidicas@Skuld:~$ 
 
Which makes you correct, passwd does not exit after the first attempt to 
change the password. 
 
Comment 4 Waldo Bastian 2003-04-22 19:26:19 UTC
Created attachment 1412 [details]
proposed patch
Comment 5 Waldo Bastian 2003-04-22 19:28:38 UTC
Please let me know if the patch in attachment 1412 [details] fixes the problem. 
Comment 6 Waldo Bastian 2003-06-22 17:00:12 UTC
No news is good news. Assumed to be fixed.