[one-users] Haven't authorized while using Java API

Carlos Martín Sánchez cmartin at opennebula.org
Tue Nov 27 01:42:19 PST 2012


Can you check if you are using the same OpenNebula and Java OCA versions?
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>



On Tue, Nov 27, 2012 at 3:37 AM, Hoàng Thái Xuân Khoa
<htxuankhoa at gmail.com>wrote:

>  On 11/26/2012 4:47 PM, Giovanni Toraldo wrote:
>
> On Mon, Nov 26, 2012 at 10:43 AM, Hoàng Thái Xuân Khoa<htxuankhoa at gmail.com> <htxuankhoa at gmail.com> wrote:
>
>  Client client = new Client("oneadmin:7f44b494160f2e69fed6c21b2ce555b8","http://localhost:2633/RPC2" <http://localhost:2633/RPC2>);
>
>  This looks like an md5 hash, you should put your *real* password instead.
>
> --
> Giovanni Toraldohttp://gionn.net
>
>  It's still didn't work.
>
> The 7f44b494160f2e69fed6c21b2ce555b8 is a default password when i
> installed OpenNebula. So, i don't know *real* password behind it. I decide
> use oneuser command to change oneadmin's password:
> oneadmin at cluster:~#oneuser passwd 0 123
> with 0 is the id of oneadmin user and 123 is a new password. After that, i
> can use password 123 to logon to SunStone server, managed private cloud via
> command line successfully. But, when i used it in Java code, it's didn't
> work.
> Client client = new Client("oneadmin:123","http://localhost:2633/RPC2"<http://localhost:2633/RPC2>
> );
> I got the same error:
>
> *Error message: [HostPoolInfo] User couldn't be authenticated, aborting
> call.*
>
> --
> Hoang Thai Xuan Khoa
> Ho Chi Minh city, Vietnam
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121127/d5828ada/attachment-0002.htm>


More information about the Users mailing list