output formatting does not work decently for long user-selected passwords (>=13 chars)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
makepasswd (Ubuntu) |
Fix Released
|
Medium
|
Colin Watson |
Bug Description
Hi,
when I generate a password hash for a user-selected password (with --clearfrom) that is longer than 12 characters,
the original password and hashed version are concatenated.
This output messes up my other scripts, since they expect 2 fields to be present when parsing.
Example:
root@melissa:~# echo AAAAAAAAAAAAA | makepasswd --crypt --clearfrom /dev/stdin
AAAAAAAAAAAAAht
root@melissa:~# echo AAAAAAAAAAAAA | makepasswd --crypt --clearfrom /dev/stdin --verbose
makepasswd v1.10 (c) 1997-1999 by Rob Levin <email address hidden>,
last modified Monday, 7 April 1999 at 22:56 (UCT)
All rights reserved by the author, licensed under GPL version 2.
Password=
The problem can be fixed in the Clear() subrouting in /usr/bin/
$CharFormat = length($Clear) + 3;
From what I can tell, this bug is present in natty, oneiric and precise
root@melissa:~# lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04
root@melissa:~# apt-cache policy makepasswd
makepasswd:
Installed: 1.10-5
Candidate: 1.10-5
Version table:
*** 1.10-5 0
500 http://
100 /var/lib/
kind regards,
-- Steven
Changed in makepasswd (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Colin Watson (cjwatson) |
The attachment "makepasswd.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]