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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content