From owner-freebsd-hackers@FreeBSD.ORG Sat May 19 22:13:51 2007 Return-Path: X-Original-To: hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EF63316A421 for ; Sat, 19 May 2007 22:13:51 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from mx1.sitevalley.com (sitevalley.com [209.67.60.43]) by mx1.freebsd.org (Postfix) with SMTP id 9066713C46A for ; Sat, 19 May 2007 22:13:51 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from zone3000.kharkov.ua (HELO localhost) (217.144.69.37) by 209.67.61.254 with SMTP; 19 May 2007 21:45:44 -0000 Date: Sun, 20 May 2007 00:45:18 +0300 From: Nikolay Pavlov To: "Zane C.B." Message-ID: <20070519214518.GA55896@zone3000.net> References: <20070519133557.4dbe3751@vixen42> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070519133557.4dbe3751@vixen42> X-Operating-System: FreeBSD 6.1-RELEASE-p10 User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: hackers@FreeBSD.ORG Subject: Re: pam_exec patch and mount_smbfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 22:13:52 -0000 On Saturday, 19 May 2007 at 13:35:57 -0400, Zane C.B. wrote: > Figured some one may find this interesting. The patch modifies > pam_exec to export PAM_AUTHTOK as a environmental variable. > > I am currently working on modifying mount_smbfs to be able to use a > specified environmental variable password instead of asking for one. > > The purpose of this is to be able to use pam_exec to be able to mount > a user's home directory from samba. > --- pam_exec.c.orig Sat May 19 12:51:42 2007 > +++ pam_exec.c Sat May 19 12:56:50 2007 > @@ -57,6 +57,7 @@ > ENV_ITEM(PAM_TTY), > ENV_ITEM(PAM_RHOST), > ENV_ITEM(PAM_RUSER), > + ENV_ITEM(PAM_AUTHTOK), > }; > > static int Hi Zane. The is a pam module for exactly this purposes: http://pam-mount.sourceforge.net/ -- ====================================================================== - Best regards, Nikolay Pavlov. <<<----------------------------------- ======================================================================