From owner-freebsd-isp Tue Oct 22 2:22:43 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9894C37B404 for ; Tue, 22 Oct 2002 02:22:42 -0700 (PDT) Received: from newnet.co.uk (newnet.co.uk [212.87.80.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F7CA43E42 for ; Tue, 22 Oct 2002 02:22:41 -0700 (PDT) (envelope-from jamie@jamiesdomain.org.uk) Received: from BONG (perry-gw-nat1-eth1.router.trident-uk.co.uk [81.3.89.49]) by newnet.co.uk (8.12.3/8.12.3) with SMTP id g9M9MGtS023105; Tue, 22 Oct 2002 10:22:17 +0100 (BST) (envelope-from jamie@jamiesdomain.org.uk) Message-ID: <00e201c279ac$47dc2220$3264a8c0@BONG> Reply-To: "Jamie Heckford" From: "Jamie Heckford" To: , References: <20021021204543.GA14674@backtech.com> Subject: Re: user account/password sync between machines? Date: Tue, 22 Oct 2002 10:20:35 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Newnet-MailScanner: Found to be clean Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ----- Original Message ----- From: "Dexter McNeil" To: Sent: Monday, October 21, 2002 9:45 PM Subject: user account/password sync between machines? > I've got a project that involves two identically configured machines that > are providing DNS and remote user SSH login. The systems are configured > such that the users log into 'host', with each machine's DNS server > returning it's IP address in response to a lookup of 'host'. The idea being > that if one machine goes down, the other machine will still respond to DNS > lookups and users will still be able to log in. All of this seems to work > nicely in testing. > > The remaining piece of my puzzle for this is a method of keeping the user > accounts sync'd between the two machines. I've looked into hacking up the > adduser.perl script to allow for remote operations on the master.passwd > file on the two machines (use a third machine to contain the master > database & publish it to the two remote machines), however I'm wondering > if anyone has found an easier solution to this type of problem. > The way I did it was to store all the necessary information in a MySQL database as a master and write perl scripts to build and maintain the user accounts and passwords. Works good for me on a cron job. You may also want to look at cfengine? -- ____________________________________________________ Message scanned for viruses and dangerous content by and believed to be clean To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message