Hi ... I've been trying for some time now to allow offline logging in my pc which connects to a LDAP server. I've configured my nsswitch.conf like so: passwd: cache files ldap #compat group: cache files ldap #compat shadow: cache files ldap #compat hosts: cache files mdns4_minimal [NOTFOUND=return] dns mdns4 networks: cache files protocols: db files services: cache db files ethers: db files rpc: db files netgroup: nis My nscd daemon is also configured to hold it's cache for a long period of time. When I reboot my machine I cannot login as an LDAP user eventhough the nscd is running ( using the $id <user> command ). I'm simulating an offline environment shutting down the ethernet link so there's no connection with the ldap server and to test if the nsswitch mechanism works. Unfortunately it doesn't. Checking the /var/log/auth.log when I try to login as an LDAP user I see messages of nss_ldap trying to locate the ldap server, and ignoring my cache. Can anyone help me ?? Thanks ...
Hello, Am 30.09.2011 um 16:00 schrieb Teratux:> My nscd daemon is also configured to hold it's cache for a long period of time. > When I reboot my machine I cannot login ...reboot == restart of nscd == empty cache, if I'm not mistaken. If nscd has a persistent storage for cache entries, that would be news to me. IIRC it uses only memory. HTH, Patrick -- punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 info@punkt.de http://www.punkt.de Gf: J?rgen Egeling AG Mannheim 108285
Bump ... anyone ?? On 09/30/2011 10:00 AM, Teratux wrote:> Hi ... I've been trying for some time now to allow offline logging in > my pc which connects to a LDAP server. I've configured my > nsswitch.conf like so: > > passwd: cache files ldap #compat > group: cache files ldap #compat > shadow: cache files ldap #compat > > hosts: cache files mdns4_minimal [NOTFOUND=return] dns mdns4 > networks: cache files > > protocols: db files > services: cache db files > ethers: db files > rpc: db files > > netgroup: nis > > My nscd daemon is also configured to hold it's cache for a long period > of time. When I reboot my machine I cannot login as an LDAP user > eventhough the nscd is running ( using the $id <user> command ). I'm > simulating an offline environment shutting down the ethernet link so > there's no connection with the ldap server and to test if the nsswitch > mechanism works. Unfortunately it doesn't. Checking the > /var/log/auth.log when I try to login as an LDAP user I see messages > of nss_ldap trying to locate the ldap server, and ignoring my cache. > > Can anyone help me ?? > > Thanks ...La causa de Gerardo, Ramon, Antonio, Fernando y Rene es la causa irrenunciable de la nacion cubana http://www.antiterroristas.cu http://justiciaparaloscinco.blogspot.com