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.
Jakub,
Can you please confirm the below observations look good with respect to the fix.
Observations:
Running getent for the group on an empty cache applies the override but id for the user resolves all group memberships.
1. [root@ipa01 ~]# ipa idoverridegroup-add 'default trust view' adgroup1
------------------------------------------
Added Group ID override "adgroup1"
------------------------------------------
Anchor to override: adgroup1
2. [root@ipa01 ~]# ipa idoverridegroup-add 'default trust view' adgroup1.in
-----------------------------------------------
Added Group ID override "adgroup1.in"
-----------------------------------------------
Anchor to override: adgroup1.in
3. [root@ipa01 ~]# ipa idoverridegroup-find 'default trust view'
----------------------------
2 Group ID overrides matched
----------------------------
Anchor to override: adgroup1.in
Anchor to override: adgroup1
----------------------------
Number of entries returned 2
----------------------------
4. [root@ipa01 ~]# ipa idoverrideuser-mod 'default trust view' aduser1.in --shell=/bin/bash --home=/home/aduser1
---------------------------------------------------
Modified an User ID override "aduser1.in"
---------------------------------------------------
Anchor to override: aduser1.in
Home directory: /home/aduser1
Login shell: /bin/bash
5. [root@ipa01 ~]# ipa idoverrideuser-add 'default trust view' aduser2.in --home=/home/aduser2 --uid=5555
---------------------------------------------
Added User ID override "aduser2.in"
---------------------------------------------
Anchor to override: aduser2.in
UID: 5555
Home directory: /home/aduser2
6. [root@ipaclient02 ~]# id aduser1.in
uid=10002(aduser1.in) gid=111112(adgroup1.in) groups=111112(adgroup1.in)
7. [root@ipaclient02 ~]# id aduser1.in
uid=10002(aduser1.in) gid=111112(adgroup1.in) groups=111112(adgroup1.in)
8. [root@ipaclient02 ~]# getent group adgroup1.in
adgroup1.in:*:111112:aduser1.in,aduser2.in
[root@ipaclient02 ~]# getent group adgroup1
adgroup1:*:30014:
9. service sssd restart
10. [root@ipaclient02 ~]# getent group adgroup1.in
adgroup1.in:*:111112:aduser1.in,aduser2.in
[root@ipaclient02 ~]# id aduser1.in
uid=10002(aduser1.in) gid=111112(adgroup1.in) groups=111112(adgroup1.in)
[root@ipaclient02 ~]# getent group adgroup1
adgroup1:*:30014:
In step 1 and2 you create new override objects but do not specific and values to override, in the original report the GID is overridden with a new one.
The idea is that both 'getent group' and 'id' will always show the override value instead of the original GID independent of the state of the cache.
Verified using RHEL 7.2 and Windows 2008
sssd-1.13.0-39.el7.x86_64
ipa-server-trust-ad-4.2.0-13.el7.x86_64
ipa-server-dns-4.2.0-13.el7.x86_64
ipa-server-4.2.0-13.el7.x86_64
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/RHSA-2015-2355.html