<div dir="ltr">Hi,<div><br></div><div class="gmail_extra"><div class="gmail_quote">On Sat, Sep 13, 2014 at 8:03 PM, D. Strout <span dir="ltr"><<a href="mailto:dstrout@dstrout.net" target="_blank">dstrout@dstrout.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">I am trying to understand how to authorize to the OpenNebula XML-RPC API. I have read the docs, and from them tried two different things. First, I did HTTP basic authentication with an admin username and password. This gave me an HTTP 401 unauthorized error. Next I tried passing the username and password as a parameter to the API in the form username:password, but I still got the 401 error. How is authentication supposed to work?</div></div></div></blockquote><div><br></div><div>You only need to set the first xml-rpc parameter to the string "username:password". Maybe the oned.log file contains more information about the failed requests...</div><div>See the ruby [1] and java [2] clients for a reference.<br></div><div><br></div><div>Regards.</div><div><br></div><div>[1] <a href="https://github.com/OpenNebula/one/blob/master/src/oca/ruby/opennebula/client.rb#L156">https://github.com/OpenNebula/one/blob/master/src/oca/ruby/opennebula/client.rb#L156</a><br></div><div>[2] <a href="https://github.com/OpenNebula/one/blob/master/src/oca/java/src/org/opennebula/client/Client.java#L81">https://github.com/OpenNebula/one/blob/master/src/oca/java/src/org/opennebula/client/Client.java#L81</a></div><div><div dir="ltr"><br class="">--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" target="_blank" style="color:rgb(42,93,176)"></a></span></div></div></div></div><div> </div></div><br></div></div>