From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 13 16:41:04 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CEEA106564A for ; Tue, 13 Sep 2011 16:41:04 +0000 (UTC) (envelope-from urs.probst@triamec.com) Received: from earth.triamec.com (cust.static.213-200-241-116.cybernet.ch [213.200.241.116]) by mx1.freebsd.org (Postfix) with ESMTP id 0F2958FC12 for ; Tue, 13 Sep 2011 16:41:02 +0000 (UTC) Received: from [192.168.10.83] by earth.triamec.com with esmtpa (Exim 4.72 (FreeBSD)) (envelope-from ) id 1R3VlG-0007dY-1J for freebsd-emulation@freebsd.org; Tue, 13 Sep 2011 18:23:04 +0200 Message-ID: <4E6F8329.60100@triamec.com> Date: Tue, 13 Sep 2011 18:22:01 +0200 From: Urs Probst Organization: Triamec Motion AG User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 192.168.10.83 X-SA-Exim-Mail-From: urs.probst@triamec.com X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on earth.triamec.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on earth.triamec.com) Subject: phpVirtualBox : Authentication problem X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2011 16:41:04 -0000 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