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 1803165 - Compatibility Schema difference in functionality for systems following RHEL 7.5 -> 7.6 upgrade path as opposed to new RHEL 7.6 systems
Summary: Compatibility Schema difference in functionality for systems following RHEL 7...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Thomas Woerner
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-14 15:30 UTC by Alexander Bokovoy
Modified: 2023-02-18 03:35 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 15:44:54 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-9478 0 None None None 2023-02-18 03:35:57 UTC
Red Hat Issue Tracker RHELPLAN-37425 0 None None None 2023-02-18 03:35:42 UTC
Red Hat Product Errata RHEA-2020:1640 0 None None None 2020-04-28 15:45:01 UTC

Description Alexander Bokovoy 2020-02-14 15:30:17 UTC
This bug was initially created as a copy of Bug #1801791

I am copying this bug because: 

There are two parts here.

- ipaExternalGroup is only handled for trust to AD configurations. The compat tree configuration for that is only set up when you run ipa-adtrust-install --enable-compat on the specific master (turning the master into a trust controller). When you have no external group members configured for some external groups (this is a concept in IPA, 'ipa group-add --external' and 'ipa group-add-member --external'), and these groups aren't included into some POSIX groups, you should not see any of AD groups pulled in.

- Second part is actual addition of the 'objectclass: ipaExternalGroup' into the entries under cn=groups,cn=compat,$BASEDN. This happens after /usr/share/ipa/updates/50-externalmembers.update file is automatically imported on IPA upgrade. The file content is:

$ cat install/updates/50-externalmembers.update
dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config
addifexist: schema-compat-entry-attribute: ipaexternalmember=%deref_r("member","ipaexternalmember")
addifexist: schema-compat-entry-attribute: objectclass=ipaexternalgroup

The upgrade should happen during replica deployment as one of last steps before enabling optional services. You can see that in the replica installation log with 'Applying LDAP updates'. But I think there might be an ordering discrepancy because the base compat tree configuration is in install/updates/80-schema_compat.update so it is ran after 50-externalmembers.update. And since at that point cn=groups,cn=Schema ... does not exist yet, it is not applied.

Comment 5 Mohammad Rizwan 2020-03-05 11:53:12 UTC
version:
ipa-server-4.8.4-6.module+el8.2.0+5773+68ace8c5.x86_64
ipa-server-trust-ad-4.8.4-6.module+el8.2.0+5773+68ace8c5.x86_64

