Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 1995 17:06:29 +0100
From:      Mark Bowyer <mark@lindhard.demon.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   NIS/YP test using localhost?
Message-ID:  <199508021606.RAA04942@lindhard.demon.co.uk>

next in thread | raw e-mail | index | archive | help

Hello,

I'm trying to test out NIS/YP on FreeBSD 2.0.5-950622-SNAP using localhost.
However, I can't seem to get things working:

The daemons running are:

schiott# ps xag|grep yp
   68 ??  IW     0:00.03 yppasswdd -m /var/yp/master.passwd -s -f
  466 ??  Is     1:07.11 ypserv
  548 ??  Is     0:05.99 ypbind -ypset

I now tell ypbind to use localhost:

schiott# ypset localhost

I have one entry the NIS/YP passwd file:

schiott# cat /var/yp/master.passwd 
test:xxxyyy:10009:10001::0:0:Schiott Test:/tmp:/bin/sh

Build the NIS/YP database:

schiott# cd /var/yp; make

Add/check for the special last line in the main passwd file:

schiott# tail -1 /etc/master.passwd 
+:*:0:0::0:0:::

Now check whether ypmatch works:

schiott# ypmatch test passwd
test:xxxyyy:10009:10001:Schiott Test:/tmp:/bin/sh

it does, OK, now try connecting to localhost:

schiott% telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

   FreeBSD (schiott) (ttyp2)

login: test
Password: xxxyyy
Login incorrect
login: Connection closed by foreign host.

This fails, (yppasswd also fails to accept the old passwd)

The output from ypserv -debug seems OK:

[Welcome to the NYS YP Server, version 0.13]
ypproc_domain_nonack("home-nis") [From: 201.202.203.2:1175]
        -> OK.
ypproc_order_2_svc(): [From: 201.202.203.2:977]
                domain = "home-nis"
                map = "master.passwd.byname"
-> Order # 807224341
ypproc_match(): [From: 201.202.203.2:978]
                domainname = "home-nis"
                mapname = "master.passwd.byname"
                keydat = "test"
        -> Value = "test:xxxyyy:10009:10001::0:0:Schiott Test:/tmp:/bin/sh"

--
What's up?  Anyone got this sort of thing working?

Cheers,

Mark.



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