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.

Bug 2164805

Summary: man page entry should make clear that a nested group needs a name
Product: Red Hat Enterprise Linux 8 Reporter: Ondrej <ondrej.valousek.xm>
Component: sssdAssignee: jstephen
Status: CLOSED ERRATA QA Contact: Anuj Borah <aborah>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.5CC: aborah, atikhono, pbrezina, sbose, sgadekar
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: sssd-2.9.0-2.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2164852 (view as bug list) Environment:
Last Closed: 2023-11-14 15:49:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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