Skip to content

Commit 9a44892

Browse files
committed
Since ONe 3.2 the password dont need to be hashed anymore.
* Since OpenNebula 3.2 XML-RPC clients don't need to hash the password from the one_auth file. See: http://archives.opennebula.org/documentation:archives:rel3.2:compatibility#developers_and_integrators
1 parent 099ad1c commit 9a44892

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Bindings for XMLRPC OpenNebula Cloud API
1111

1212
Documentation
1313
-------------
14-
see http://lukaszo.github.com/python-oca/index.html and http://www.opennebula.org/documentation:rel3.0:api
14+
see http://lukaszo.github.com/python-oca/index.html and http://www.opennebula.org/documentation:rel3.2:api
1515

1616
All `allocate` functions are implemented as static methods.
1717

docs/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
API Documentation
22
=================
33

4-
See http://www.opennebula.org/documentation:rel3.0:api
4+
See http://www.opennebula.org/documentation:rel3.2:api
55

66
.. toctree::
77
:maxdepth: 2

oca/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def send_host(self, connection, host):
4949
class Client(object):
5050
'''
5151
The client class, represents the connection with the core and handles the
52-
xml-rpc calls(see http://www.opennebula.org/documentation:rel3.0:api)
52+
xml-rpc calls(see http://www.opennebula.org/documentation:rel3.2:api)
5353
'''
5454
DEFAULT_ONE_AUTH = "~/.one/one_auth"
5555
ONE_AUTH_RE = re.compile('^(.+?):(.+)$')
@@ -75,10 +75,6 @@ def __init__(self, secret=None, address=None, proxy=None):
7575
else:
7676
raise OpenNebulaException("Authorization file malformed")
7777

78-
if password.startswith('plain:'):
79-
password = password.split(':', 1)[1]
80-
else:
81-
password = hashlib.sha1(password).hexdigest()
8278
self.one_auth = '{0}:{1}'.format(user, password)
8379

8480
if address:

0 commit comments

Comments
 (0)