Bug 1138773

Summary: Internal error received for blank password with --trust-secret
Product: Red Hat Enterprise Linux 7 Reporter: Martin Kosek <mkosek>
Component: ipaAssignee: Martin Kosek <mkosek>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.0CC: rcritten, sgoveas
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.0.3-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 10:13:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Kosek 2014-09-05 15:27:57 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/4266

{{{
[root@ratchet ~]# ipa trust-add --type=ad adtest.qe --trust-secret
Shared secret for the trust:
ipa: ERROR: an internal error has occurred

[root@ratchet ~]# echo | ipa trust-add --type=ad adtest.qe --trust-secret
ipa: ERROR: an internal error has occurred
}}}

Comment 1 Martin Kosek 2014-09-05 16:15:34 UTC
Fixed upstream:

master:
e672a396374c05c5a06eb4e816ec6cc0939ad008 trusts: Validate missing trust secret properly

ipa-4-1:
e672a396374c05c5a06eb4e816ec6cc0939ad008 trusts: Validate missing trust secret properly

ipa-4-0:
e672a396374c05c5a06eb4e816ec6cc0939ad008 trusts: Validate missing trust secret properly

Comment 3 Steeve Goveas 2015-01-27 13:17:42 UTC
Verified in version
[root@vm-idm-019 ~]# rpm -q ipa-server 
ipa-server-4.1.0-16.el7.x86_64

[root@vm-idm-019 ~]# ipa trust-add adtest.qe --trust-secret
Shared secret for the trust: 
ipa: ERROR: invalid 'AD Trust setup': Not enough arguments specified to perform trust setup

[root@vm-idm-019 ~]# echo | ipa trust-add adtest.qe --trust-secret
ipa: ERROR: invalid 'AD Trust setup': Not enough arguments specified to perform trust setup

Comment 5 errata-xmlrpc 2015-03-05 10:13:31 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.

https://rhn.redhat.com/errata/RHSA-2015-0442.html