From owner-freebsd-current Wed Sep 6 13:14:35 2000 Delivered-To: freebsd-current@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id E6DEB37B423 for ; Wed, 6 Sep 2000 13:14:32 -0700 (PDT) Received: from hamlet.nectar.com (hamlet.nectar.com [10.0.1.102]) by gw.nectar.com (Postfix) with ESMTP id D224E1925A for ; Wed, 6 Sep 2000 15:14:31 -0500 (CDT) Received: (from nectar@localhost) by hamlet.nectar.com (8.9.3/8.9.3) id PAA29205 for current@freebsd.org; Wed, 6 Sep 2000 15:14:31 -0500 (CDT) (envelope-from nectar@spawn.nectar.com) Date: Wed, 6 Sep 2000 15:14:31 -0500 From: "Jacques A. Vidrine" To: current@freebsd.org Subject: HEADS UP: nsswitch meets current Message-ID: <20000906151431.A26152@hamlet.nectar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Url: http://www.nectar.com/ Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG HEADS UP: nsswitch meets current Hello, I have just commited nsswitch support to FreeBSD-current. The code is based on NetBSD 1.4.2's nsswitch and I attempted to keep the implementations as close as possible. By creating an /etc/nsswitch.conf file, you can configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. To summarize, = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr As a side effect, by Hajimu UMEMOTO 's suggestion (thanks!), the default for the resolver is now files, then dns. This is different than the traditional default of dns, then files. HOWEVER, note that since November 1998 we have installed a default host.conf that causes lookup to be files, then dns anyway. = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. See also hesiod.conf(5) and nsswitch.conf(5). Thanks to Luke Mewburn for writing this freely distributable name-service switch implementation for the NetBSD Project. Thanks to those who sent in reports/suggestions/patches! Note that patches adding this support to 4.1-RELEASE and 4.1-STABLE are available at http://www.nectar.com/freebsd/nsswitch, as well as the patches that have been committed to -CURRENT. -- Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message