From owner-freebsd-hackers Sat Apr 18 01:52:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA26075 for freebsd-hackers-outgoing; Sat, 18 Apr 1998 01:52:14 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA26070 for ; Sat, 18 Apr 1998 08:52:12 GMT (envelope-from tlambert@usr01.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id BAA14974; Sat, 18 Apr 1998 01:52:06 -0700 (MST) Received: from usr01.primenet.com(206.165.6.201) via SMTP by smtp03.primenet.com, id smtpd014969; Sat Apr 18 01:52:04 1998 Received: (from tlambert@localhost) by usr01.primenet.com (8.8.5/8.8.5) id BAA09527; Sat, 18 Apr 1998 01:51:58 -0700 (MST) From: Terry Lambert Message-Id: <199804180851.BAA09527@usr01.primenet.com> Subject: Re: Discussion : Using DHCP to obtain configuration. To: benedict@echonyc.com (Snob Art Genre) Date: Sat, 18 Apr 1998 08:51:58 +0000 (GMT) Cc: rb@gid.co.uk, mike@smith.net.au, hackers@FreeBSD.ORG In-Reply-To: from "Snob Art Genre" at Apr 17, 98 03:45:16 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > ...this option would introduce yet another chunk of mechanism which has to > > be working before one's system will DTRT. > > Yes! Has anyone here ever tried to fix a NeXTStep box when NetInfo was > spammed? It's not pretty, I assure you. vi. niload. This assumes you Do The Wrong Thing and maintain parallel text files. Another question: Has anyone tried to change a system configuration parameter (like an IP address or the machine name) and had it "just work" without having to go kill -1 and/or kill -9 & restart half the world? Consider the case of us doing the DHCP client thing (for which this threads subject was invented). Now say the server says "no, you can't have your lease back" (maybe we have been in suspend mode for 5 days, or the network has been renumbered out from under us, and the server was transparently proxying our old address on behalf of the inability of the DHCP protocol designers to forsee the need for a "REVOKE DHCP LEASE" and a client requirement to listen for it on the wire). For whatever reason, it wants us to have a different IP address. How would you make this work without a single configuration point that could notify interested parties of changes? (for example, via an ACAP or LDAP async server notification, a poll event, or whatever). If you allow idiots to use config files rather than a single, central get/put type API, you will *inevitably* end up with a "fetchmail"-type program that has a .fmrc with a stale hostname squirreled away somewhere. Or worse. On SVR4, there are five (*five*!) locations where you have to change the hostname. I'm sure that I could, if pressed, find duplications in FreeBSD's config files as well. The system-wide shell startup defined environment variables are an example of a name/value pair by administrative fiat. All we are talking about here is extending the fiat to access mechanism, which isn't a bad thing. I'm positive that a bidirectional data converter could be written (I've written one for all of the RFC2307 POSIX NIS schema data, in fact). You would still be free to open yourself up to the NeXTStep niload/nidump synchronization problems, if you really wanted the headache back in trade for being able to access flat files. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message