diff options
author | Ted Ross <tross@apache.org> | 2009-11-11 17:33:33 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2009-11-11 17:33:33 +0000 |
commit | ea3ed931fde51d95416c8f25520908f170ef716b (patch) | |
tree | 1736b3e06ef3391b243b905b883792a40b3eba2d /python/commands | |
parent | fe2b5f5849574d7281c16b6ba066ced2d25184e2 (diff) | |
download | qpid-python-ea3ed931fde51d95416c8f25520908f170ef716b.tar.gz |
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
Diffstat (limited to 'python/commands')
-rwxr-xr-x | python/commands/qpid-route | 4 |
1 files changed, 2 insertions, 2 deletions
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 |