Menu

#10 env vars for VRDP external auth

open
nobody
None
2
2009-07-08
2008-12-06
Anton M.
No

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.

Discussion

  • Mark Baaijens

    Mark Baaijens - 2009-07-08
    • priority: 5 --> 2
     
  • Mark Baaijens

    Mark Baaijens - 2009-07-08

    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.

     

Log in to post a comment.