[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/06: services: nscd: Enable ‘passwd’ and ‘group’ caches by default.
From: |
guix-commits |
Subject: |
06/06: services: nscd: Enable ‘passwd’ and ‘group’ caches by default. |
Date: |
Mon, 3 Jun 2024 17:29:59 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 85ac164c41fc4c93d3cb2a5d3321c63598c2855f
Author: Ludovic Courtès <ludovic.courtes@inria.fr>
AuthorDate: Thu May 16 22:50:22 2024 +0200
services: nscd: Enable ‘passwd’ and ‘group’ caches by default.
This allows users to specify NSS plugins such as LDAP via the
‘name-services’ field of <nscd-configuration>. Failing that, user code
will dlopen whatever passwd/group plugins are listed in
/etc/nsswitch.conf, which is likely to fail, typically because those are
not in $LD_LIBRARY_PATH.
* gnu/services/base.scm (%nscd-default-caches): Add ‘passwd’ and ‘group’
caches.
Change-Id: I9c03346a1de2710685f7801eccd2e08007427f5d
---
gnu/services/base.scm | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 984670cd32..5f69b68f79 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1340,7 +1340,22 @@ the tty to run, among other things."
(positive-time-to-live (* 3600 24))
(negative-time-to-live 3600)
(check-files? #t) ;check /etc/services changes
- (persistent? #t))))
+ (persistent? #t))
+
+ ;; Enable minimal caching of the user databases, not so much for
+ ;; caching but rather to allow that uses of NSS plugins like LDAP
+ ;; don't lead user processes to dlopen them (which is likely to fail
+ ;; due to them not being found in $LD_LIBRARY_PATH).
+ (nscd-cache (database 'passwd)
+ (positive-time-to-live 600)
+ (negative-time-to-live 20)
+ (check-files? #t) ;check /etc/passwd changes
+ (persistent? #f))
+ (nscd-cache (database 'group)
+ (positive-time-to-live 600)
+ (negative-time-to-live 20)
+ (check-files? #t) ;check /etc/group changes
+ (persistent? #f))))
(define-deprecated %nscd-default-configuration
#f
- branch master updated (2f56845b33 -> 85ac164c41), guix-commits, 2024/06/03
- 03/06: import: crate: Include a main verb in crate importer descriptions., guix-commits, 2024/06/03
- 02/06: import: crate: Beautify crate importer synopses., guix-commits, 2024/06/03
- 05/06: gnu: guile-gsl: Update to 0.0.1-2.d33de92., guix-commits, 2024/06/03
- 06/06: services: nscd: Enable ‘passwd’ and ‘group’ caches by default.,
guix-commits <=
- 04/06: import: utils: End package descriptions with period., guix-commits, 2024/06/03
- 01/06: style: Fix conversion of ‘unquote-splicing’ by ‘-S arguments’., guix-commits, 2024/06/03