~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fresh system with AD trust:
~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@master ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=groups,cn=Schema Compatibility,cn=plugins,cn=config" schema-compat-entry-attribute
dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config
schema-compat-entry-attribute: objectclass=posixGroup
schema-compat-entry-attribute: gidNumber=%{gidNumber}
schema-compat-entry-attribute: memberUid=%{memberUid}
schema-compat-entry-attribute: memberUid=%deref_r("member","uid")
schema-compat-entry-attribute: %ifeq("ipauniqueid","%{ipauniqueid}","objectcla
 ss=ipaOverrideTarget","")
schema-compat-entry-attribute: %ifeq("ipauniqueid","%{ipauniqueid}","ipaanchor
 uuid=:IPA:testrealm.test:%{ipauniqueid}","")
schema-compat-entry-attribute: ipaanchoruuid=%{ipaanchoruuid}
schema-compat-entry-attribute: %ifeq("ipaanchoruuid","%{ipaanchoruuid}","objec
 tclass=ipaOverrideTarget","")
schema-compat-entry-attribute: ipaexternalmember=%deref_r("member","ipaexterna                         <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 lmember")
schema-compat-entry-attribute: objectclass=ipaexternalgroup

[root@master ~]# 
[root@master ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=groups,cn=Schema Compatibility,cn=plugins,cn=config" schema-compat-lookup-nsswitch
dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config

[root@master ~]# ipa-adtrust-install -a Secret123 -U  --enable-compat

The log file for this installation can be found in /var/log/ipaserver-install.log
==============================================================================
This program will setup components needed to establish trust to AD domains for
[..]


[root@master ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=groups,cn=Schema Compatibility,cn=plugins,cn=config" schema-compat-lookup-nsswitch
dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config
schema-compat-lookup-nsswitch: group


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rhel8.1 System with AD then upgrade to rhel8.2:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@master ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=groups,cn=Schema Compatibility,cn=plugins,cn=config" schema-compat-entry-attribute
dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config
schema-compat-entry-attribute: objectclass=posixGroup
schema-compat-entry-attribute: gidNumber=%{gidNumber}
schema-compat-entry-attribute: memberUid=%{memberUid}
schema-compat-entry-attribute: memberUid=%deref_r("member","uid")
schema-compat-entry-attribute: %ifeq("ipauniqueid","%{ipauniqueid}","objectcla
 ss=ipaOverrideTarget","")
schema-compat-entry-attribute: %ifeq("ipauniqueid","%{ipauniqueid}","ipaanchor
 uuid=:IPA:testrealm.test:%{ipauniqueid}","")
schema-compat-entry-attribute: ipaanchoruuid=%{ipaanchoruuid}
schema-compat-entry-attribute: %ifeq("ipaanchoruuid","%{ipaanchoruuid}","objec
 tclass=ipaOverrideTarget","")
schema-compat-entry-attribute: ipaexternalmember=%deref_r("member","ipaexterna                             <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 lmember")
schema-compat-entry-attribute: objectclass=ipaexternalgroup

[root@master ~]# 
[root@master ~]# 
[root@master ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=groups,cn=Schema Compatibility,cn=plugins,cn=config" schema-compat-lookup-nsswitch
dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config

[root@master ~]# ipa-adtrust-install -a Secret123 --enable-compat  -U

The log file for this installation can be found in /var/log/ipaserver-install.log
==============================================================================
This program will setup components needed to establish trust to AD domains for
the IPA Server.

[..]

[root@master ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=groups,cn=Schema Compatibility,cn=plugins,cn=config" schema-compat-lookup-nsswitch
dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config
schema-compat-lookup-nsswitch: group


~~~~~~~~~~~~~~~~~~~~~~~~
Fresh rhel8.2 system without AD:
~~~~~~~~~~~~~~~~~~~~~~~~

[root@master ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=groups,cn=Schema Compatibility,cn=plugins,cn=config" schema-compat-lookup-nsswitch
dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config

[root@master ~]# 
[root@master ~]# 
[root@master ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=groups,cn=Schema Compatibility,cn=plugins,cn=config" schema-compat-entry-attribute
dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config
schema-compat-entry-attribute: objectclass=posixGroup
schema-compat-entry-attribute: gidNumber=%{gidNumber}
schema-compat-entry-attribute: memberUid=%{memberUid}
schema-compat-entry-attribute: memberUid=%deref_r("member","uid")
schema-compat-entry-attribute: %ifeq("ipauniqueid","%{ipauniqueid}","objectcla
 ss=ipaOverrideTarget","")
schema-compat-entry-attribute: %ifeq("ipauniqueid","%{ipauniqueid}","ipaanchor
 uuid=:IPA:testrelm.test:%{ipauniqueid}","")
schema-compat-entry-attribute: ipaanchoruuid=%{ipaanchoruuid}
schema-compat-entry-attribute: %ifeq("ipaanchoruuid","%{ipaanchoruuid}","objec
 tclass=ipaOverrideTarget","")
schema-compat-entry-attribute: ipaexternalmember=%deref_r("member","ipaexterna                          <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 lmember")
schema-compat-entry-attribute: objectclass=ipaexternalgroup

Comment 6 Mohammad Rizwan 2020-03-05 13:20:13 UTC
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fresh rhel8.1 system then upgrade to rhel8.2:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

old version rhel8.1:
ipa-server-4.8.0-13.module+el8.1.0+4923+c6efe041.x86_64

[root@master ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=groups,cn=Schema Compatibility,cn=plugins,cn=config" schema-compat-entry-attribute
dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config
schema-compat-entry-attribute: objectclass=posixGroup
schema-compat-entry-attribute: gidNumber=%{gidNumber}
schema-compat-entry-attribute: memberUid=%{memberUid}
schema-compat-entry-attribute: memberUid=%deref_r("member","uid")
schema-compat-entry-attribute: %ifeq("ipauniqueid","%{ipauniqueid}","objectcla
 ss=ipaOverrideTarget","")
schema-compat-entry-attribute: %ifeq("ipauniqueid","%{ipauniqueid}","ipaanchor
 uuid=:IPA:ipadomain.tes:%{ipauniqueid}","")
schema-compat-entry-attribute: ipaanchoruuid=%{ipaanchoruuid}
schema-compat-entry-attribute: %ifeq("ipaanchoruuid","%{ipaanchoruuid}","objec
 tclass=ipaOverrideTarget","")


After upgrade version:
ipa-server-4.8.4-6.module+el8.2.0+5773+68ace8c5.x86_64

[root@master ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=groups,cn=Schema Compatibility,cn=plugins,cn=config" schema-compat-entry-attribute
dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config
schema-compat-entry-attribute: objectclass=posixGroup
schema-compat-entry-attribute: gidNumber=%{gidNumber}
schema-compat-entry-attribute: memberUid=%{memberUid}
schema-compat-entry-attribute: memberUid=%deref_r("member","uid")
schema-compat-entry-attribute: %ifeq("ipauniqueid","%{ipauniqueid}","objectcla
 ss=ipaOverrideTarget","")
schema-compat-entry-attribute: %ifeq("ipauniqueid","%{ipauniqueid}","ipaanchor
 uuid=:IPA:ipadomain.tes:%{ipauniqueid}","")
schema-compat-entry-attribute: ipaanchoruuid=%{ipaanchoruuid}
schema-compat-entry-attribute: %ifeq("ipaanchoruuid","%{ipaanchoruuid}","objec
 tclass=ipaOverrideTarget","")
schema-compat-entry-attribute: ipaexternalmember=%deref_r("member","ipaexterna                       <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 lmember")
schema-compat-entry-attribute: objectclass=ipaexternalgroup



The entry cn=groups,cn=Schema Compatibility,cn=plugins,cn=config properly contains the attribute schema-compat-entry-attribute: ipaexternalmember= . Hence marking the bug as verified.

Comment 8 errata-xmlrpc 2020-04-28 15:44:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:1640


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