Hi Shashank, I'm copying your email to the list (I guess you meant to send it here):<br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi<br><br>Thanks for guiding me through the examples. I will go through them to gain a better understanding. Consider the following code where I am able to fetch information w.r.t Virtual Machines providing invalid user name and password.<br>
<br> Client oneClient = new Client("someuser:password","<a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a>");<br> int vmID = 2;<br><br> VirtualMachine vm = new VirtualMachine(vmID,oneClient);<div class="im">
<br>
<a href="http://vm.info" target="_blank">vm.info</a>();<br> System.out.println(vm.getName());<br></div> System.out.println(vm.stateStr());<br><br>The output of the above code is:<br>ReactOS<br>
DONE<br><br>Please note that there is only one valid user with name shashank as shown below.<br>
<br>Also, I have noticed that operations which tend to change the state of cloud entity objects are not allowed with these invalid credentials. Only operations which involve fetching state information are allowed. Is this a desired behavior ?<br>
<br>root@shashank:/# oneuser list<br> ID USER PASSWORD ENABLE<br> 0 shashank 8b832b62abf2bd5180f6a225e4b99cac1392ea10 True<br>root@shashank:/# onehost list<br>
ID NAME RVM TCPU FCPU ACPU TMEM FMEM STAT<br> 4 localhost 1 200 78 78 1801900 1256364 on<br>root@shashank:/# onevm list<br> ID USER NAME STAT CPU MEM HOSTNAME TIME<br>
3 shashank ReactOS runn 0 524288 localhost 00 00:07:59<br>root@shashank:/# <br><br></blockquote><div><br><br>Yes, right now this is how OpenNebula works. The xml-rpc server side, in the ONE core, allows information request for some pools without checking who is asking.<br>
If you need to change this behaviour for some reason, let us know and we'll help you to narrow down the c++ methods you have to modify.<br><br>Regards,<br>Carlos.<br><br clear="all">Carlos Martín, Cloud Technology Engineer/Researcher<br>
DSA
Research Group: web <a href="http://dsa-research.org">http://dsa-research.org</a> and blog
<a href="http://blog.dsa-research.org">http://blog.dsa-research.org</a><br>OpenNebula Open Source Toolkit for Cloud
Computing: <a href="http://www.OpenNebula.org">http://www.OpenNebula.org</a><br></div></div>