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

Hoàng Thái Xuân Khoa htxuankhoa at gmail.com
Mon Nov 26 18:37:16 PST 2012


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> wrote:
>> Client client = new Client("oneadmin:7f44b494160f2e69fed6c21b2ce555b8",
>> "http://localhost:2633/RPC2");
> This looks like an md5 hash, you should put your *real* password instead.
>
> --
> Giovanni Toraldo
> http://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");
I got the same error:
/Error message: [HostPoolInfo] User couldn't be authenticated, aborting 
call./

-- 
Hoang Thai Xuan Khoa
Ho Chi Minh city, Vietnam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121127/e660b830/attachment-0002.htm>


More information about the Users mailing list