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 is created as a clone of upstream ticket:
https://fedorahosted.org/sssd/ticket/2389
When I enable ldap_group_search_base to restrict to a subset of all groups with tokengroups enabled, it breaks spectacularly. Disable tokengroups, and it works or disable ldap_group_search_base and it works.
{{{
# service sssd stop;rm -f /var/lib/sss/{db,mc}/* /var/log/sssd/*;sleep 3;service sssd start;sleep 3;id user;id user;service sssd stop
Redirecting to /bin/systemctl stop sssd.service
Redirecting to /bin/systemctl start sssd.service
uid=12345(user) gid=513(Domain Users) groups=513(Domain Users)
id: user: no such user
}}}
Log includes:
{{{
[sdap_get_initgr_done] (0x4000): Initgroups done
[sdap_get_initgr_done] (0x4000): Error in initgroups: [2][No such file or directory]
}}}
Tested on git/master dfef1d050c35398c6061256a947b4cc9c1f4b8e6
tested with sssd-1.11.6-1.el6
subtreeuser user created in CN=Users,DC=sssdad,DC=com tree
and subtreegroup created in OU=subtree,DC=sssdad,DC=com tree
posix attributes added for user and group
subtreegroup added as subtreeuser's primary group
With the group search set to a subtree the initgroups error was observed.
id_provider = ldap
ldap_schema = ad
ldap_group_search_base = OU=subtree,DC=sssdad,DC=com
(Tue Sep 16 19:07:27 2014) [sssd[be[sssdad.com]]] [sdap_get_initgr_done] (0x4000): Initgroups done
(Tue Sep 16 19:07:27 2014) [sssd[be[sssdad.com]]] [sdap_get_initgr_done] (0x4000): Error in initgroups: [22][Invalid argument]
Disabled tokengroups and error is not observed in sssd-1.11.6-1.el6.
ldap_use_tokengroups = False
(Tue Sep 16 19:51:44 2014) [sssd[be[sssdad.com]]] [sdap_get_initgr_done] (0x4000): Initgroups done
sssd-1.11.6-30.el6 tested with default setting of ldap_use_tokengroups = True and no initgroups error observed.
(Tue Sep 16 19:58:26 2014) [sssd[be[sssdad.com]]] [sdap_get_initgr_done] (0x4000): Initgroups done
Will also add automation info shortly.
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.
http://rhn.redhat.com/errata/RHBA-2014-1375.html