[one-users] issue with connection from C to OpenNebula

Алексей Шалин cash at hoster.kg
Mon Jun 6 21:53:49 PDT 2016


Hello

Here is my code:

----------------------------------------------------------------------------

string const serverUrl("http://IP:2633/RPC2");

string const methodName("one.user.info");

xmlrpc_c::clientSimple myClient;

xmlrpc_c::value result;

myClient.call(serverUrl, methodName, "ss", &result,
"oneadmin","one_admin_pass");

----------------------------------------------------------------------------

 

 

in oned.log : i'm getting: 

Tue Jun  7 10:15:56 2016 [Z0][ReM][D]: Req:1120 UID:0 UserInfo invoked , "
one_admin_pass "

Tue Jun  7 10:15:56 2016 [Z0][ReM][E]: Req:1120 UID:0 UserInfo result
FAILURE [UserInfo] User couldn't be authenticated, aborting call.

 

 

Any one have example code ? or can any one help with it ? how pass to server
RPC2 login and password from C ?

 

Thx

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20160607/d1a45972/attachment.htm>


More information about the Users mailing list