-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50316 from arianvp/fix-dynamic-user
Disable nscd caching
- Loading branch information
Showing
5 changed files
with
93 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,52 @@ | ||
# We basically use nscd as a proxy for forwarding nss requests to appropriate | ||
# nss modules, as we run nscd with LD_LIBRARY_PATH set to the directory | ||
# containing all such modules | ||
# Note that we can not use `enable-cache no` As this will actually cause nscd | ||
# to just reject the nss requests it receives, which then causes glibc to | ||
# fallback to trying to handle the request by itself. Which won't work as glibc | ||
# is not aware of the path in which the nss modules live. As a workaround, we | ||
# have `enable-cache yes` with an explicit ttl of 0 | ||
server-user nscd | ||
threads 1 | ||
paranoia no | ||
debug-level 0 | ||
|
||
enable-cache passwd yes | ||
positive-time-to-live passwd 600 | ||
negative-time-to-live passwd 20 | ||
positive-time-to-live passwd 0 | ||
negative-time-to-live passwd 0 | ||
suggested-size passwd 211 | ||
check-files passwd yes | ||
persistent passwd no | ||
shared passwd yes | ||
|
||
enable-cache group yes | ||
positive-time-to-live group 3600 | ||
negative-time-to-live group 60 | ||
positive-time-to-live group 0 | ||
negative-time-to-live group 0 | ||
suggested-size group 211 | ||
check-files group yes | ||
persistent group no | ||
shared group yes | ||
|
||
enable-cache netgroup yes | ||
positive-time-to-live netgroup 0 | ||
negative-time-to-live netgroup 0 | ||
suggested-size netgroup 211 | ||
check-files netgroup yes | ||
persistent netgroup no | ||
shared netgroup yes | ||
|
||
enable-cache hosts yes | ||
positive-time-to-live hosts 600 | ||
negative-time-to-live hosts 5 | ||
negative-time-to-live hosts 0 | ||
suggested-size hosts 211 | ||
check-files hosts yes | ||
persistent hosts no | ||
shared hosts yes | ||
|
||
enable-cache services yes | ||
positive-time-to-live services 0 | ||
negative-time-to-live services 0 | ||
suggested-size services 211 | ||
check-files services yes | ||
persistent services no | ||
shared services yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters