Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!fsa.ca!deraadt
From: deraadt@fsa.ca (Theo de Raadt)
Newsgroups: comp.os.386bsd.questions
Subject: Re: NetBSD 0.9 and ypbind to Sun: is it possible
Date: 28 Oct 93 14:35:51
Organization: little lizard city
Lines: 47
Message-ID: <DERAADT.93Oct28143551@newt.fsa.ca>
References: <1993Oct28.192736.20330@gandalf.ca>
NNTP-Posting-Host: newt.fsa.ca
In-reply-to: mike@gandalf.ca's message of Thu, 28 Oct 1993 19:27:36 GMT
In article <1993Oct28.192736.20330@gandalf.ca> mike@gandalf.ca (Mike Miscevic) writes:
> I couldn't help but notice NetBSD 0.9 has some NIS client support and
> would like to know just which map names it is supporting.
Currently it supports YP lookups in the "passwd", "group", and in the
"rpc" database. This means that getpw{ent,nam,...} and
getgr{ent,nam,...} and getrpc{ent,byname,...} will automatically look in
the YP databases. (aside: the YP lookups on the "rpc" database will go
away, leaving only the "passwd" and "group" databases accessable that
way.)
The ypclnt(3) library of routines is (hopefully!) 100% compatible with
Sun's library I think. It's possible to do lookups on any YP database
using yp_next() and friends, or using /usr/bin/ypcat. Manuals are
scarce, feel free to write them and send them to me.
There was a bug which might have been in NetBSD-0.9, that made
/bin/login dump core for some people. If you are brave or desperate,
get the NetBSD-current file "src/lib/libc/gen/getpwent.c" and
recompile your entire source tree.
> Also, ypbind is unable to talk to our domain, even through the use of
> a ypset command. The yp domain is being served by a SunOS 4.1.3 SPARC.
Works like a charm here. Note that 4.1.3 machines sometimes have those
"ypserv access control lists", ensure that your NetBSD box can
actually communicate with ypserv.
> I belive I've setup the normal yp client stuff but feel that I must be
> overlooking something - any help would be appreciated, even if it's
> just an acknowledgment that "YES, it works with SunOS 4.1.3 NIS masters"
Yes, it works with SunOS 4.1.3 YP masters. Make sure you use the proper
format "+"'s in /etc/passwd and /etc/group.
passwd:
+:*:0:0:::
group:
+:*:0:
(BTW: The code I wrote cannot really be called "NIS", it's not Sun's
code. They have not given me permission to call it "NIS". It also
cannot be called "Yellow Pages", as that is a copyright of British
Telecom. There's nothing to say it cannot be called "YP", so that's
what I call it. You might as well call it what I call it.)
--
This space not left unintentionally unblank. deraadt@fsa.ca