summaryrefslogtreecommitdiff
path: root/qpid/python/commands
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2009-11-11 17:33:33 +0000
committerTed Ross <tross@apache.org>2009-11-11 17:33:33 +0000
commitbe410c49703e072fc8ceed97179453ee007a11c1 (patch)
treef89781f3704aeb5247ff370d3e271923b9f03acc /qpid/python/commands
parent7a86ab591654d744148560e29f7a53553baa0512 (diff)
downloadqpid-python-be410c49703e072fc8ceed97179453ee007a11c1.tar.gz
Added full SASL authentication and security layer for the Python client.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@834975 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/commands')
-rwxr-xr-xqpid/python/commands/qpid-route4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/python/commands/qpid-route b/qpid/python/commands/qpid-route
index b515b91267..9965047000 100755
--- a/qpid/python/commands/qpid-route
+++ b/qpid/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