<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Cheers,<br>
    <br>
    I have some questions about OCCI authentication with ONE.<br>
    <br>
    I set up ONE and the OCCI server fine. <br>
    <br>
    I start them with "./onestart.sh" and "occi-server start". <br>
    I have 2 users: oneadmin:oneadmin and test:test. The second one was
    created with "oneuser create test test".<br>
    <br>
    The OCCI server is configured in /etc/one/occi-server.conf with:<br>
    <ul>
      <li>:auth: basic</li>
      <li>:server: localhost</li>
      <li>:port: 4567</li>
    </ul>
    <p>The machine is reachable at IP 192.168.23.44<br>
    </p>
    If I send a cURL:<br>
    <br>
    curl <a class="moz-txt-link-freetext" href="http://test:test@192.168.23.44:4567/-/">http://test:test@192.168.23.44:4567/-/</a> <br>
    <br>
    I always get a 401 Authentication Failure. Using oneadmin:oneadmin
    does not change anything.<br>
    <br>
    I can easily access ONE configuration through the Sunstone interface
    with oneadmin:oneadmin though it does not use OCCI so I don't think
    it's related to my problem.<br>
    <br>
    I tried with curl --basic --user test:test <a class="moz-txt-link-freetext" href="http://etc">http://etc</a>.. and curl -X
    GET etc.. but no luck.<br>
    <ul>
      <li>How do I send a proper request to the OCCI server with cURL?</li>
      <li>As last resort, how can I disable authentication?
        Documentation [1] only says either "basic" or "x509". I tried
        "none" and "false" but it didn't work, I got a 500 Internal
        server error since ":auth:" was not specified properly<br>
      </li>
    </ul>
    I'm just using cURL to test if it's working properly, as I will
    later try to do the same from a Java client. Which leads me to the
    next question: where do I find a Java client which supports user
    authentication? I tried occi4java[2] which looks pretty complete but
    nowhere I found the possibility to pass the "user:pass" parameter.<br>
    <br>
    Thank you,<br>
    <br>
    have a nice day<br>
    <br>
    [1]
    <a class="moz-txt-link-freetext" href="http://opennebula.org/documentation:rel3.0:occicg#authorization_methods">http://opennebula.org/documentation:rel3.0:occicg#authorization_methods</a><br>
    [2] <a class="moz-txt-link-freetext" href="https://github.com/occi4java/occi4java">https://github.com/occi4java/occi4java</a><br>
    <div class="moz-signature">-- <br>
      Dr. Stefano Ghio - ENG Engineering Italy<br>
      <br>
      Website: <a href="http://groglogs.blogspot.com/">http://groglogs.blogspot.com/</a><br>
      <br>
      <b>If you received this message but you are not its recipient,
        please ignore it and warn me, thank you.</b></div>
  </body>
</html>