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@MY.DOMAIN.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):
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.
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.