<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 11/26/2012 4:47 PM, Giovanni Toraldo
wrote:<br>
</div>
<blockquote
cite="mid:CAAy5=2eKCKP4XX_DxcUumKuvZqYNwF07_pcQBU=Np_k6fHBfvw@mail.gmail.com"
type="cite">
<pre wrap="">On Mon, Nov 26, 2012 at 10:43 AM, Hoàng Thái Xuân Khoa
<a class="moz-txt-link-rfc2396E" href="mailto:htxuankhoa@gmail.com"><htxuankhoa@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Client client = new Client("oneadmin:7f44b494160f2e69fed6c21b2ce555b8",
<a class="moz-txt-link-rfc2396E" href="http://localhost:2633/RPC2">"http://localhost:2633/RPC2"</a>);
</pre>
</blockquote>
<pre wrap="">
This looks like an md5 hash, you should put your *real* password instead.
--
Giovanni Toraldo
<a class="moz-txt-link-freetext" href="http://gionn.net">http://gionn.net</a>
</pre>
</blockquote>
It's still didn't work. <br>
<br>
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: <br>
oneadmin@cluster:~#oneuser passwd 0 123<br>
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.<br>
Client client = new
Client("oneadmin:123",<a class="moz-txt-link-rfc2396E" href="http://localhost:2633/RPC2">"http://localhost:2633/RPC2"</a>);<br>
I got the same error:<br>
<i>Error message: [HostPoolInfo] User couldn't be authenticated,
aborting call.</i><br>
<pre class="moz-signature" cols="72">--
Hoang Thai Xuan Khoa
Ho Chi Minh city, Vietnam</pre>
</body>
</html>