*BSD News Article 41938


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!paladin.american.edu!gatech!howland.reston.ans.net!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul
From: wpaul@ctr.columbia.edu (Bill Paul)
Newsgroups: comp.os.386bsd.questions
Subject: Re: FreeBSD2.0R: is the NIS/yellow page (yp) out
Date: 31 Jan 1995 02:09:26 GMT
Organization: Columbia University Center for Telecommunications Research
Lines: 59
Message-ID: <3gk64m$6kg@sol.ctr.columbia.edu>
References: <3fr8e5$gk@kauss.rhein-main.de> <3g0os2$qke@agate.berkeley.edu> <3giff1$m1g@news.cs.tu-berlin.de>
NNTP-Posting-Host: startide.ctr.columbia.edu
X-Newsreader: TIN [version 1.2 PL2]

Daring to challenge the will of the almighty Leviam00se, Lars Hentschke (nuggets@cs.tu-berlin.de) had the courage to say:
: Jordan K. Hubbard (jkh@violet.berkeley.edu) wrote:
: : In article <3fr8e5$gk@kauss.rhein-main.de>,
: : Stephan Kauss <ska@kauss.rhein-main.de> wrote:
: : >Hi,
: : >
: : >is the NIS (Yellow Page) out there for FreeBSD 2.0.
: : >(not only the client (ypcat...)
: : >
: : >I need a Freebsd server with the full NIS functionality (YP master (ypinit)).

: : Bill Paul has an early release of this stuff out.  Take a look
: : on freefall.cdrom.com in the incoming directory.  I believe it's called
: : ypserv-*.

: No, there is nothing. 
: PLEASE, i need this too ...

Oh... Oh... Oh fudge. Alright, alright. I told Jordan I wouldn't have
this stuff ready by 2.1, but your heartfelt plea has moved me to, shall
we say, get off my lazy butt and finish the bloody package.

I've ported the NYS YP server version 0.11 (covered by the GPL) and
some of the YPS-0.21 YP tools (also GPL'ed) to FreeBSD. I also ported
the yppasswd-0.5 package. These are apparently all part of the NYS YP
package used with Linux. I've applied many hacks to get it all to
compile in FreeBSD and deal properly with FreeBSD's password system.
I also converted all of the tools to use the Berkeley DB database system
instead of GNU dbm. (Not that I'm opposed to GDBM, but shipping it with
FreeBSD when there's already a database library available is a little
silly.) I set things up to use the DB_HASH method just like the existing
password database tools.

The server can serve either a standard /etc/passwd-style map or a
master.passwd-style map, or both. There are some special hacks to
help keep the master.passwd database secure: normal users will only
be able to retrieve the standard passwd map, which won't have real
encrypted passwords in it (just line /etc/passwd in FreeBSD now).
Only the superuser will be able to retrieve the master.passwd map.
This means that all authentication programs will have to run with
root privileges, but they already do that anyway. You can still set
the system up to serve up insecure passwd maps for compatibility with
other NIS clients simply by editing /var/yp/Makefile.

Anyway, enough teasing. I have to clean up passwd/yppasswd a little
and it should be ready to go. I don't have a ypinit script written yet,
but anyone with experience in setting up NIS shoudln't have any
trouble getting it to work. Watch for it in 2.1.

-Bill

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~T~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Bill Paul            (212) 854-6020 | System Manager
Work:         wpaul@ctr.columbia.edu | Center for Telecommunications Research
Home:  wpaul@skynet.ctr.columbia.edu | Columbia University, New York City
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Møøse Illuminati: ignore it and be confused, or join it and be confusing!
~~~~~~~~ FreeBSD 2.1.0-Development #1: Fri Jan 20 14:28:17 EST 1995 ~~~~~~~~~