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 1026845 - Server does not detect different server and IPA domain
Summary: Server does not detect different server and IPA domain
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-05 14:16 UTC by Dmitri Pal
Modified: 2014-06-18 00:12 UTC (History)
3 users (show)

Fixed In Version: ipa-3.3.3-3.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 11:36:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dmitri Pal 2013-11-05 14:16:35 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/4012

Server domain is being checked if it is in a main IPA domain. When not, additional realm_domain mapping is added to `/etc/krb5.conf`.

However, given that the domain is checked just with string comparison of the domain, when the server has fqdn like `ipa-idm.example.com` and main domain and realm is `idm.example.com`, the installer does not detect this mismatch, does not configure realm_domain mapping and httpd does not start due to obscure error:

{{{
gss_acquire_cred() failed: Unspecified GSS failure.  Minor code may provide more
information (, ), referer: https://ipa-idm.example.com/ipa/xml
}}}

Comment 1 Namita Soman 2013-11-05 17:45:44 UTC
Please provide steps to verify

Comment 2 Martin Kosek 2013-11-06 09:27:56 UTC
Reproduction scenario:

1) Install IPA so that server FQDN lies in different domain than the main domain (--domain) but shares the same suffix. E.g.:

# hostname ipa-idm.example.com
# ipa-server-install --domain idm.example.com

2) When installation is complete, try kinit and one command:
# kinit admin
# ipa user-show admin

ipa command will fail with the old version as realm-domain mapping is missing in /etc/krb5.conf.

Comment 5 Scott Poore 2014-01-29 18:37:47 UTC
Verified.

Version ::

ipa-server-3.3.3-15.el7.x86_64

Test Results ::

[root@rhel7-4 ~]# sed -i "/$(hostname -i)/d" /etc/hosts

[root@rhel7-4 ~]# sed -i "/$(hostname)/d" /etc/hosts

[root@rhel7-4 ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

[root@rhel7-4 ~]# echo "$(hostname -i) ipa-idm.example.com" >> /etc/hosts

[root@rhel7-4 ~]# echo ipa-idm.example.com > /etc/hostname

[root@rhel7-4 ~]# hostname ipa-idm.example.com

[root@rhel7-4 ~]# hostname
ipa-idm.example.com

[root@rhel7-4 ~]# ipa-server-install --setup-dns --forwarder=192.168.122.1 -r IDM.EXAMPLE.COM -n idm.example.com -p Secret123 -P Secret123 -a Secret123 -U
...

[root@rhel7-4 ~]# kinit admin
Password for admin.COM: 

[root@rhel7-4 ~]# ipa user-show admin
  User login: admin
  Last name: Administrator
  Home directory: /home/admin
  Login shell: /bin/bash
  UID: 997600000
  GID: 997600000
  Account disabled: False
  Password: True
  Member of groups: admins, trust admins
  Kerberos keys available: True
[root@rhel7-4 ~]# cat /etc/krb5.conf
includedir /var/lib/sss/pubconf/krb5.include.d/

[logging]
 default = FILE:/var/log/krb5libs.log
 kdc = FILE:/var/log/krb5kdc.log
 admin_server = FILE:/var/log/kadmind.log

[libdefaults]
 default_realm = IDM.EXAMPLE.COM
 dns_lookup_realm = false
 dns_lookup_kdc = true
 rdns = false
 ticket_lifetime = 24h
 forwardable = yes
 default_ccache_name = KEYRING:persistent:%{uid}

[realms]
 IDM.EXAMPLE.COM = {
  kdc = ipa-idm.example.com:88
  master_kdc = ipa-idm.example.com:88
  admin_server = ipa-idm.example.com:749
  default_domain = idm.example.com
  pkinit_anchors = FILE:/etc/ipa/ca.crt
}

[domain_realm]
 .idm.example.com = IDM.EXAMPLE.COM
 idm.example.com = IDM.EXAMPLE.COM
 .example.com = IDM.EXAMPLE.COM
 example.com = IDM.EXAMPLE.COM

[dbmodules]
  IDM.EXAMPLE.COM = {
    db_library = ipadb.so
  }

[root@rhel7-4 ~]#

Comment 6 Ludek Smid 2014-06-13 11:36:34 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.