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 2164805 - man page entry should make clear that a nested group needs a name
Summary: man page entry should make clear that a nested group needs a name
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: 8.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: jstephen
QA Contact: Anuj Borah
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-26 14:33 UTC by Ondrej
Modified: 2023-11-14 18:08 UTC (History)
5 users (show)

Fixed In Version: sssd-2.9.0-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2164852 (view as bug list)
Environment:
Last Closed: 2023-11-14 15:49:57 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 6544 0 None open AD: Nested group processing can fail or return invalid members (security issue) 2023-02-02 14:48:45 UTC
Red Hat Issue Tracker RHELPLAN-146563 0 None None None 2023-01-26 14:37:12 UTC
Red Hat Issue Tracker SSSD-5553 0 None None None 2023-01-27 11:49:10 UTC
Red Hat Product Errata RHBA-2023:7127 0 None None None 2023-11-14 15:50:22 UTC

Description Ondrej 2023-01-26 14:33:51 UTC
Description of problem:
[root@slsrvmongr-01v ~]# getent group acacia
acacia:*:11030:
[root@slsrvmongr-01v ~]# id -a ovalouse
uid=62133(ovalouse) gid=27263 groups=27263,11030(acacia),1000(admins),12167(adesto2dialog)

- first command suggests group acacia is empty
- second suggests user 'ovalouse' is member

The problem does not occur for direct group members, only for indirect (i.e. "acacia" group has a member different group where "ovalouse" is member of).


Version-Release number of selected component (if applicable):
2.5.2

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
id -a <username> and getent group <group> provide coherent output

Additional info:
getent <group> is missing nested members

Comment 1 Sumit Bose 2023-01-26 16:44:01 UTC
Hi,

can you share your sssd.conf and how deeply nested the group is, i.e. how many groups are between the user and the acacia group.

bye,
Sumit

Comment 2 Ondrej 2023-01-26 16:54:52 UTC
See bug #2164852 - both machines share the same config. RHEL-9 behaves slightly differently, but still does not work
There is one nested group between the acacia and the user.

Comment 3 Sumit Bose 2023-01-27 11:46:30 UTC
Hi,

the reason for the issue was a missing group name, see https://bugzilla.redhat.com/show_bug.cgi?id=2164852 for details.

A man page entry should make clear that a nested group needs a name but is not required to be a POSIX group, i.e. a GID is not required.

bye,
Sumit

Comment 4 Alexey Tikhonov 2023-02-03 17:16:36 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/6562

Comment 5 Alexey Tikhonov 2023-02-09 13:28:49 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6562

* `master`
    * 4138b0a732d30ef1eec7380e73e817e3d86e704d - MAN: ldap_group_name enhancement with nested groups

Comment 11 errata-xmlrpc 2023-11-14 15:49:57 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 (sssd bug fix and enhancement update), 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/RHBA-2023:7127


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