Bug 727563

Summary: admin password is set to rootpw instead of adminpw parameter
Product: Red Hat Enterprise Linux 6 Reporter: Guohua Ouyang <gouyang>
Component: ovirt-nodeAssignee: Mike Burns <mburns>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.2CC: apevec, cshao, kli, leiwang, mburns, moli, ovirt-maint, ycui
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: ovirt-node-2.0.2-0.1.git5dce5f9.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 19:25:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
Followup none

Description Guohua Ouyang 2011-08-02 13:15:29 UTC
Description of problem:
Auto install with adminpw, after reboot and logon with admin, it does not prompt old passwd.

Please login as 'admin' to configure the node                                   
localhost.localdomain login: admin                                              
You are required to change your password immediately (root enforced)            
New password: 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to reproduce:
1. Auto install with adminpw=123.
2. Reboot and logon with admin

Actual results:
Did not prompt old passwd for adminpw before change new passwd.

Expected results:
Before change new passwd, it should prompt old passwd first.

Comment 2 Mike Burns 2011-08-04 17:21:15 UTC
Created attachment 516750 [details]

Problem was that the code was setting the admin password to be the value of rootpw instead of adminpw.  


Verify it prompts for admin before letting you change on first login

Comment 3 Mike Burns 2011-08-08 18:08:54 UTC
Moving back to Assigned to add the following change:

if rootpw is passed and adminpw is not passed, then set admin passwd to be rootpw

Comment 4 Mike Burns 2011-08-08 18:17:26 UTC
Created attachment 517270 [details]


Pass different rootpw and adminpw, ensure that both logins work
pass only rootpw, ensure that login as admin works
pass only adminpw, ensure that login as admin works


Resetting password for admin on first login will no set the password for root.  They still will need to be reset individually.

Comment 6 Guohua Ouyang 2011-08-26 09:10:33 UTC
Verified on 6.2-0.14:
1. set adminpw=xxx during install.
2. after install, login with admin.
3. prompt current password first, then can set new password.

Comment 7 errata-xmlrpc 2011-12-06 19:25:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.