From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 16:45:20 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF6E637B401; Sun, 30 Mar 2003 16:45:20 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E73E43FB1; Sun, 30 Mar 2003 16:45:20 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 6D1895308; Mon, 31 Mar 2003 02:45:17 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Jacques A. Vidrine" From: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 31 Mar 2003 02:45:17 +0200 In-Reply-To: <20030326150152.GG33671@madman.celabo.org> ("Jacques A. Vidrine"'s message of "Wed, 26 Mar 2003 09:01:52 -0600") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <20030326124420.388DE10160@ws-tor-0004.procergs> <20030326150152.GG33671@madman.celabo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org cc: omestre@freeshell.org Subject: Re: pam_ldap... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 00:45:22 -0000 "Jacques A. Vidrine" writes: > The part you are missing is that before you can authenticate, you must > have account and authorization information. For UNIX services, this > means that e.g. getpwnam() needs to find you. Nope - you don't need a struct passwd to call pam_authenticate(), and PAM supports the idea of a "template user" which is used to obtain a struct passwd for users that are authenticated through other means. PAM applications are supposed to call pam_get_user() once the user has been successfully authenticated to get the name of the template user. I think most PAM applications in the base system fail to do this. DES --=20 Dag-Erling Sm=F8rgrav - des@ofug.org