*BSD News Article 63444


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!news.ksu.ksu.edu!news.mid.net!newsfeeder.gi.net!newsfeed.internetmci.com!in2.uu.net!loach.org!albion.loach.org!alexei
From: alexei@albion.loach.org (Alexei Nikolaevich Romanov)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: NIS EVIL!
Date: 29 Feb 1996 00:41:09 -0000
Organization: TLO (Botia in Motion)
Lines: 63
Message-ID: <alexei.825554455@albion.loach.org>
NNTP-Posting-Host: albion.org
X-Newsreader: NN version 6.5.0 #1 (NOV)


Hallo, there!

	I have a fairly straightforward problem, and a fairly straightforward
need.  I'm working on getting a _tiny_ NIS network up and running on my local
area network, at home, in preparation for eventual bigger, and better things.
The problem is a simple one, however.  There is _NO_ _DOCUMENTATION_ really,
on setting up such services on a FreeBSD box, and the implementation of NIS
is pretty dissimilar from the industry standard (whither goest ypinit? :).
I need basic, simple, straightforward instructions on getting YP to actually
_function_ on my machine.
	By way of background, I'm running FreeBSD 2.1.0-RELEASE/STABLE;  there
is a small amount of code admixture taking place.  The NIS server, the machine
from which I'm posting, I also want to act as a client to its own YP data.  
There are also two other clients, one a FreeBSD client, the other, a NeXT.
I'm not worried about the NeXT.  Once I've gotten past the obstacles ahead,
then I can tackle it last, and on my own, since I know NeXT YP very well.
The problem is in FreeBSD's stuff;  I've set up the Makefile for my domain,
which I've duly named, and designated.  I've started ypbind, and ypserv on 
the central machine, and ypbind on the client.  The results I'm getting are
mixed, though.  Sometimes a password change will work.  Sometimes it will not.
Also, apparently random users aren't recognized by the YP map, though they were
made from the same password file.  Here is the relevant set of sections from
/etc/sysconfig, for YP setup:


#!/bin/sh
#

# This is sysconfig - a file full of useful variables that you can set 
# to change the default startup behavior of your system.
#
#	$Id: sysconfig,v 1.14.4.5 1995/09/19 12:09:03 jkh Exp $


######################### Start Of Netconfig Section #######################

# Set to the NIS domainname of your host, or NO if none
defaultdomainname=loach

# Set to appropriate flags if you want to start NIS for a client
nis_clientflags=""

# Set to host to ypset to if you need to do that
nis_ypsetflags="albion.loach.org"

# Set to appropriate flags if you want to start NIS for a server
nis_serverflags="-dns -k"

# Set to appropriate flags for yppasswdd, if you wish to run it.
# Typical flags might be "-m /var/yp/master.passwd -s -f"
yppasswddflags="-m /var/yp/master.passwd -s -f"
#yppasswddflags="NO"

I'm at a loss as to what else to include;  I have this to offer, however:
If someone will help me through this (or lots of them! ;), and I can
get it working with said help, or even if I dumb-luck through it alone, I
_could_ write the YP-related section of the handbook, and would at least 
send my findings in SGML form to the maintainer to attempt to incorporate.
I'm desperate enough to get these weird, niggling problems fixed to actually
_contribute_, this time. :) Someone, please, please help! :)

	--Alyosha :) (Who's only exaggerating a little, really. ;)