Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 May 2007 13:35:57 -0400
From:      "Zane C.B." <v.velox@vvelox.net>
To:        hackers@FreeBSD.ORG
Subject:   pam_exec patch and mount_smbfs
Message-ID:  <20070519133557.4dbe3751@vixen42>

next in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070519133557.4dbe3751>