Author: gsim
Date: Mon Apr 14 01:57:06 2008
New Revision: 647704
URL: http://svn.apache.org/viewvc?rev=647704&view=rev
Log:
QPID-917: Use PLAIN (rather than the non-standard AMQPLAIN) as the SASL
mechanism when authenticating python test clients.
Modified:
incubator/qpid/trunk/qpid/python/qpid/testlib.py
Modified: incubator/qpid/trunk/qpid/python/qpid/testlib.py
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/qpid/testlib.py?rev=647704&r1=647703&r2=647704&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/qpid/testlib.py (original)
+++ incubator/qpid/trunk/qpid/python/qpid/testlib.py Mon Apr 14 01:57:06 2008
@@ -192,7 +192,10 @@
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):