Hi, I've not used the Terremark variant of vCloud driver, but this is what should work: conn = Driver(TERREMARK_USERNAME, TERREMARK_PASSWORD)
The driver will perform base64 encoding and joining "user:name" on your behalf. As an example this is what's done for vCloud v1.5: from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver # Do this only if API has self signed SSL certificate import libcloud.security libcloud.security.VERIFY_SSL_CERT = False Driver = get_driver(Provider.VCLOUD) conn = Driver("user@organisation", "password", host="hostname.com", api_version="1.5") conn.list_images() You should not need api_version and host for v0.8. I suggest that you enable libcloud debugging and observe the raw API request/responses for any hints as to the cause of the issue. $ export LIBCLOUD_DEBUG=/tmp/raw $ tail -f /tmp/raw $ python ..... Please also let us know which version of libcloud are you using? On 11 May 2012 06:00, Noel Milton Vega <nmv...@computingarchitects.com>wrote: > Hello friends: > > I was wondering if anyone had a Terremark libcloud authentication > example, similar to the ones indicated here for Amazon EC2 and Rackspace: > > http://libcloud.apache.org/getting-started.html > > I've tried a few variations of the examples provided in the above link for > the Terremark case (a vCloud API implementation), but received an "Invalid > Credentials with the provider" Exception in each case. > > So far I've tried passing Authentication using the three (3) variations > shown below (commented out) for "conn = Driver()". > > Thank you in advance! > > ############################################### > #! /usr/bin/env python3 > > import libcloud.compute.types > import libcloud.compute.providers > import base64 > # > TERREMARK_USERNAME = "some@email.address" > TERREMARK_PASSWORD = "some-password" > TERREMARK_B64AUTH = base64.b64encode(bytes(TERREMARK_USERNAME + ":" + > TERREMARK_PASSWORD, encoding='utf-8')) > # > Driver = > libcloud.compute.providers.get_driver(libcloud.compute.providers.Provider.TERREMARK) > > #conn = Driver(TERREMARK_USERNAME, TERREMARK_PASSWORD) > #conn = Driver(TERREMARK_B64AUTH) > #conn = Driver(TERREMARK_USERNAME + ":" + TERREMARK_PASSWORD) > > [ ... snip ... ] > ######################################### > -- sengork