#6859 Console output message while adding trust should be mapped with texts changed in Samba.
Closed: fixed 7 years ago Opened 7 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1438348

Description of problem: Console output message while adding trust should be
mapped with texts changed in Samba.


Version-Release number of selected component (if applicable):
ipa-server-dns-4.5.0-4.el7.noarch
ipa-server-trust-ad-4.5.0-4.el7.x86_64
ipa-server-common-4.5.0-4.el7.noarch
ipa-server-4.5.0-4.el7.x86_64
samba-4.6.2-0.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Add trust with invalid server name in server option

e.g zombie.ipaad2008r2.test is invalid hostname.

echo Secret123 | ipa trust-add --type=ad ipaad2008r2.test --admin Administrator
--password --two-way=True --server=zombie.ipaad2008r2.test


Actual results:
:: [   FAIL   ] :: Command 'echo Secret123 | ipa trust-add --type=ad
ipaad2008r2.test --admin Administrator --password --two-way=True
--server=zombie.ipaad2008r2.test >
/tmp/tmp.qniioRNx3B/tmpout.trust_cli_0003.out 2>&1' (Expected 2, got 1)
:: [   FAIL   ] :: File '/tmp/tmp.qniioRNx3B/tmpout.trust_cli_0003.out' should
contain 'ipa: ERROR: Cannot find specified domain or server name'
:: [   FAIL   ] :: Command 'echo -e "Secret123\nAdministrator" | ipa trust-add
--type=ad --admin Administrator --password --two-way=True
--server=zombie.ipaad2008r2.test >
/tmp/tmp.qniioRNx3B/tmpout.trust_cli_0003.out 2>&1' (Expected 2, got 1)
:: [   FAIL   ] :: File '/tmp/tmp.qniioRNx3B/tmpout.trust_cli_0003.out' should
contain 'ipa: ERROR: Cannot find specified domain or server name'
:: [   LOG    ] :: Duration: 4s
:: [   LOG    ] :: Assertions: 0 good, 4 bad
:: [   FAIL   ] :: RESULT: Add trust with invalid server name in server option

[root@autohv01 ~]# echo Secret123 | ipa trust-add --type=ad ipaad2008r2.test
--admin Administrator --password --two-way=True
--server=zombie.ipaad2008r2.test
ipa: ERROR: CIFS server communication error: code "None", message
"(-1073741772, 'The object name is not found.')" (both may be "None")

[root@autohv01 ~]# echo $?
1

Expected results:
Earlier the output was displayed as below which was more specific rather than
the error code.

ipa: ERROR: Cannot find specified domain or server name
echo $?
2

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1438348

7 years ago

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1438348

7 years ago

Metadata Update from @pvoborni:
- Issue priority set to: blocker

7 years ago

Metadata Update from @abbra:
- Issue assigned to abbra

7 years ago

master:

  • aef77b3 ipaserver/dcerpc: unify error processing
  • e560899 trust: always use oddjobd helper for fetching trust information

ipa-4-5:

  • bbb23fc ipaserver/dcerpc: unify error processing
  • 45e1998 trust: always use oddjobd helper for fetching trust information

Metadata Update from @mbasti:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

7 years ago

Login to comment on this ticket.

Metadata