Bug 1129201

Summary: adcli --stdin-password cannot authenticate
Product: [Fedora] Fedora EPEL Reporter: Dalibor Pospíšil <dapospis>
Component: adcliAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: el6CC: dapospis, sgallagh, stefw
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1134330 (view as bug list) Environment:
Last Closed: 2019-01-15 19:03:27 UTC Type: Bug
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: 1134330    

Description Dalibor Pospíšil 2014-08-12 09:50:18 UTC
Description of problem:
# echo 'mypass' | adcli join --stdin-password my.domain.com
adcli: couldn't connect to my.domain.com: Couldn't authenticate as: Administrator.COM: Preauthentication failed

While without --stdin-password option and entering the password manually or in expect script it works.

Version-Release number of selected component (if applicable):
adcli-0.7.3-1.el6

Comment 1 Stef Walter 2014-08-14 05:35:24 UTC
Could you try this command:

echo -n 'mypass' | adcli join --stdin-password my.domain.com

Note the '-n' argument. Otherwise echo will send a newline as part of the password.

Comment 2 Dalibor Pospíšil 2014-08-27 09:45:45 UTC
echo -n fixes the problem

I can imagine that you would like to close this bug as it works somehow. This issue exists also on RHEL7 so I will clone this bug as RFE for RHEL7 as it is not intuitive. 'echo "pass" | passwd --stdin user' also works so one could expect that it would work also in adcli.

I would be happy If you fix it also in RHEL6 version of the package.