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 2062689 - [Improvement] Add user and group version of sss_nss_getorigbyname()
Summary: [Improvement] Add user and group version of sss_nss_getorigbyname()
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Sumit Bose
QA Contact: shridhar
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks: 2062379
TreeView+ depends on / blocked
 
Reported: 2022-03-10 11:28 UTC by Sumit Bose
Modified: 2022-11-08 12:41 UTC (History)
9 users (show)

Fixed In Version: sssd-2.7.0-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-08 10:51:22 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 6042 0 None open Add user and group version of sss_nss_getorigbyname() 2022-03-10 11:31:51 UTC
Red Hat Issue Tracker RHELPLAN-115178 0 None None None 2022-03-10 11:36:28 UTC
Red Hat Issue Tracker SSSD-4385 0 None None None 2022-03-10 12:25:16 UTC
Red Hat Product Errata RHBA-2022:7739 0 None None None 2022-11-08 10:51:43 UTC

Description Sumit Bose 2022-03-10 11:28:42 UTC
Description of problem:
For all user and group related calls in libsss_nss_idmap it is possible the indicate if the given argument should related to a user or a group. The only exception is sss_nss_getorigbyname() which might cause issues since in POSIX the user and group namespaces are separate and it is possible that there is a group with the same name as the user and this group is not a user-private group and should be handled as independent object.

Adding sss_nss_getorigbyusername() and sss_nss_getorigbygroupname() similar to e.g. sss_nss_getsidbyuid() and sss_nss_getsidbygid(), should be the straight forward solution.

There is already https://bugzilla.redhat.com/show_bug.cgi?id=2062379 so that that IPA extdom plugin can make use of the new calls if available.

Comment 1 Alexey Tikhonov 2022-03-10 12:03:54 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/6043

Comment 4 Alexey Tikhonov 2022-03-17 11:05:39 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6043

* `master`
    * 9c5632dfaf67d538727b258f0f4971cf6a7e52c0 - nss: add sss_nss_getorigbyusername and sss_nss_getorigbygroupname

Comment 15 errata-xmlrpc 2022-11-08 10:51:22 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-2022:7739


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