summaryrefslogtreecommitdiff
path: root/python/qpid/testlib.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-04-14 08:57:06 +0000
committerGordon Sim <gsim@apache.org>2008-04-14 08:57:06 +0000
commit1bf367821416484ebbb14480a5b68d1e6110b4c9 (patch)
tree9243c71fe0e0c00242f7464dbd17386657928e9c /python/qpid/testlib.py
parentbceb47104dcb0ae8cab577fda8c78d6c3fc5f01e (diff)
downloadqpid-python-1bf367821416484ebbb14480a5b68d1e6110b4c9.tar.gz
QPID-917: Use PLAIN (rather than the non-standard AMQPLAIN) as the SASL mechanism when authenticating python test clients.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@647704 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/testlib.py')
-rw-r--r--python/qpid/testlib.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/qpid/testlib.py b/python/qpid/testlib.py
index b6cf6d7446..931face3a4 100644
--- a/python/qpid/testlib.py
+++ b/python/qpid/testlib.py
@@ -192,7 +192,10 @@ Options:
user = user or self.user
password = password or self.password
client = qpid.client.Client(host, port, spec)
- client.start({"LOGIN": user, "PASSWORD": password}, tune_params=tune_params)
+ if self.use08spec():
+ client.start({"LOGIN": user, "PASSWORD": password}, tune_params=tune_params)
+ else:
+ client.start("\x00" + user + "\x00" + password, mechanism="PLAIN", tune_params=tune_params)
return client
def get_spec_file(self, fname):