From nobody@FreeBSD.org  Tue Oct 12 17:48:49 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2EAAE16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Oct 2004 17:48:49 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2298743D45
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Oct 2004 17:48:49 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i9CHmmP5030009
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Oct 2004 17:48:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i9CHmmdX030007;
	Tue, 12 Oct 2004 17:48:48 GMT
	(envelope-from nobody)
Message-Id: <200410121748.i9CHmmdX030007@www.freebsd.org>
Date: Tue, 12 Oct 2004 17:48:48 GMT
From: Tony Shadwick <tonys@stg-stl.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: NIS Domain Master fails as client of itself
X-Send-Pr-Version: www-2.3

>Number:         72592
>Category:       conf
>Synopsis:       [nis] NIS Domain Master fails as client of itself
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gavin
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 12 17:50:30 GMT 2004
>Closed-Date:    
>Last-Modified:  Mon Jan 04 10:37:56 UTC 2010
>Originator:     Tony Shadwick
>Release:        5.2.1
>Organization:
Strategic Technology Group
>Environment:
FreeBSD zeus.stg-stl.net 5.2.1-RELEASE FreeBSd 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004     root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC    i386
>Description:
When setting up an NIS domain master per FreeBSD's documentation, you
are instructed to make a copy of master.passwd in /var/yp, remove any
system or administrative accounts and make domain-name, which succeeds.

This leaves you with your users' accounts in both /etc/master.passwd and
/var/yp/master.passwd, and if you wish to add a user, you must add to both
for the user to be valid on both the domain master and the nis domain.

The solution is to set the system up as an NIS client per FreeBSD's
documentation, by adding the following lines to /etc/rc.conf:

nisdomainname="domain-name"
rpcbind_enable="YES"
nis_client_enable="YES"
nis_client_flags="-S domain-name,server1,server2"

Remove the users from /etc/master.passwd that exist in /var/yp/master.passwd,
and add +::::::::: at the bottom of /etc/master.passwd.

However, after rebooting with this configuration, the users in
/var/yp/master.passwd do not register on the system.  

ypcat passwd
clnttcp_create failed
ypcat: no such map passwd.byname. reason: Can't communicate with portmapper

Connectivity to rpcbind is allowed through /etc/hosts.allow, and there are
no active firewall rules.
>How-To-Repeat:
Configure the system per FreeBSD's documentation as an NIS Server, then
add to that configuration the steps required to run as a client of itself.
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Oct 24 00:22:44 GMT 2004 
Responsible-Changed-Why:  
This sounds more like a problem with the config files, or possibly 
even the documentation, than anything i386-specific. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72592 
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Mon Jan 4 10:33:26 UTC 2010 
State-Changed-Why:  
To submitter: I suspect this was fixed several years ago, with the introduction 
of the new rc.d boot framework.  It appears that now at least, ypbind will 
always start after ypserv, so should be available on boot. 

Are you able to confirm that this is the case? 


Responsible-Changed-From-To: freebsd-bugs->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Mon Jan 4 10:33:26 UTC 2010 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72592 
State-Changed-From-To: feedback->open 
State-Changed-By: gavin 
State-Changed-When: Mon Jan 4 10:37:31 UTC 2010 
State-Changed-Why:  
Mail to submitter bounces.  I'll try to test this myself at some point 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72592 
>Unformatted:
