Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Sep 2000 15:14:31 -0500
From:      "Jacques A. Vidrine" <n@nectar.com>
To:        current@freebsd.org
Subject:   HEADS UP: nsswitch meets current
Message-ID:  <20000906151431.A26152@hamlet.nectar.com>

next in thread | raw e-mail | index | archive | help
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 <ume@FreeBSD.org>'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 <lukem@netbsd.org> 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




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