From owner-freebsd-hackers@FreeBSD.ORG Sat May 19 18:03:57 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 E634D16A46B for ; Sat, 19 May 2007 18:03:57 +0000 (UTC) (envelope-from SRS0=PBdUex=KU=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailout05.yourhostingaccount.com (mailout05.yourhostingaccount.com [65.254.253.41]) by mx1.freebsd.org (Postfix) with ESMTP id B2C9413C457 for ; Sat, 19 May 2007 18:03:57 +0000 (UTC) (envelope-from SRS0=PBdUex=KU=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailscan26.yourhostingaccount.com ([10.1.15.26] helo=mailscan26.yourhostingaccount.com) by mailout05.yourhostingaccount.com with esmtp (Exim) id 1HpSoB-0005V7-UN for hackers@FreeBSD.ORG; Sat, 19 May 2007 13:33:35 -0400 Received: from authsmtp09.yourhostingaccount.com ([10.1.18.9] ident=exim) by mailscan26.yourhostingaccount.com with spamscanlookuphost (Exim) id 1HpSoB-00051o-N3 for hackers@FreeBSD.ORG; Sat, 19 May 2007 13:33:35 -0400 Received: from authsmtp09.yourhostingaccount.com ([10.1.18.9] helo=authsmtp09.yourhostingaccount.com) by mailscan26.yourhostingaccount.com with esmtp (Exim) id 1HpSoB-00051k-Fk for hackers@FreeBSD.ORG; Sat, 19 May 2007 13:33:35 -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 1HpSoB-0005D3-6W for hackers@FreeBSD.ORG; Sat, 19 May 2007 13:33:35 -0400 Date: Sat, 19 May 2007 13:35:57 -0400 From: "Zane C.B." To: hackers@FreeBSD.ORG Message-ID: <20070519133557.4dbe3751@vixen42> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_IGfSkri3/Pgp90sZhdxyTFz" 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: Subject: 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 18:03:58 -0000 --MP_IGfSkri3/Pgp90sZhdxyTFz Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. --MP_IGfSkri3/Pgp90sZhdxyTFz Content-Type: text/x-patch; name=pam_exec.c.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=pam_exec.c.diff --- 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 --MP_IGfSkri3/Pgp90sZhdxyTFz--