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 1142694

Summary: unable to add trust by IPA web ui
Product: Red Hat Enterprise Linux 7 Reporter: abubackar siddique <abdullaha>
Component: ipaAssignee: Tomas Babej <tbabej>
Status: CLOSED NOTABUG QA Contact: Namita Soman <nsoman>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 7.0CC: abdullaha, mkosek, rcritten, tbabej
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-18 09:06:38 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
/var/log/httpd/error_log none

Description abubackar siddique 2014-09-17 08:36:57 UTC
Description of problem: IPA Error internal error has occured


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Tomas Babej 2014-09-17 10:34:07 UTC
Thanks for the bug report.

Adding a trust via WebUI works fine on my instance. What version of IPA are you running? I tested with ipa-server-3.3.3-28.el7.x86_64.

However, we will need more information to debug the issue. For starters, can you please have a look into /var/log/httpd/error_log, you will find a backtrace of this internal error there.

You haven't specified the authorization way to create the trust - did you try to establish the trust using AD Administrative account or using pre-shared password?

Also, for further debugging, please see http://www.freeipa.org/page/Howto/IPAv3_AD_trust_setup#Debugging_trust

Comment 3 abubackar siddique 2014-09-17 12:50:14 UTC
Created attachment 938461 [details]
/var/log/httpd/error_log

Hi 

we are using virtual server for idm services (OS RHEL 7)

Domain controller windows server 2008

installed packages are in rhel 7

ipa-server, bind, bind-dyndb-ldap

getting error (IPA 903 an internal error has occured) while trying to add trust with Domain controller using relevant credential (Domain controller's).

Kindly expecting soonest solution since the job stucked which should handed over soon.
 
if required can take remote assistance also please

Comment 4 Martin Kosek 2014-09-17 13:25:25 UTC
abubackar, we will try to help you and investigate your problem in a reasonable time.

However, to further prioritize your request, get remote assistance or request 24h urgent support please file an official Customer Case via

https://access.redhat.com/

where you should have access in case you own a RHEL subscription.

Comment 5 Tomas Babej 2014-09-17 13:49:49 UTC
It seems that the ID range entry from previous attempt to add the trust got corrupted somehow.

The ID range should be called NES.PRD_id_range, can you please show us the contents of that LDAP entry?

Running the following command should be enough (you need to kinit as admin first):

ipa idrange-show NES.PRD_id_range --all --raw

Comment 6 Tomas Babej 2014-09-17 14:11:39 UTC
Additionaly, it seems that your IPA domain is the same as the AD domain (NES.PRD). This is not supported setup and can not work, as multiple SRV records will clash.

You need to separate AD and IPA domains, e.g. use subdomains:

AD: NES.PRD
IPA: IPA.NES.PRD

or parallel domains for IPA and AD:

AD: NES.PRD
IPA: IPA.PRD

Comment 7 abubackar siddique 2014-09-18 06:39:58 UTC
(In reply to Tomas Babej from comment #5)
> It seems that the ID range entry from previous attempt to add the trust got
> corrupted somehow.
> 
> The ID range should be called NES.PRD_id_range, can you please show us the
> contents of that LDAP entry?
> 
> Running the following command should be enough (you need to kinit as admin
> first):
> 
> ipa idrange-show NES.PRD_id_range --all --raw

Hi Babej

please find the below lines which get as result with the above command

 dn: cn=NES.PRD_id_range,cn=ranges,cn=etc,dc=nes,dc=prd
  cn: NES.PRD_id_range
  ipaBaseID: 28800000
  ipaBaseRID: 1000
  ipaIDRangeSize: 200000
  ipaRangeType: ipa-local
  ipaSecondaryBaseRID: 100000000
  objectClass: top
  objectClass: ipaIDrange
  objectClass: ipaDomainIDRange

Expecting your solution at the possible earlier

Thanks in advance

Comment 8 Tomas Babej 2014-09-18 09:05:19 UTC
Thank you.

I can see now that the reason for all your problems is that you have IPA deployed in the same domain as AD.

As stated in Comment 6, you need to have separate domains (parallel or in subdomain relationship) for AD and IPA. This setup is not supported and will not work. You need to re-deploy your IPA infrastructure, so that your IPA is in different domain than NES.PRD.

That said, it's true we should not fail with internal error in such scenario, but report a more sensible error. I opened a upstream ticket for improvement of the error message:

https://fedorahosted.org/freeipa/ticket/4549

Comment 9 Martin Kosek 2014-09-18 10:08:51 UTC
Agreed. See
http://www.freeipa.org/page/Deployment_Recommendations#Active_Directory_Integration
for more details about this and other deployment recommendations.