Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Aug 2010 01:53:00 +0300
From:      "Andri Piik" <andri.piik@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   nscd perform-actual-lookups not working
Message-ID:  <op.vg1gill3yz1all@nook>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.vg1gill3yz1all>