Hi Jared,
The logic goes like this:
If user_group is specified, anyone who attempts to log in must be a member of this group. If it is not specified, anyone with an AD account can log in.
If admin_group is specified, an authenticated user that is also in this group is an admin in phpvirtualbox. If it is not specified, it is ignored.
If admin_user is specified, an authenticated user by this name will be an admin in phpvirtualbox. If it is not specified, it is ignored.
I'll explain the following config:
'user_group' => '',
'admin_group' => '',
'admin_user' => 'james'
Anyone with an AD account can log in. Only 'james' is an admin in phpvirtualbox.
'user_group' => 'Dev Lab',
'admin_group' => '',
'admin_user' => 'susan'
Anyone in the Dev Lab group can log in. 'susan' is an admin in phpvirtualbox and must also be a member of the Dev Lab group to log in.
'user_group' => ''
'admin_group' => 'vbox admins',
'admin_user' =>''
Anyone with an AD account can log in. Users in the 'vbox admins' group are admins in phpvirtualbox.
'user_group' => 'Dev Lab Users',
'admin_group' => 'Dev Lab Admins',
'admin_user' => ''
Anyone in the Dev Lab Users group can log in. Users in Dev Lab Admins are admins in phpvirtualbox and must be a member of 'Dev Lab Users' to log in.
'user_group' => 'Dev Lab Users',
'admin_group' => 'Dev Lab Users',
'admin_user' => ''
Anyone in the Dev Lab Users group can log in. All of those users are admins.
'user_group' => '',
'admin_group' => '',
'admin_user => ''
Anyone with an AD account can log in, but no one will be an admin in phpvirtualbox.
If you find that the above is not the case, please let me know.
Another way to implement this, which may make more sense is that users in 'admin_group' and/or the user specified as 'admin_user' does not have to be in 'user_group' (if specified).
What are your thoughts?