Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1077857

Summary: Internal error received while adding trust
Product: Red Hat Enterprise Linux 7 Reporter: Steeve Goveas <sgoveas>
Component: sambaAssignee: Andreas Schneider <asn>
Status: CLOSED CURRENTRELEASE QA Contact: Robin Hack <rhack>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.0CC: abokovoy, asn, dpal, gdeschner, jscotka, nsoman, rpacheco, sbose
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: samba-4.1.1-27.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 10:28:37 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:
Attachments:
Description Flags
lsa.idl-define-lsa.ForestTrustCollisionInfo-and-Fore.patch none

Description Steeve Goveas 2014-03-18 17:39:17 UTC
Description of problem:
Error received while adding trust

Version-Release number of selected component (if applicable):
ipa-server-3.3.3-25.el7.x86_64


Actual results:

[root@rhel7ad ~]# echo Opensource123 | ipa trust-add --type=ad ipaqe.com --admin Administrator --password
ipa: ERROR: an internal error has occurred

Expected results:


Additional info:
http error logs while running trust-add
[Tue Mar 18 22:13:31.916635 2014] [:error] [pid 15922] ipa: DEBUG: WSGI wsgi_dispatch.__call__:
[Tue Mar 18 22:13:31.916754 2014] [:error] [pid 15922] ipa: DEBUG: WSGI xmlserver_session.__call__:
[Tue Mar 18 22:13:31.916916 2014] [:error] [pid 15922] ipa: DEBUG: found session cookie_id = 39ba896412d6bb6dc3f26bcd3467f322
[Tue Mar 18 22:13:31.917480 2014] [:error] [pid 15922] ipa: DEBUG: found session data in cache with id=39ba896412d6bb6dc3f26bcd3467f322
[Tue Mar 18 22:13:31.917600 2014] [:error] [pid 15922] ipa: DEBUG: xmlserver_session.__call__: session_id=39ba896412d6bb6dc3f26bcd3467f322 start_timestamp=2014-03-18T22:11:48 access_timestamp=2014-03-18T22:13:31 expiration_timestamp=2014-03-18T22:33:19
[Tue Mar 18 22:13:31.917688 2014] [:error] [pid 15922] ipa: DEBUG: storing ccache data into file "/var/run/ipa_memcached/krbcc_15922"
[Tue Mar 18 22:13:31.918193 2014] [:error] [pid 15922] ipa: DEBUG: get_credential_times: principal=HTTP/rhel7ad.testrelm.com, authtime=03/18/14 21:56:48, starttime=03/18/14 22:11:48, endtime=03/19/14 21:56:44, renew_till=01/01/70 05:30:00
[Tue Mar 18 22:13:31.918417 2014] [:error] [pid 15922] ipa: DEBUG: get_credential_times: principal=HTTP/rhel7ad.testrelm.com, authtime=03/18/14 21:56:48, starttime=03/18/14 22:11:48, endtime=03/19/14 21:56:44, renew_till=01/01/70 05:30:00
[Tue Mar 18 22:13:31.918617 2014] [:error] [pid 15922] ipa: DEBUG: KRB5_CCache FILE:/var/run/ipa_memcached/krbcc_15922 endtime=1395246404 (03/19/14 21:56:44)
[Tue Mar 18 22:13:31.918735 2014] [:error] [pid 15922] ipa: DEBUG: set_session_expiration_time: duration_type=inactivity_timeout duration=1200 max_age=1395246104 expiration=1395162211.92 (2014-03-18T22:33:31)
[Tue Mar 18 22:13:31.918797 2014] [:error] [pid 15922] ipa: DEBUG: WSGI xmlserver.__call__:
[Tue Mar 18 22:13:31.953176 2014] [:error] [pid 15922] ipa: DEBUG: Created connection context.ldap2
[Tue Mar 18 22:13:31.953265 2014] [:error] [pid 15922] ipa: DEBUG: WSGI WSGIExecutioner.__call__:
[Tue Mar 18 22:13:31.953782 2014] [:error] [pid 15922] ipa: DEBUG: raw: trust_add(u'ipaqe.com', trust_type=u'ad', realm_admin=u'Administrator', realm_passwd=u'********', all=False, raw=False, version=u'2.65')
[Tue Mar 18 22:13:31.954013 2014] [:error] [pid 15922] ipa: DEBUG: trust_add(u'ipaqe.com', trust_type=u'ad', realm_admin=u'Administrator', realm_passwd=u'********', all=False, raw=False, version=u'2.65')
[Tue Mar 18 22:13:32.127823 2014] [:error] [pid 15922] ipa: DEBUG: raw: idrange_show(u'IPAQE.COM_id_range', raw=True)
[Tue Mar 18 22:13:32.128200 2014] [:error] [pid 15922] ipa: DEBUG: idrange_show(u'IPAQE.COM_id_range', rights=False, all=False, raw=True)
[Tue Mar 18 22:13:32.157104 2014] [:error] [pid 15922] ipa: DEBUG: raw: realmdomains_show()
[Tue Mar 18 22:13:32.157297 2014] [:error] [pid 15922] ipa: DEBUG: realmdomains_show(rights=False, all=False, raw=False)
[Tue Mar 18 22:13:32.243536 2014] [:error] [pid 15922] ipa: ERROR: non-public: AttributeError: 'lsa.ForestTrustCollisionInfo' object has no attribute '__ndr_print__'
[Tue Mar 18 22:13:32.243584 2014] [:error] [pid 15922] Traceback (most recent call last):
[Tue Mar 18 22:13:32.243589 2014] [:error] [pid 15922]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 333, in wsgi_execute
[Tue Mar 18 22:13:32.243592 2014] [:error] [pid 15922]     result = self.Command[name](*args, **options)
[Tue Mar 18 22:13:32.243594 2014] [:error] [pid 15922]   File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 436, in __call__
[Tue Mar 18 22:13:32.243597 2014] [:error] [pid 15922]     ret = self.run(*args, **options)
[Tue Mar 18 22:13:32.243599 2014] [:error] [pid 15922]   File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 755, in run
[Tue Mar 18 22:13:32.243615 2014] [:error] [pid 15922]     result = self.execute(*args, **options)
[Tue Mar 18 22:13:32.243642 2014] [:error] [pid 15922]   File "/usr/lib/python2.7/site-packages/ipalib/plugins/trust.py", line 442, in execute
[Tue Mar 18 22:13:32.243645 2014] [:error] [pid 15922]     result = self.execute_ad(full_join, *keys, **options)
[Tue Mar 18 22:13:32.243648 2014] [:error] [pid 15922]   File "/usr/lib/python2.7/site-packages/ipalib/plugins/trust.py", line 656, in execute_ad
[Tue Mar 18 22:13:32.243651 2014] [:error] [pid 15922]     self.realm_passwd
[Tue Mar 18 22:13:32.243653 2014] [:error] [pid 15922]   File "/usr/lib/python2.7/site-packages/ipaserver/dcerpc.py", line 1134, in join_ad_full_credentials
[Tue Mar 18 22:13:32.243656 2014] [:error] [pid 15922]     self.remote_domain.establish_trust(self.local_domain, trustdom_pass)
[Tue Mar 18 22:13:32.243659 2014] [:error] [pid 15922]   File "/usr/lib/python2.7/site-packages/ipaserver/dcerpc.py", line 905, in establish_trust
[Tue Mar 18 22:13:32.243661 2014] [:error] [pid 15922]     self.update_ftinfo(another_domain)
[Tue Mar 18 22:13:32.243672 2014] [:error] [pid 15922]   File "/usr/lib/python2.7/site-packages/ipaserver/dcerpc.py", line 863, in update_ftinfo
[Tue Mar 18 22:13:32.243870 2014] [:error] [pid 15922]     root_logger.error("When setting forest trust information, got collision info back:\\n%s" % (ndr_print(collision_info)))
[Tue Mar 18 22:13:32.244048 2014] [:error] [pid 15922]   File "/usr/lib64/python2.7/site-packages/samba/ndr.py", line 50, in ndr_print
[Tue Mar 18 22:13:32.244196 2014] [:error] [pid 15922]     return object.__ndr_print__()
[Tue Mar 18 22:13:32.244227 2014] [:error] [pid 15922] AttributeError: 'lsa.ForestTrustCollisionInfo' object has no attribute '__ndr_print__'
[Tue Mar 18 22:13:32.244512 2014] [:error] [pid 15922] ipa: INFO: admin: trust_add(u'ipaqe.com', trust_type=u'ad', realm_admin=u'Administrator', realm_passwd=u'********', all=False, raw=False, version=u'2.65'): AttributeError
[Tue Mar 18 22:13:32.244627 2014] [:error] [pid 15922] ipa: DEBUG: response: InternalError: an internal error has occurred
[Tue Mar 18 22:13:32.245295 2014] [:error] [pid 15922] ipa: DEBUG: Destroyed connection context.ldap2
[Tue Mar 18 22:13:32.245416 2014] [:error] [pid 15922] ipa: DEBUG: reading ccache data from file "/var/run/ipa_memcached/krbcc_15922"
[Tue Mar 18 22:13:32.245669 2014] [:error] [pid 15922] ipa: DEBUG: store session: session_id=39ba896412d6bb6dc3f26bcd3467f322 start_timestamp=2014-03-18T22:11:48 access_timestamp=2014-03-18T22:13:32 expiration_timestamp=2014-03-18T22:33:31

