From owner-freebsd-questions@FreeBSD.ORG Fri Aug 6 23:17:44 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B022A1065673 for ; Fri, 6 Aug 2010 23:17:44 +0000 (UTC) (envelope-from andri.piik@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4167D8FC1A for ; Fri, 6 Aug 2010 23:17:43 +0000 (UTC) Received: by ewy26 with SMTP id 26so3467320ewy.13 for ; Fri, 06 Aug 2010 16:17:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:to:date:subject :mime-version:content-transfer-encoding:from:message-id:user-agent; bh=TRhxhTEHo0u6n0QQjk/EAWdbZzYnlS6IPDJu3YZgnAU=; b=UUZcfkJSF+PAVw5um4TwJX7bRLiorPkcKtjV6JG6/GEFpj0UwceHct7xOpkWW9vWp2 CTHv2bCCx7RN6PCQaFu0nPyZWjj6LMqoBXRA2KSTa918hQv162kqrt3VFl22XXIo6Jsu C1Ln3tKyGN60ZjAFANhYhFWpLIlWXjO3WrmTA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:to:date:subject:mime-version:content-transfer-encoding :from:message-id:user-agent; b=v7esofsCce9YmNQm9mlufmj4LZbYRMPh598LpK1MOi1WC6339clORjnfV8O6nzOXYi NCrLSYR3WxYHvqUf26nl7AoOoeKTNdLAY2XvFnuNdasaWMaridyvHhVlzTEm43rJvvY+ b/vFP95Sqh3kukC3/+cSPn7tPRCZuzJzYIzzg= Received: by 10.213.10.195 with SMTP id q3mr9270518ebq.29.1281135193930; Fri, 06 Aug 2010 15:53:13 -0700 (PDT) Received: from nook (88-196-197-105-dsl.krw.estpak.ee [88.196.197.105]) by mx.google.com with ESMTPS id u9sm3149819eeh.11.2010.08.06.15.53.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 06 Aug 2010 15:53:13 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-questions@freebsd.org Date: Sat, 07 Aug 2010 01:53:00 +0300 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Andri Piik" Message-ID: User-Agent: Opera Mail/10.60 (Win32) Subject: nscd perform-actual-lookups not working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2010 23:17:44 -0000 Hi, Has anyone tried to use nss_ldap and nscd with perform-actual-lookups in nscd.conf? My problem is that when I try to getent passwd or getent group it seems like ldap query is not made and getent does not return ldap users. Without nscd cache in nsswitch.conf or disabling perform-actual-lookups everything works fine. My configuration is following - uname FreeBSD 8.1-RELEASE FreeBSD 8.1-RELEASE #0: root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 # # nsswitch.conf(5) - name service switch configuration file # $FreeBSD: src/etc/nsswitch.conf,v 1.1.10.1.4.1 2010/06/14 02:09:06 kensmith Exp $ # group: files cache ldap group_compat: nis hosts: files dns networks: files passwd: files cache ldap passwd_compat: nis shells: files services: compat services_compat: nis protocols: files rpc: files # # Default caching daemon configuration file # $FreeBSD: src/etc/nscd.conf,v 1.2.4.1.4.1 2010/06/14 02:09:06 kensmith Exp $ # enable-cache passwd yes perform-actual-lookups passwd yes enable-cache group yes perform-actual-lookups group yes #enable-cache hosts yes #enable-cache services no #perform-actual-lookups services yes #enable-cache protocols yes #enable-cache rpc yes #enable-cache networks yes Running nscd -nst outputs message when querying passwd. E3 from on_mp_read_session_response_write1: write failed Thanks in advance Andri Piik