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 1161741 - TokenGroups for LDAP provider breaks in corner cases
Summary: TokenGroups for LDAP provider breaks in corner cases
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: SSSD Maintainers
QA Contact: Kaushik Banerjee
URL:
Whiteboard:
Depends On: 1160713
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-07 18:23 UTC by Jakub Hrozek
Modified: 2020-05-04 10:42 UTC (History)
10 users (show)

Fixed In Version: sssd-1.12.2-16.el7
Doc Type: Bug Fix
Doc Text:
Cause: SSSD in rhel-6.6 enabled the tokenGroups performance enhancement for all setups. The tokenGroups attribute contains all the groups the user is a member of, as if the client was a windows machine. Consequence: Unless the SSSD client uses id_provider=ad, some of the group SIDs returned from the tokenGroups attribute might be impossible to map, resulting in failures during the initgroups operation. A user-visible result was that not all groups were displayed in the "id" output and the user might be denied access to the system or to some files based on group membership. Fix: The tokenGroups support was disabled unless the id_provider is set to "ad". Result: The group membership of users is reported correctly, allowing access to the system and to the files.
Clone Of: 1160713
Environment:
Last Closed: 2015-03-05 10:34:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 3525 0 None None None 2020-05-04 10:42:40 UTC
Red Hat Product Errata RHBA-2015:0441 0 normal SHIPPED_LIVE sssd bug fix and enhancement update 2015-03-05 15:05:27 UTC

Description Jakub Hrozek 2014-11-07 18:23:40 UTC
+++ This bug was initially created as a clone of Bug #1160713 +++

This bug is created as a clone of upstream ticket:
https://fedorahosted.org/sssd/ticket/2483

We tried to speed up processing of initgroup lookups with tokenGroups even for the LDAP provider, but it turns out that there are too many corner cases that we didn't catch during development that break. For instance, groups from other trusted domains might appear in TG and the LDAP provider isn't equipped to handle them.

Overall, users who wish to use the added speed benefits of tokenGroups are advised to use the AD provider.

--- Additional comment from Jakub Hrozek on 2014-11-05 09:31:56 EST ---

To work around this issue, disable the tokenGroups optimization to fall back to plain LDAP lookups:
ldap_use_tokengroups = False

Comment 3 Jakub Hrozek 2014-11-12 16:58:34 UTC
* master: 5febf5ed0cfb4ba7665d8c3e36ee6941988da773
* sssd-1-11: 6037341d6d77dc61b11d3d23944c615a96713353

Comment 5 Jakub Hrozek 2014-11-12 17:42:02 UTC
Please let me know if RHEL-7 test builds are needed, I can build those on-demand. For RHEL-6 test builds, see https://bugzilla.redhat.com/show_bug.cgi?id=1160713#c5

Comment 7 Kaushik Banerjee 2014-12-03 16:48:19 UTC
Verified in version sssd-1.12.2-28.el7

Snippet of output from beaker automation run:
:: [   PASS   ] :: Command 'id lkuser01-817348 | grep lkgroup01-817348 | grep lkgroup011-817348' (Expected 0, got 0)
:: [   PASS   ] :: Command 'id -g lkuser01-817348 | grep 10817348' (Expected 0, got 0)
:: [   PASS   ] :: Command 'su_success lkuser01-817348 Secret123' (Expected 0, got 0)

Comment 9 errata-xmlrpc 2015-03-05 10:34:07 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://rhn.redhat.com/errata/RHBA-2015-0441.html


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