phpVirtualBox : Authentication problem

Urs Probst urs.probst at triamec.com
Tue Sep 13 16:41:04 UTC 2011


Hi!

I am trying to use phpVirtualBox on a headless FreeBSD-9.0-Beta2 AMD64 
system. Virtualbox is 4.0.12, phpVirtualBox is 4.0.7, both freshly compiled.
Virtualbox is working fine, so does phpVirtualBox when I disable 
authentication:

VBoxManage setproperty websrvauthlibrary null

and in phpVirtualBox/config.php : var $noAuth = true

However, I cannot log on when websrvauthlibrary is set to default, 
$noAuth=false and $username etc. is set correctly to the id of 
vboxusers. vboxwebsrv is also running under this user. I get the 
following error from the phpVirtualBox front end (also after restarting 
vboxwebsrv):

--------------------------------------------------------------------------------------------------------------
Exception Object
(
     [message:protected] => Error logging in to vboxwebsrv.
     [string:Exception:private] =>
     [code:protected] => 64
     [file:protected] => /usr/local/www/phpvirtualbox/lib/vboxconnector.php
     [line:protected] => 107
     [trace:Exception:private] => Array
         (
             [0] => Array
                 (
                     [file] => 
/usr/local/www/phpvirtualbox/lib/vboxconnector.php
                     [line] => 238
                     [function] => __vboxwebsrvConnect
                     [class] => vboxconnector
                     [type] => ->
                     [args] => Array
                         (
                         )

                 )

             [1] => Array
                 (
                     [file] => 
/usr/local/www/phpvirtualbox/lib/auth/Builtin.php
                     [line] => 21
                     [function] => connect
                     [class] => vboxconnector
                     [type] => ->
                     [args] => Array
                         (
                         )

                 )

             [2] => Array
                 (
                     [file] => /usr/local/www/phpvirtualbox/lib/ajax.php
                     [line] => 109
                     [function] => login
                     [class] => phpvbAuthBuiltin
                     [type] => ->
                     [args] => Array
                         (
                             [0] => vboxusers
                             [1] => myVerySecretPassword
                         )

                 )

         )

     [previous:Exception:private] =>
)
--------------------------------------------------------------------------------------------------------------

I have then tried to change to VBoxAuthSimple method:
VBoxManage setproperty vrdeauthlibrary "VBoxAuthSimple"
VBoxManage internalcommands passwordhash "verysecret"
VBoxManage setextradata global "VBoxAuthSimple/users/vboxusers" 
36dd292533174299fb0c34665df468bb881756ca9eaf9757d0cfde38f9ededa1

After restarting vboxwebsrv, I only get the message "invalid username or 
password".

Does anybody has an idea? By the way: User 'vboxusers' is set up with 
home directory and shell.

Many thanks and kind regards from Switzerland,

-Urs



More information about the freebsd-emulation mailing list