nscd netgroup cache search issue

Solution In Progress - Updated -

Issue

Since RHEL 6.5, netgroup caching is supported by nscd.
There is a bug in the way nscd handles netgroups domain names.
By default, when no domainname is set, the string "(none)" is returned by getdomainname(3).
This domainname value is then used as the domain parameter in the nis triple.
But nscd does not handle the "(none)" string, it's really using it to search for entries in its cache.

Workarounds:

Setting domainname to a null value instead of the default one:
root@host:~# domainname ""
root@host:~#

Disabling nscd netgroup caching:
"enable-cache netgroup yes" in /etc/nscd.conf

Environment

  • Red Hat Enterprise Linux 6.5
  • nscd-2.12-1.132.el6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.