From 0b90b60d4dbcf82b5770652c5b19e940b96f28d2 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 14 Apr 2008 08:57:06 +0000 Subject: 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@647704 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/qpid/testlib.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qpid/python') diff --git a/qpid/python/qpid/testlib.py b/qpid/python/qpid/testlib.py index b6cf6d7446..931face3a4 100644 --- a/qpid/python/qpid/testlib.py +++ b/qpid/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): -- cgit v1.2.1