<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
<br>
created with "oneuser create test test".
<br>
<br>
The OCCI server is configured in /etc/one/occi-server.conf with:
<br>
<br>
* :auth: basic
<br>
* :server: localhost
<br>
* :port: 4567
<br>
<br>
The machine is reachable at IP 192.168.23.44
<br>
<br>
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
<br>
not change anything.
<br>
<br>
I can easily access ONE configuration through the Sunstone interface
<br>
with oneadmin:oneadmin though it does not use OCCI so I don't think
it's
<br>
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
<br>
etc.. but no luck.
<br>
<br>
It only works if I send the request with test:sha1(test) which
implies I must sha1 the password before sending the request<br>
<br>
* How do I send a proper request to the OCCI server with cURL?
<br>
* As last resort, how can I disable authentication? Documentation
[1]
<br>
only says either "basic" or "x509". I tried "none" and "false"
but
<br>
it didn't work, I got a 500 Internal server error since ":auth:"
was
<br>
not specified properly
<br>
<br>
I'm just using cURL to test if it's working properly, as I will
later
<br>
try to do the same from a Java client. Which leads me to the next
<br>
question: where do I find a Java client which supports user
<br>
authentication? I tried occi4java[2] which looks pretty complete but
<br>
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>
<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>