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.
+++ This bug was initially created as a clone of Bug #1138797 +++
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/4403
Currently in an environment with trust to AD the compat tree does not show AD users as members of IPA groups. The reason is that IPA groups are read directly from the IPA DS tree and external groups are not handled.
Verified
[root@host108 ~]# rpm -qa ipa-server sssd
ipa-server-4.4.0-7.el7.x86_64
sssd-1.14.0-18.el7.x86_64
1.Created Global Security Group added members from parent domain.
[root@host108 ~]# getent group adgroup1
adgroup1:*:175001105:aduser1,aduser2
2. Created Universal Security Group and added members from parent
[root@host108 ~]# getent group adunigroup1
adunigroup1:*:175001107:aduser1,aduser3,aduser1.test
3. Created Global Security Group added members from child domain.
[root@host108 ~]# getent group adgroup2.test
adgroup2.test:*:1393601108:aduser1.test,aduser0.test
4. Created Universal Security Group and added members from child domain.
[root@host108 ~]# getent group adunigroup2.test
adunigroup2.test:*:1393603033:aduser0.test,aduser2.test,aduser3
5. After removing user from group, found that getent group is also updated.
a)After removing aduser1.test from adunigroup1 group
[root@host108 ~]# getent group adunigroup1
adunigroup1:*:175001107:aduser1,aduser3
b)After removing aduser3 from adunigroup2.test group
[root@host108 ~]# getent group adunigroup2.test
adunigroup2.test:*:1393603033:aduser0.test,aduser2.test
[root@host108 ~]#
6. External Group
[root@host108 ~]# ipa group-add --external ext_ad_administrators --desc "IPAAD2008R2.TEST\Administrators"
-----------------------------------
Added group "ext_ad_administrators"
-----------------------------------
Group name: ext_ad_administrators
Description: IPAAD2008R2.TEST\Administrators
[root@host108 ~]# ipa group-add-member ext_ad_administrators --external "IPAAD2008R2\Domain Admins"
[member user]:
[member group]:
Group name: ext_ad_administrators
Description: IPAAD2008R2.TEST\Administrators
External member: S-1-5-21-1765444267-4284514389-3232425237-512
-------------------------
Number of members added 1
-------------------------
[root@host108 ~]# ipa group-add ad_administrators
-------------------------------
Added group "ad_administrators"
-------------------------------
Group name: ad_administrators
GID: 1657800007
[root@host108 ~]# ipa group-add-member ad_administrators --group ext_ad_administrators
Group name: ad_administrators
GID: 1657800007
Member groups: ext_ad_administrators
-------------------------
Number of members added 1
-------------------------
[root@host108 ~]# service sssd stop; rm -rf /var/lib/sss/{db,mc}/*; service sssd start
Redirecting to /bin/systemctl stop sssd.service
Redirecting to /bin/systemctl start sssd.service
[root@host108 ~]# getent group ad_administrators
ad_administrators:*:1657800007:administrator
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://rhn.redhat.com/errata/RHBA-2016-2404.html