Bug 1029856 - Improve error reporting for adding trust case
Summary: Improve error reporting for adding trust case
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Martin Kosek
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-13 11:28 UTC by Martin Kosek
Modified: 2015-09-23 14:41 UTC (History)
7 users (show)

Fixed In Version: ipa-3.3.3-5.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:57:15 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Martin Kosek 2013-11-13 11:28:38 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/4024

When establishing trust IPA might report following error message:

{{{
[root@host ~]# ipa trust-add ipaqe.com --type=ad --admin administrator --password
Active directory domain administrator's password:
ipa: ERROR: CIFS server communication error: code "-1073741811",
                message "Unexpected information received" (both may be "None")
}}}

The error code -1073741811 is NT_STATUS_INVALID_PARAMETER. What happens is that Samba library that we use tries to establish an authenticated connection to the AD DC using Kerberos credentials of the AD administrator and that fails  due to Kerberos-related issue.

In most cases the actual issue is clock skew, so it would be good to suggest to check time difference between AD and IPA.

Comment 4 Scott Poore 2014-01-28 19:45:11 UTC
How can we reproduce this one?

I tried skewing the clock a few times and running trust-add but, it's no longer failing.

Comment 5 Martin Kosek 2014-01-29 08:04:17 UTC
Alexander or Sumit, can you please advise?

Comment 6 Sumit Bose 2014-02-11 08:02:57 UTC
Recent MIT Kerberos versions contain a fix by Stef Walter which fixes  the clock skew issue for TGT requests. So I think this ticket can only be verified by checking if /usr/lib/python2.7/site-packages/ipaserver/dcerpc.py contains explanations for error code -1073741811 (NT_STATUS_INVALID_PARAMETER).

Comment 7 Steeve Goveas 2014-02-11 11:41:37 UTC
[root@dhcp207-151 ~]# grep -A4 1073741811 /usr/lib/python2.7/site-packages/ipaserver/dcerpc.py
    -1073741811: # NT_STATUS_INVALID_PARAMETER
        errors.RemoteRetrieveError(
            reason=_('AD domain controller complains about communication sequence. It may mean unsynchronized time on both sides, for example')),
}

Verified in version
[root@dhcp207-151 ~]# rpm -qf /usr/lib/python2.7/site-packages/ipaserver/dcerpc.py
ipa-server-trust-ad-3.3.3-17.el7.x86_64

Comment 8 Ludek Smid 2014-06-13 12:57:15 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.


Note You need to log in before you can comment on or make changes to this bug.