From ea3ed931fde51d95416c8f25520908f170ef716b Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Wed, 11 Nov 2009 17:33:33 +0000 Subject: Added full SASL authentication and security layer for the Python client. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834975 13f79535-47bb-0310-9956-ffa450edef68 --- python/commands/qpid-route | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/commands') diff --git a/python/commands/qpid-route b/python/commands/qpid-route index b515b91267..9965047000 100755 --- a/python/commands/qpid-route +++ b/python/commands/qpid-route @@ -93,12 +93,12 @@ class RouteManager: broker = brokers[0] link = self.getLink() if link == None: - if self.remote.authName == "anonymous": + if not self.remote.authName or self.remote.authName == "anonymous": mech = "ANONYMOUS" else: mech = "PLAIN" res = broker.connect(self.remote.host, self.remote.port, _durable, - mech, self.remote.authName, self.remote.authPass, + mech, self.remote.authName or "", self.remote.authPass or "", _transport) if _verbose: print "Connect method returned:", res.status, res.text -- cgit v1.2.1