Bug 1391154

Summary: Option --password=file does not reset the password
Product: [oVirt] ovirt-engine-extension-aaa-jdbc Reporter: Jaroslav Spanko <jspanko>
Component: GeneralAssignee: Ondra Machacek <omachace>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.7CC: bugs, lleistne, mgoldboi, michal.skrivanek, mperina, pstehlik, ylavi
Target Milestone: ovirt-4.0.6Keywords: ZStream
Target Release: 1.1.2Flags: rule-engine: ovirt-4.0.z+
mgoldboi: planning_ack+
mperina: devel_ack+
pstehlik: testing_ack+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-11 14:55:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaroslav Spanko 2016-11-02 16:20:24 UTC
Description of problem:
It is not possible to reset password with option --password=file, password is taken from the first line of the file and at the end is added EOF or some characters. 

Version-Release number of selected component (if applicable):
1.0.7-2.el6ev.noarch

How reproducible:
always

Steps to Reproduce:
1.create file with password
2./usr/bin/ovirt-aaa-jdbc-tool user password-reset admin --password=file:/tmp/file
3.try to log in 

Actual results:
Password from the file is not used for the reset

Expected results:
Options file:FILE will setup the password

Additional info:
Looks like options file:FILE add to the end of line EOF or some character and after that encrypt the password, so it is not possible to log in with password which is setup in the file.

Comment 1 Martin Perina 2016-11-18 17:21:40 UTC
Fixed in ovirt-engine-extension-aaa-jdbc-1.1.2

Comment 2 Lucie Leistnerova 2016-11-28 09:45:29 UTC
Password from file changed and user logged in. It works also when there is new line after password.

verified in ovirt-engine-extension-aaa-jdbc-1.1.2-1.el7ev.noarch