From owner-freebsd-hackers Mon May 27 09:58:02 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA25023 for hackers-outgoing; Mon, 27 May 1996 09:58:02 -0700 (PDT) Received: from irbs.irbs.com ([199.182.75.129]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id JAA25015 for ; Mon, 27 May 1996 09:57:59 -0700 (PDT) Received: (from jc@localhost) by irbs.irbs.com (8.7.5/8.6.6) id MAA02310; Mon, 27 May 1996 12:55:17 -0400 (EDT) From: John Capo Message-Id: <199605271655.MAA02310@irbs.irbs.com> Subject: Re: Adduser program in C To: roberto@keltia.freenix.fr (Ollivier Robert) Date: Mon, 27 May 1996 12:55:17 -0400 (EDT) Cc: green@fang.cs.sunyit.edu, hackers@freebsd.org In-Reply-To: <199605262201.AAA19567@keltia.freenix.fr> from Ollivier Robert at "May 27, 96 00:01:46 am" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Ollivier Robert writes: > It seems that Charles Green said: > > A feature I'd like to see added is the ability to detect NIS and > > put the new account into the NIS database. > > Can we say that if: > > 1. domainname returns a non-void value AND > 2. /var/yp/DOMAINNAME exists AND > 3. ypserv is running > > THEN YP is running and we're on the master ? > No, you could be on a slave server. I'm not sure how to tell the difference. John Capo