Bug 963908 - glibc: [RFE] provide an nscd option to only cache results from a certain services
Summary: glibc: [RFE] provide an nscd option to only cache results from a certain serv...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: glibc team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-16 18:41 UTC by Jakub Hrozek
Modified: 2019-09-10 13:53 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-10 13:53:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 24990 0 None None None 2019-09-10 13:53:06 UTC

Description Jakub Hrozek 2013-05-16 18:41:22 UTC
Description of problem:
Currently the nscd can cache results per database (passwd, group, ...) but not per source.

It would be beneficial if it was possible to allow the nscd to only cache results from one database. In particular, it would help the case where the administrator would rely on caching mechanism of the other database source completely.

A real-world example is a machine that is configured using "files sss" as the sources. The SSSD can cache results of initgroups operation for identity lookups (think id $user from shell) but always reads the initgroups data from the remote server during login to provide accurate access control data. Therefore enabling nscd globally for all lookups is not a good choice.

On the other hand, caching lookups from files does bring a reasonable speed benefit as /etc/passwd does not have to be read every time. So in the ideal case, nscd could be configured to cache lookups from the "files" database while allowing the libc interface call like getpwnam to always reach the "sss" module and let it decide about caching.

Comment 1 Florian Weimer 2019-09-10 13:53:07 UTC
The initgroups use case has been covered by sss caching files directly.

The remaining enhancement request is tracked upstream here: https://sourceware.org/bugzilla/show_bug.cgi?id=24990


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