env vars for VRDP external auth
Brought to you by:
markbaa
I run vbox on server and use VRDP external authorization (with libpam). To setup it, I need a way to set environment variables before start vboxes.
As quick and dirty solution, I use file '/etc/vboxtool/envvar' with such text:
# VRDP auth (external type) for virtualBox
export VRDP_AUTH_PAM_SERVICE=vrdpauth
export VRDP_AUTH_DEBUG_FILENAME=<path>/VRDP_auth.log
and add one line to vboxtool (right after 'configfile='):
. /etc/vboxtool/envvar
Works for me, but definetly needs more thinking.
The setting of the environment variables could be done in the vboxtool.conf file it self also, because this file is 'executed' by the vboxtool script in the way it is described in this request.
Thus, it's not needed to create a hook and to have a separate envvar file. This have to be documented of course, because it is certainly not obvious.
Degrading priority to 2 because there's are multiple workarounds available.