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.
Description of problem:
When user requests a netgroup that does not exist, nss-pam-ldapd returns an empty netgroup.
Version-Release number of selected component (if applicable):
0.7.5-15
How reproducible:
always
Steps to Reproduce:
1. getent netgroup -s ldap thereisnosuchnetgroup
Actual results:
thereisnosuchgroup
(denoting an empty netgroup)
Expected results:
nothing should be returned
Additional info:
Glibc (and sssd, for that matter), work fine:
getent netgroup -s files thereisnosuchnetgroup
<blank>
This is a known issue that is rather difficult to address. It stems from the fact that the NSS interface for netgroups is a bit weird. The request to nslcd is also a bit different from the rest.
The nslcd protocol currently cannot distinguish between an empty netgroup and a non-existing one. For this to be possible to the protocol needs to be changed.
That being said I don't think there should be many practical differences between an empty netgroup and a non-existing one.
(In reply to comment #2)
> This is a known issue that is rather difficult to address. It stems from the
> fact that the NSS interface for netgroups is a bit weird. The request to nslcd
> is also a bit different from the rest.
>
> The nslcd protocol currently cannot distinguish between an empty netgroup and a
> non-existing one. For this to be possible to the protocol needs to be changed.
>
> That being said I don't think there should be many practical differences
> between an empty netgroup and a non-existing one.
Thank you for chiming in, Arthur.
It sounds like a fix would be invasive, moreover this issue has only been found during testing, it hasn't been reported in production.
I'd still prefer to keep this bugzilla open for tracking purposes.
Comment 4RHEL Program Management
2012-07-10 08:16:20 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.
Comment 5RHEL Program Management
2012-07-11 01:43:16 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.
Comment 6RHEL Program Management
2012-07-18 14:06:16 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.
FYI: the required protocol change has been made in the 0.9.0 release because backwards-incompatible changes were required anyway. The setnetgrent() function should now return an error for non-existing netgroups.
Note that 0.9.0 is a development release and not recommended for production.