Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2016 17:14:07 -0800
From:      Richard Feltstykket <rf@ucdavis.edu>
To:        freebsd-questions@freebsd.org
Subject:   Hesiod support bug?
Message-ID:  <20161215011407.GC18251@odinseye.genomecenter.ucdavis.edu>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hello list,

I'm in the process of trying to move a few dozen file servers to FreeBSD.  During this I've encountered something confusing with hesiod support.  I'm wondering if I should submit a PR for this:

If you install pkg you can install the hesiod utilities with:
 pkg install hesiod

Also, in the man page for nsswitch.conf it suggests that hesiod support is included by default with:
 dns     Internet Domain Name System.  “hosts” and ‘networks’ use IN class
         entries, all other databases use HS class (Hesiod) entries.

With a proper hesiod.conf file on a system installed from either a 10.3 or 11.0 release iso I get:
# hesinfo rf passwd
hesiod_resolve: hesiod name not found

getent also fails:
# getent passwd rf

So I did some spelunking about the FreeBSD source tree and compiled a custom iso, adding WITH_HESIOD=true to /etc/src.conf.  After installing from this media it functions properly:

# hesinfo rf passwd
rf:x:12345:12345:Richard Feltstykket:/home/rf:/bin/bash

# getent passwd rf
rf:x:12345:12345:Richard Feltstykket:/home/rf:/bin/bash

Is this a bug?

Thanks!
Richard

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJYUe5fAAoJEJO81r3fDHGUGQMH/iH8QVcpyGb2NRHB8M3OCazE
yT2Okc8d/5WgSyFegy/PWnWz4YPs1k81uQySZ15k7jfc42vH6Y4fA5C7KCZpeumR
od7JbDBVLUUqgLVLIFjkIKfpxODgM3WIs7YSWKoIDD3ii3kCukmGjbctJZUlLOqn
+Kg5xXrc2u457BO+a/pSvmlxn4bRmG80+cq88lJJ6EREc3fyLt/EY3mYGz/SJito
//7SCEq3BslUUXUZmPLgo8RLWeqjFtnRCGK3KibeDEL4RejRfQWWGRgZYZzWTO+M
5PT5zATvUANUZo1EuWYln/pBqAeIE2sjUXzNiPuEs58UW3J0Nx8jYP4qsB++P6s=
=s8e5
-----END PGP SIGNATURE-----
help

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