Bug 452673

Summary: Special Characters in Root password of kickstart fail
Product: Red Hat Satellite 5 Reporter: Patrick Connelly <pconnell>
Component: ServerAssignee: Partha Aji <paji>
Status: CLOSED CURRENTRELEASE QA Contact: Steve Salevan <ssalevan>
Severity: medium Docs Contact:
Priority: medium    
Version: 510CC: skarmark, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sat530 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-10 20:26:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 454471, 456985    
Attachments:
Description Flags
Test script to compare satellite generated hash to openssl hash none

Description Patrick Connelly 2008-06-24 13:28:40 UTC
Description of problem:
When adding any of the following characters to the root password of a kickstart,
the md5 hash is generated incorrectly.

< > ( ) { }

Version-Release number of selected component (if applicable):
rhns-server-5.1.0-57

How reproducible:
Everytime


Steps to Reproduce:
1. Set root password in kickstart to contain any of the above characters
2. Kickstart machine
3. Try to login as root
4. Look at rootpw line in kickstart
5. Verify output with openssl

echo "password" | openssl passwd -salt saltfromks -1 -stdin
  
Actual results:
Sets the incorrect root password

Expected results:
Sets the correct root password

Additional info:
When editing the kickstart's password, the number of "dots" will drop on the
"Verify New Root Password" box if one of the password characters fails.

Attached script will show the hash from the satellite, as well as the "correct" hash

Comment 1 Patrick Connelly 2008-06-24 13:28:40 UTC
Created attachment 310140 [details]
Test script to compare satellite generated hash to openssl hash

Comment 2 Patrick Connelly 2008-06-24 14:10:05 UTC
After a little more digging, it appears that the WebUI completely ignores the
character and sets the password as if it was not entered.

IE.  A password of 'aaaa(' is stored and hashed as if it was 'aaaa'

Comment 6 Partha Aji 2008-07-23 23:50:05 UTC
Fixed the form and the action to makesure password doesnot get scrubbed..

Comment 10 Steve Salevan 2009-02-13 15:48:30 UTC
Hash shown to be correct on 530-re20090206.1 and machine successfully kickstarted with password of '<>(){}'; moving to VERIFIED.

Comment 11 Sayli Karmarkar 2009-07-31 20:38:01 UTC
Kickstarted with "<({sayli})>" as passwd successfully.

Comment 12 Brandon Perkins 2009-09-10 20:26:13 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1434.html