From owner-freebsd-stable@FreeBSD.ORG Tue Jul 16 02:37:34 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5968C8BC; Tue, 16 Jul 2013 02:37:34 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from sarah.protected-networks.net (sarah.protected-networks.net [IPv6:2001:470:1f07:4e1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 2696A915; Tue, 16 Jul 2013 02:37:34 +0000 (UTC) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [202.12.127.84]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "Iain Michael Butler", Issuer "Protected Networks Certificate Authority" (verified OK)) (Authenticated sender: imb@protected-networks.net) by sarah.protected-networks.net (Postfix) with ESMTPSA id 227106148; Mon, 15 Jul 2013 22:37:33 -0400 (EDT) DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=faZ7U1X+ZU/3A+Rhf6xqzS1rNvJPvzHHL9C2u8qyXucYxya2gUjHPKz64juPNM0fY 5J/qmOqCxY57I33GMVaMQ9bg9pRuGaFQB70bAw9NtN4kk+T2SF2Y2N+5Dg9ir3f Message-ID: <51E4B1EB.2000800@protected-networks.net> Date: Mon, 15 Jul 2013 22:37:31 -0400 From: Michael Butler User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130710 Thunderbird/17.0.7 MIME-Version: 1.0 To: Daniel Eischen Subject: Re: LDAP authentication confusion References: <1373915752.13754.140661255962197.3CA2BD96@webmail.messagingengine.com> <20130715224748.GA45649@anubis.morrow.me.uk> <51E480C3.50008@rlwinm.de> In-Reply-To: X-Enigmail-Version: 1.5.1 OpenPGP: id=0442D492 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jul 2013 02:37:34 -0000 On 07/15/13 22:28, Daniel Eischen wrote: > I think something is lost on me here. getpwent/getpwuid do > not return the password hashes in the returned struct passwd > unless the calling process is root. So you have to be root in > order to see the hashes anyway. Not all users are going to > have access to the hashes, unless your machine's compromised > or otherwise allows root privileges to others. My personal preference is to configure the LDAP server with this fragment in slapd.conf .. # lock down passwords access to attrs=userPassword by self write by anonymous auth by * none .. which achieves everything needed without exposing anything superfluously, imb