Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 1998 15:14:09 PDT
From:      "Jane Frodo" <jfrodo42@hotmail.com>
To:        dhw@whistle.com, FreeBSD-Questions@FreeBSD.ORG, jegelhof@cloud9.net
Subject:   NIS Troubles: Starting over...
Message-ID:  <19980920221410.709.qmail@hotmail.com>

next in thread | raw e-mail | index | archive | help
Hi all.
     I have completely started over, having found several things
in my "search for NIS"   :=0

Here's what I've done, and where I am...

---------------------------------------------------------------------------------------------------
On the SERVER:

/etc/hosts content:
127.0.0.1     localhost.test.com     localhost

/etc/host.conf content: (yes, I want it to use DNS and not host)
bind
nis

/etc/group content:
<standard group files>
+:*::

/etc/passwd
<about 1300 entries>
+:*::::::::

/etc/rc.conf changes:
hostname="nismst.test.com"
nisdomainname="test.com"
nis_client_enable="YES"
nis_client_flags="-s"
nis_ypset_enable="NO"
nis_ypset_flags=""
nis_server_enable="YES"
nis_server_flags=""
nis_yppasswdd_enable="YES"
nis_yppasswdd_flags="-v -a -t /etc/master.passwd"

/var/yp/Makefile modified to use /etc/master.passwd:
at line 108, replace
MASTER     =  $(YPDIR)/master.passwd
     with
MASTER     =  $YPSRCDIR)/master.passwd

To create the domain: in /var/yp,
make target test

----------------------------------------------------------------------------------------------
On the CLIENT:

Magic cookies in:
/etc/passwd
/etc/group
/etc/hosts

Contents of /etc/host.conf:
bind
nis

/etc/rc.conf:
nis_client_enable="YES"
nis_client_flags="-s"
--------------------------------------------------------------------------------------------------
Behavior:

SERVER: Everything appears normal.  All logins work, 
ypcat works for all map files tried, ypmatch works, passwd
changes local as well as NIS maps.

CLIENT: No NIS logins work.  passwd works correctly: it
both recognizes a bad password (when prompting for "old" 
passwd) and successfully changes the NIS passwd.  Having
changed it via the client, I can use the new password to login 
on the server.
ypcat/ypmatch appear to be working fine.

-----------------------------------------------------------------------------------------------

Oh Help...  

Jane,
Frustrated & grumpy... :(




______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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