From owner-freebsd-stable@FreeBSD.ORG Fri Sep 30 15:01:03 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CF58106564A for ; Fri, 30 Sep 2011 15:01:03 +0000 (UTC) (envelope-from raespi@uci.cu) Received: from mx3.uci.cu (mx3.uci.cu [200.55.140.180]) by mx1.freebsd.org (Postfix) with SMTP id A77DA8FC15 for ; Fri, 30 Sep 2011 15:01:00 +0000 (UTC) Received: (qmail 20774 invoked by uid 507); 30 Sep 2011 14:00:57 -0000 Received: from 10.0.0.185 by ns3.uci.cu (envelope-from , uid 501) with qmail-scanner-2.01st (avp: 5.0.2.0. spamassassin: 3.0.6. perlscan: 2.01st. Clear:RC:1(10.0.0.185):. Processed in 0.023195 secs); 30 Sep 2011 14:00:57 -0000 Received: from unknown (HELO ucimail4.uci.cu) (10.0.0.185) by 0 with SMTP; 30 Sep 2011 14:00:57 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by ucimail4.uci.cu (Postfix) with ESMTP id B0D221324520 for ; Fri, 30 Sep 2011 10:00:56 -0400 (CDT) X-Virus-Scanned: amavisd-new at uci.cu Received: from ucimail4.uci.cu ([127.0.0.1]) by localhost (ucimail4.uci.cu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jZaujKK2nzUv; Fri, 30 Sep 2011 10:00:56 -0400 (CDT) Received: from [10.7.20.2] (unknown [10.7.20.2]) by ucimail4.uci.cu (Postfix) with ESMTP id 473511324522 for ; Fri, 30 Sep 2011 10:00:56 -0400 (CDT) Message-ID: <4E85CB98.7040904@uci.cu> Date: Fri, 30 Sep 2011 10:00:56 -0400 From: Teratux User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: nsswitch problem ... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 15:01:03 -0000 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 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 ...