From owner-freebsd-security@freebsd.org  Sat Sep 10 03:28:46 2016
Return-Path: <owner-freebsd-security@freebsd.org>
Delivered-To: freebsd-security@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 17418BD4CE5;
 Sat, 10 Sep 2016 03:28:46 +0000 (UTC)
 (envelope-from wollman@hergotha.csail.mit.edu)
Received: from hergotha.csail.mit.edu
 (wollman-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:ccb::2])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id C1E25637;
 Sat, 10 Sep 2016 03:28:45 +0000 (UTC)
 (envelope-from wollman@hergotha.csail.mit.edu)
Received: from hergotha.csail.mit.edu (localhost [127.0.0.1])
 by hergotha.csail.mit.edu (8.15.2/8.15.2) with ESMTP id u8A3ShIM053044;
 Fri, 9 Sep 2016 23:28:43 -0400 (EDT)
 (envelope-from wollman@hergotha.csail.mit.edu)
Received: (from wollman@localhost)
 by hergotha.csail.mit.edu (8.15.2/8.14.4/Submit) id u8A3Sgc7053042;
 Fri, 9 Sep 2016 23:28:42 -0400 (EDT) (envelope-from wollman)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <22483.32234.747577.586530@hergotha.csail.mit.edu>
Date: Fri, 9 Sep 2016 23:28:42 -0400
From: Garrett Wollman <wollman@bimajority.org>
To: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Cc: freebsd-security@freebsd.org, freebsd-arch@freebsd.org
Subject: Re: Trying to think out a hack for NSS and pw(8)
In-Reply-To: <67593.1473451982@critter.freebsd.dk>
References: <22483.5592.653250.726711@hergotha.csail.mit.edu>
 <67593.1473451982@critter.freebsd.dk>
X-Mailer: VM 8.2.0b under 24.5.1 (amd64-portbld-freebsd10.3)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3
 (hergotha.csail.mit.edu [127.0.0.1]); Fri, 09 Sep 2016 23:28:43 -0400 (EDT)
X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,
 HEADER_FROM_DIFFERENT_DOMAINS autolearn=disabled version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on
 hergotha.csail.mit.edu
X-Mailman-Approved-At: Sat, 10 Sep 2016 11:14:50 +0000
X-BeenThere: freebsd-security@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Security issues \[members-only posting\]"
 <freebsd-security.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-security>, 
 <mailto:freebsd-security-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-security/>
List-Post: <mailto:freebsd-security@freebsd.org>
List-Help: <mailto:freebsd-security-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-security>, 
 <mailto:freebsd-security-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 10 Sep 2016 03:28:46 -0000

<<On Fri, 09 Sep 2016 20:13:02 +0000, "Poul-Henning Kamp" <phk@phk.freebsd.dk> said:

> You want to add a futher layer of complications to the the already
> far too complicated user/group/authentication code in FreeBSD,
> just because you don't want to look at Puppets Ruby code ?

Um, no, that's not remotely what I wrote.

I've spent far more time than is useful looking at Puppet's Ruby code,
TYVM.

What I don't want to do is rewrite pw(8) *and* the Ruby standard
library to have their own passwd(5) implementations to be used just
for managing the sysadmin accounts on a server.

I could tolerate changing pw(8) to give it a "local" flag that means
only look at/manipulate the local files -- except that the C library
doesn't provide any sort of hook for that (yet).  I'm proposing to
implement that hook.  That would at least get me 70% of the way there.

-GAWollman