Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 1997 11:56:17 +0200 (MET DST)
From:      Claudio Eichenberger <claudio@nty.com>
To:        www@freebsd.org
Subject:   NIS works only partially
Message-ID:  <199706160956.LAA08674@nty.ch>

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

I use FreeBSD 2.2.1 and cannot get NIS working.

I had it working on FreeBSD 2.1. Beneath is the way I configured the NIS installation. I did not find an answer in the FreeBSD e-mail collection. Do you know what could be the error ? All the information is about alpha, a NIS server and also a NIS client. 

Many thanks for your help in advance.
Claudio


I configured alpha, which is a NIS-SERVER the following way:
============================================================

1)	in /etc/sysconfig set defaultdomainname=".z13"

2)	in /etc/sysconfig set nis_clientflags=""

3)	in /etc/sysconfig set nis_serverflags=""
     
4)	in /etc/sysconfig set yppasswddflags="-m /var/yp/master.passwd -s -f"
     
5)	cp /etc/master.passwd /var/yp/master.passwd
     
6)	from /etc/master.passwd take off NIS users
     
7)	in /etc/master.passwd  put +::::::::: as last line
     
8)	in /var/yp/master.passwd  leave only NIS users
     
9)	touch /var/yp/ypservers
     
10)	pushd /var/yp; make
     
12)	uncomment #nis in the file /etc/host.conf

13)	reboot

14)	alpha# ps -auxw|grep yp
	root        96  0.0  2.3   608  896  ??  Ss    3:54PM    0:04.96 ypserv
	root       100  0.0  1.6   224  612  ??  Is    3:54PM    0:00.05 rpc.yppasswdd -m /var/yp/master.passwd -s -f
	root       103  0.0  1.4   180  532  ??  Is    3:54PM    0:00.17 ypbind


Then the following commands work e.g.
=====================================

1)	alpha# ypcat passwd
	claudio:*:1000:1000:Claudio Eichenberger,,,+41:/home/claudio:/bin/csh
	msql:*:1002:1002:Msql Administrator :/home/msql:/bin/csh
	roland:*:1003:1003:Roland Pfyffer:/home/roland:/bin/csh
	www:*:1001:1001:WWW Administrator:/home/www:/bin/csh
	alpha# 

2)	alpha# ypchsh claudio
	#Changing NIS information for claudio.
	Login: claudio
	...


But, several other commands do not work e.g.
============================================

1)	alpha# su claudio
	su: unknown login: claudio

2)	alpha# rlogin alpha -l claudio
	Password:
	Login incorrect			#despite I provided the correct password
	login: 

3)	alpha# netscape
	yp_match: clnt_call: RPC: Timed out
	yp_match: clnt_call: RPC: Timed out
	...


Then I made the following test:
===============================

1)	alpha# ps -auxw|grep ypserv
	root        96  0.0  2.3   608  896  ??  Ss    3:54PM    0:04.96 ypserv
	alpha# kill 96
	alpha# ypserv -d

	ypserv: Procedure ypproc_domain_nonack called from 10.10.10.10:1028
	Jun 14 16:33:03 alpha ypbind[103]: NIS server [10.10.10.10] for domain ".z13" not responding
	ypserv: Procedure ypproc_domain called from 10.10.10.10:676
	ypserv: Procedure ypproc_match called from 10.10.10.10:675
	ypserv: Client is referencing map "hosts.byname".
	ypserv: Looking up key [10.10.10.11]
	ypserv: Doing DNS lookup of 10.10.10.11
	ypserv: Queueing async DNS name lookup (45135)
	Jun 14 16:33:03 alpha ypbind[103]: NIS server [10.10.10.10] for domain ".z13" OK
	ypserv: Procedure ypproc_match called from 10.10.10.10:674
	ypserv: Client is referencing map "hosts.byname".
	ypserv: Looking up key [10.10.10.11]
	ypserv: Doing DNS lookup of 10.10.10.11
	ypserv: Queueing async DNS name lookup (45136)
	ypserv: Procedure ypproc_match called from 10.10.10.10:675
	ypserv: Client is referencing map "hosts.byname".
	ypserv: Looking up key [10.10.10.11]
	ypserv: Doing DNS lookup of 10.10.10.11
	ypserv: Procedure ypproc_match called from 10.10.10.10:674
	ypserv: Client is referencing map "hosts.byname".
	ypserv: Looking up key [10.10.10.11]
	ypserv: Doing DNS lookup of 10.10.10.11
	ypserv: Procedure ypproc_match called from 10.10.10.10:673

	10.10.10.11 is another machine of the subnet 10.10.10.0 but it is turned off at the moment.


Then, I traced a 'su claudio'
=============================

I)	From a first xterm I made:
	==========================
	alpha# ps -auxw|grep ypserv
	root        96  0.0  2.3   608  896  ??  Ss    3:54PM    0:04.96 ypserv
	alpha# kill 96
	alpha# ypserv -d

	Jun 14 16:42:31 alpha ypbind[103]: NIS server [10.10.10.10] for domain ".z13" not responding
	ypserv: Procedure ypproc_domain_nonack called from 10.10.10.10:1040
	Jun 14 16:42:31 alpha ypbind[103]: NIS server [10.10.10.10] for domain ".z13" OK
	ypserv: Procedure ypproc_first called from 10.10.10.10:964
	ypserv: Client is referencing map "master.passwd.byname".
	ypserv: Retrieving first key in map.
	ypserv: Result of lookup: key: [roland] data: [roland:passwd_taken_off:1003:1003::0:0:Roland Pfyffer:/home/roland:/bin/csh]
	ypserv: Procedure ypproc_first called from 10.10.10.10:964
	ypserv: Client is referencing map "master.passwd.byname".
	ypserv: Retrieving first key in map.
	ypserv: Result of lookup: key: [roland] data: [roland:passwd_taken_off:1003:1003::0:0:Roland Pfyffer:/home/roland:/bin/csh]
	ypserv: Procedure ypproc_match called from 10.10.10.10:964
	ypserv: Client is referencing map "master.passwd.byname".
	ypserv: Looking up key [claudio]
	ypserv: Result of lookup: key: [claudio] data: [claudio:passwd_taken_off:1000:1000::0:0:Claudio Eichenberger,,,+41:/home/claudio:/bin/csh]
	ypserv: Procedure ypproc_domain called from 10.10.10.10:963
	ypserv: Procedure ypproc_domain called from 10.10.10.10:962
	ypserv: Procedure ypproc_first called from 10.10.10.10:961
	ypserv: Client is referencing map "group.byname".
	ypserv: Retrieving first key in map.
	ypserv: Result of lookup: key: [guest] data: [guest:*:31:root]
	ypserv: Procedure ypproc_next called from 10.10.10.10:961
	ypserv: Client is referencing map "group.byname".

	passwd_taken_off means that I took the passwords off in this description


II)	While from another xterm I made:
	================================
	alpha# su claudio	
	Jun 14 16:42:31 alpha ypbind[103]: NIS server [10.10.10.10] for domain ".z13" not responding
	Jun 14 16:42:31 alpha ypbind[103]: NIS server [10.10.10.10] for domain ".z13" OK
	yp_first: clnt_call: RPC: Timed out
	su: unknown login: claudio
	alpha#   



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