Bug#485282: nscd: Change default cache setting to work better with roaming laptops
found 485282 2.10.2-6
tag 485282 + patch
user debian-edu@lists.debian.org
usertags 485282 + debian-edu
As described earlier, for nscd to work properly with laptops using a
remote directory service like LDAP, the nscd cache values need to be
tuned a bit.
Based on the recipe available from
<URL:http://www.flyn.org/laptopldap/>, it is possible to configure
nscd to work while offline by allowing it to cache values longer, and
to not require a reload when a value has been used for a few times.
To allow disconnected operations to be working out of the box in
Debian by installing the libpam-ccreds and nscd packages, I propose to
apply this change to the default nscd.conf settings. The
positive-time-to-live value is 30 days in seconds.
--- a/nscd.conf
+++ b/nscd.conf
@@ -36,12 +36,12 @@
# server-user nobody
# stat-user somebody
debug-level 0
-# reload-count 5
+ reload-count unlimited
paranoia no
# restart-interval 3600
enable-cache passwd yes
- positive-time-to-live passwd 600
+ positive-time-to-live passwd 2592000
negative-time-to-live passwd 20
suggested-size passwd 211
check-files passwd yes
@@ -51,7 +51,7 @@
auto-propagate passwd yes
enable-cache group yes
- positive-time-to-live group 3600
+ positive-time-to-live group 2592000
negative-time-to-live group 60
suggested-size group 211
check-files group yes
@@ -72,7 +72,7 @@
max-db-size hosts 33554432
enable-cache services yes
- positive-time-to-live services 28800
+ positive-time-to-live services 2592000
negative-time-to-live services 20
suggested-size services 211
check-files services yes
Happy hacking,
--
Petter Reinholdtsen
Reply to: