pam_exec.so PAM module does not export variable PAM_USER as stated in the documentation
Posted
by
davidparks21
on Server Fault
See other posts from Server Fault
or by davidparks21
Published on 2011-06-17T04:54:28Z
Indexed on
2011/11/23
17:53 UTC
Read the original article
Hit count: 406
I'm trying to use the pam_exec.so
PAM module to execute a script which needs to know the username/password coming from the application (OpenVPN in this case).
I have a script that executes printenv >>afile
, but I don't see all the environment variables that the man pages states that pam_exec.so exports (namely PAM_USER I think), I only see the following:
PAM_SERVICE=openvpn
PAM_TYPE=auth
PWD=/usr/local/openvpn/bin
SHLVL=1
A__z="*SHLVL
I do successfully pick up the password off of STDIN and output it with this same script. But for the life of me I can't get the username.
Any thoughts on what I should try next?
© Server Fault or respective owner