From owner-freebsd-stable@FreeBSD.ORG Tue Oct 4 19:42:29 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 AC7CC1065674 for ; Tue, 4 Oct 2011 19:42:29 +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 AA88E8FC12 for ; Tue, 4 Oct 2011 19:42:26 +0000 (UTC) Received: (qmail 19737 invoked by uid 507); 4 Oct 2011 19:42:21 -0000 Received: from 10.0.0.183 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.183):. Processed in 0.623291 secs); 04 Oct 2011 19:42:21 -0000 Received: from unknown (HELO ucimail2.uci.cu) (10.0.0.183) by 0 with SMTP; 4 Oct 2011 19:42:20 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by ucimail2.uci.cu (Postfix) with ESMTP id 415F5C50035 for ; Tue, 4 Oct 2011 15:44:29 -0400 (CDT) X-Quarantine-ID: <04kFDXMM2+uX> X-Virus-Scanned: amavisd-new at uci.cu X-Amavis-Alert: BAD HEADER, Improper folded header field made up entirely of whitespace (char 20 hex): Content-Transfer-Encoding: 7bit\n \n Received: from ucimail2.uci.cu ([127.0.0.1]) by localhost (ucimail2.uci.cu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04kFDXMM2+uX; Tue, 4 Oct 2011 15:44:29 -0400 (CDT) Received: by ucimail2.uci.cu (Postfix, from userid 102) id F40C4C50039; Tue, 4 Oct 2011 15:44:28 -0400 (CDT) Received: from [10.7.20.2] (unknown [10.7.20.2]) (Authenticated sender: raespi@uci.cu) by ucimail2.uci.cu (Postfix) with ESMTP id EB2BEC50035 for ; Tue, 4 Oct 2011 15:44:28 -0400 (CDT) Message-ID: <4E8B6199.8090803@uci.cu> Date: Tue, 04 Oct 2011 15:42:17 -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 References: <4E85CB98.7040904@uci.cu> In-Reply-To: <4E85CB98.7040904@uci.cu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: 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: Tue, 04 Oct 2011 19:42:29 -0000 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 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