Comment 2 Alexander Bokovoy 2014-03-24 11:50:40 UTC
Created attachment 878013 [details]
lsa.idl-define-lsa.ForestTrustCollisionInfo-and-Fore.patch

Patch against v4-1-test

Comment 6 Steeve Goveas 2014-03-26 15:06:37 UTC
* In previous version

[root@rhel7ad ~]# rpm -q samba
samba-4.1.1-10.el7.x86_64

[root@rhel7ad ~]# python
Python 2.7.5 (default, Dec 28 2013, 19:14:34) 
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from samba.dcerpc import lsa
>>> s = lsa.ForestTrustCollisionInfo()
>>> print s.__ndr_print__()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'lsa.ForestTrustCollisionInfo' object has no attribute '__ndr_print__'
>>>

* Verified in version

[root@dhcp207-218 ~]# rpm -q samba
samba-4.1.1-27.el7.x86_64

[root@dhcp207-218 ~]# python
Python 2.7.5 (default, Feb 11 2014, 07:46:25) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from samba.dcerpc import lsa
>>> s = lsa.ForestTrustCollisionInfo()
>>> print s.__ndr_print__()
    lsa_ForestTrustCollisionInfo: struct lsa_ForestTrustCollisionInfo
        count                    : 0x00000000 (0)
        entries                  : NULL

>>>

Comment 7 Ludek Smid 2014-06-13 10:28:37 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.