summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2014-09-19 15:30:29 +0000
committerGordon Sim <gsim@apache.org>2014-09-19 15:30:29 +0000
commitd68ccc5563408073ded0f6b6ec2f34c684ff3a5d (patch)
tree61edf8f872de7c2c5a17053d5fe3bb760c7bf852
parente7c95b3d419d4f377b6ffe06de83bffce3df5ff6 (diff)
downloadqpid-python-d68ccc5563408073ded0f6b6ec2f34c684ff3a5d.tar.gz
QPID-6109: don't require password to be specified to allow PLAIN
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1626249 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--python/qpid/sasl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qpid/sasl.py b/python/qpid/sasl.py
index 25de6dec45..85e31e3e1b 100644
--- a/python/qpid/sasl.py
+++ b/python/qpid/sasl.py
@@ -88,7 +88,7 @@ class PlainClient:
def start(self, mechanisms):
mechs = mechanisms.split()
- if self.attrs.get("username") and self.attrs.get("password") and "PLAIN" in mechs:
+ if self.attrs.get("username") and "PLAIN" in mechs:
return "PLAIN", "\0%s\0%s" % (self.attrs.get("username"), self.attrs.get("password"))
elif "ANONYMOUS" in mechs:
return "ANONYMOUS", "%s@%s" % (self.attrs.get("username"), socket.gethostname())