I've configure nsswitch.conf to use ldap (via nss-pam-ldapd).
Configuration is working fine, but I want to avoid querying too much the ldap server, so I decided to use nscd for caching passwd/group lookup.
I used this simple configuration in nsswitch.conf (other entries are left unchanged), and nscd.conf is the installed default
The problem is that caching doesn't seems to be used at all (testing using
Configuration is working fine, but I want to avoid querying too much the ldap server, so I decided to use nscd for caching passwd/group lookup.
I used this simple configuration in nsswitch.conf (other entries are left unchanged), and nscd.conf is the installed default
Code:
group: cache files ldap
passwd: cache files ldap
The problem is that caching doesn't seems to be used at all (testing using
ls -al /home
):nslcd -d
show ldap request being performed for every testnscd -nst
show nothing (but the program initialisation)