From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 4 18:56:39 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96A7F1065675 for ; Tue, 4 Oct 2011 18:56:39 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 57E758FC1B for ; Tue, 4 Oct 2011 18:56:39 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 712C31FFC36; Tue, 4 Oct 2011 18:56:38 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 4304B845E2; Tue, 4 Oct 2011 20:56:38 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Samuel =?utf-8?Q?Mart=C3=ADn?= Moro References: <86sjn84wco.fsf@ds4.des.no> Date: Tue, 04 Oct 2011 20:56:38 +0200 In-Reply-To: ("Samuel =?utf-8?Q?Mart=C3=ADn?= Moro"'s message of "Tue, 4 Oct 2011 20:23:25 +0200") Message-ID: <86botw4mc9.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: Does anyone use nscd? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2011 18:56:39 -0000 Samuel Mart=C3=ADn Moro writes: > Using it since a few, almost without any problem. Just one thing: > while connected to some external intranet, nscd still try to contact > my LDAP. Well, by default, nscd caches hits for an hour and misses for a minute. One could imagine an option to have nscd return the cached entry if it can't contact the server, even if it has technically expired, but the problem is that nscd doesn't know what the backend is and can't reliably tell whether the lookup failed because the server is unreachable or just because the entry does not exist; and even if it could, it would still have to query the backend every time, so you might still get a longish timeout for every lookup, depending on the type of backend and the reason it failed. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no