From owner-freebsd-questions Wed Aug 2 11:48:56 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id LAA24508 for questions-outgoing; Wed, 2 Aug 1995 11:48:56 -0700 Received: from disperse.demon.co.uk (disperse.demon.co.uk [158.152.1.77]) by freefall.cdrom.com (8.6.11/8.6.6) with SMTP id LAA24500 for ; Wed, 2 Aug 1995 11:48:52 -0700 Received: from post.demon.co.uk by disperse.demon.co.uk id aa14914; 2 Aug 95 19:05 +0100 Received: from lindhard.demon.co.uk by post.demon.co.uk id aa21504; 2 Aug 95 19:05 +0100 Received: (from mark@localhost) by lindhard.demon.co.uk (8.6.12/8.6.12) id RAA04942 for freebsd-questions@freebsd.org; Wed, 2 Aug 1995 17:06:29 +0100 Date: Wed, 2 Aug 1995 17:06:29 +0100 From: Mark Bowyer Message-Id: <199508021606.RAA04942@lindhard.demon.co.uk> To: freebsd-questions@freebsd.org Subject: NIS/YP test using localhost? Sender: questions-owner@freebsd.org Precedence: bulk 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.