# Issue with connection from C to OpenNebula

**URL:** <https://forum.opennebula.io/t/issue-with-connection-from-c-to-opennebula/2372>\
**Category:** Integration Support\
**Created:** [June 9, 2016, 2:58pm UTC](https://forum.opennebula.io/t/issue-with-connection-from-c-to-opennebula/2372 "2016-06-09T14:58:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexey\_Shalin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alexey_shalin/32/7247_2.png) [@Alexey\_Shalin](https://forum.opennebula.io/u/Alexey_Shalin)\
**Post date:** [June 9, 2016, 2:58pm UTC](https://forum.opennebula.io/t/issue-with-connection-from-c-to-opennebula/2372/1 "2016-06-09T14:58:19Z")

</div>

## Hello Here is my code:

## string const serverUrl(“[http://IP:2633/RPC2](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

---

<div class="post-metadata">

**Author:** ![cmartin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/cmartin/32/4278_2.png) [@cmartin](https://forum.opennebula.io/u/cmartin)\
**Post date:** [June 9, 2016, 3:02pm UTC](https://forum.opennebula.io/t/issue-with-connection-from-c-to-opennebula/2372/2 "2016-06-09T15:02:05Z")

</div>

Hi,

In case you didn’t find it, our c++ client is here:

> <https://github.com/OpenNebula/one/blob/master/include/Client.h>

  

> <https://github.com/OpenNebula/one/blob/master/src/client/Client.cc>

---

<div class="post-metadata">

**Author:** ![Alexey\_Shalin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alexey_shalin/32/7247_2.png) [@Alexey\_Shalin](https://forum.opennebula.io/u/Alexey_Shalin)\
**Post date:** [June 10, 2016, 5:32am UTC](https://forum.opennebula.io/t/issue-with-connection-from-c-to-opennebula/2372/3 "2016-06-10T05:32:03Z")

</div>

Big thx  
I will try it
