Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Oct 2011 10:28:59 -0700
From:      Ted Faber <faber@isi.edu>
To:        freebsd-stable@freebsd.org
Subject:   nscd and passwd_compat
Message-ID:  <20111005172859.GA19064@vim.isi.edu>

next in thread | raw e-mail | index | archive | help

--b5gNqxB1S1yM7hjW
Content-Type: multipart/mixed; boundary="G4iJoqBmSsgzjUCe"
Content-Disposition: inline


--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

After the recent discussion of nscd here, I turned it on and after
fooling with various configuration files I think I have it up, but I'm
getting a warning(?) message from many programs when they call
_nsdispatch:

dbus[3037]: NSSWITCH(_nsdispatch): cache, passwd_compat, getpwnam_r, not
found, and no fallback provided
dbus[3037]: NSSWITCH(_nsdispatch): cache, passwd_compat, getpwnam_r, not
found, and no fallback provided

I am using passwd_compat, and I think I have nscd compiled to cahce it
and passwd, but the message gives me pause.  Everything is still
resolving, but I'm wondering if I'm getting any benefit.=20

I tried running nscd with debugging messages (-t -s -d) and didn't see
anything change when another program generated the message.

I've attached my /etc/nsswitch.conf and /etc/nscd.conf

Any feedback would be great.


--=20
Ted Faber
http://www.isi.edu/~faber           PGP: http://www.isi.edu/~faber/pubkeys.=
asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#=
SIG

--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nsswitch.conf"

#
# nsswitch.conf(5) - name service switch configuration file
# $FreeBSD: src/etc/nsswitch.conf,v 1.1.10.1 2009/08/03 08:13:06 kensmith Exp $
#
group: compat
group_compat: cache nis
hosts: files dns
networks: files
passwd: compat
passwd_compat: cache nis
shells: files
services: compat
services_compat: cache nis
protocols: files
rpc: files

--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nscd.conf"

#
# Default caching daemon configuration file
# $FreeBSD: src/etc/nscd.conf,v 1.2.4.1 2009/08/03 08:13:06 kensmith Exp $
#

enable-cache passwd yes
enable-cache passwd_compat yes
enable-cache group yes
enable-cache group_compat yes
enable-cache hosts yes
enable-cache services yes
enable-cache services_compat yes
enable-cache protocols yes
enable-cache rpc yes
enable-cache networks yes

--G4iJoqBmSsgzjUCe--

--b5gNqxB1S1yM7hjW
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAk6Mk9sACgkQaUz3f+Zf+Xud0wCfYPu6Ak4/kXt6Vt6Vild9f7F1
7NwAoMNUSkvvMxnqdtOLZSsJxrzIzlYP
=I+Tp
-----END PGP SIGNATURE-----

--b5gNqxB1S1yM7hjW--



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