From owner-freebsd-hackers@FreeBSD.ORG Sat May 19 22:05:24 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 C23CE16A469 for ; Sat, 19 May 2007 22:05:24 +0000 (UTC) (envelope-from SRS0=PBdUex=KU=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailout18.yourhostingaccount.com (mailout18.yourhostingaccount.com [65.254.253.150]) by mx1.freebsd.org (Postfix) with ESMTP id 7AA5413C448 for ; Sat, 19 May 2007 22:05:24 +0000 (UTC) (envelope-from SRS0=PBdUex=KU=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailscan54.yourhostingaccount.com ([10.1.15.54] helo=mailscan54.yourhostingaccount.com) by mailout18.yourhostingaccount.com with esmtp (Exim) id 1HpX3D-0004zt-CL for hackers@FreeBSD.ORG; Sat, 19 May 2007 18:05:23 -0400 Received: from authsmtp09.yourhostingaccount.com ([10.1.18.9] ident=exim) by mailscan54.yourhostingaccount.com with spamscanlookuphost (Exim) id 1HpX3D-0001aJ-5p for hackers@FreeBSD.ORG; Sat, 19 May 2007 18:05:23 -0400 Received: from authsmtp09.yourhostingaccount.com ([10.1.18.9] helo=authsmtp09.yourhostingaccount.com) by mailscan54.yourhostingaccount.com with esmtp (Exim) id 1HpX3C-0001a5-Em; Sat, 19 May 2007 18:05:22 -0400 Received: from cpe-65-185-51-114.columbus.res.rr.com ([65.185.51.114] helo=vixen42) by authsmtp09.yourhostingaccount.com with esmtpa (Exim) id 1HpX3C-0002Ic-6j; Sat, 19 May 2007 18:05:22 -0400 Date: Sat, 19 May 2007 18:07:44 -0400 From: "Zane C.B." To: Nikolay Pavlov Message-ID: <20070519180744.25fc128e@vixen42> In-Reply-To: <20070519214518.GA55896@zone3000.net> References: <20070519133557.4dbe3751@vixen42> <20070519214518.GA55896@zone3000.net> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EN-UserInfo: 0d1ca1697cdb7a831d4877828571b7ab:1570f0de6936c69fef9e164fffc541bc X-EN-AuthUser: vvelox2 Sender: "Zane C.B." X-EN-OrigIP: 65.185.51.114 X-EN-OrigHost: cpe-65-185-51-114.columbus.res.rr.com 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:05:24 -0000 On Sun, 20 May 2007 00:45:18 +0300 Nikolay Pavlov wrote: > 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/ Cool. :) I will take a look at it and look at submitting it as a port since it is not already in there. Thanks for the heads up. A few hours ago, I also submitted patch as a PR after updating the man page to reflect it. http://www.freebsd.org/cgi/query-pr.cgi?pr=112794 if any one is interested.