Bug 1391154 - Option --password=file does not reset the password
Summary: Option --password=file does not reset the password
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-extension-aaa-jdbc
Classification: oVirt
Component: General
Version: 1.0.7
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ovirt-4.0.6
: 1.1.2
Assignee: Ondra Machacek
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-02 16:20 UTC by Jaroslav Spanko
Modified: 2020-02-14 18:10 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-11 14:55:20 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.0.z+
mgoldboi: planning_ack+
mperina: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 66135 0 None None None 2016-11-08 13:04:28 UTC

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


Note You need to log in before you can comment on or make changes to this bug.