From owner-freebsd-stable@FreeBSD.ORG Mon Jul 15 22:53:16 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 69FDA67A for ; Mon, 15 Jul 2013 22:53:16 +0000 (UTC) (envelope-from mauzo@anubis.morrow.me.uk) Received: from isis.morrow.me.uk (isis.morrow.me.uk [204.109.63.142]) by mx1.freebsd.org (Postfix) with ESMTP id 47979F49 for ; Mon, 15 Jul 2013 22:53:15 +0000 (UTC) Received: from anubis.morrow.me.uk (host31-52-186-205.range31-52.btcentralplus.com [31.52.186.205]) (Authenticated sender: mauzo) by isis.morrow.me.uk (Postfix) with ESMTPSA id 1FB65450B6 for ; Mon, 15 Jul 2013 22:47:55 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.7.4 isis.morrow.me.uk 1FB65450B6 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=morrow.me.uk; s=dkim201101; t=1373928476; bh=YeeptrqA7JfEieo9u70Pn9q8ZcREU/3975g+CNo8PTA=; h=Date:From:To:Subject:References:In-Reply-To; b=TnFFvLiacBOOLiIYu7VeR+fxkRrO2BkBzqZicJHBia9YWGyUtL8Ti55BNSAZA9IiR 0BcvfHWqGysQ3HHv/AQKfQ2lQ1059K41eolwD2A6QKRly3iFqH2gEQgXwvB8LXHdAG lv4mp7XEIn2ps9xGBHpcZvarD0b+daaMKPtdHutk= X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.97.6 at isis.morrow.me.uk Received: by anubis.morrow.me.uk (Postfix, from userid 5001) id E82CEBD1D; Mon, 15 Jul 2013 23:47:52 +0100 (BST) Date: Mon, 15 Jul 2013 23:47:52 +0100 From: Ben Morrow To: freebsd-stable@freebsd.org Subject: Re: LDAP authentication confusion Message-ID: <20130715224748.GA45649@anubis.morrow.me.uk> References: <1373915752.13754.140661255962197.3CA2BD96@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51E46747.7070705@rlwinm.de> X-Newsgroups: gmane.os.freebsd.stable Organization: morrow.me.uk User-Agent: Mutt/1.5.21 (2010-09-15) 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: Mon, 15 Jul 2013 22:53:16 -0000 Quoth Jan Bramkamp : > On 15.07.2013 21:51, Daniel Eischen wrote: > > > > Wouldn't it be easier just to edit /etc/nsswitch.conf > > anyway? > PAM and NSS switch are two different subsystems. NSS is just for > resource lookups (users, groups, hosts, ...). PAM is for access control. > > With ldap in nsswitch.conf for users and groups you can lookup a LDAP > user but the user can't log into $service through PAM. This requires > pam_ldap.so in pam.d/$service. The default pam_unix.so calls getpwent, so if nss_ldap returns cryptable passwords in its result I think pam_unix can authenticate against those. This is not the same as authenticating by LDAP bind, but may end up accepting the same passwords. Ben