diff options
author | Gordon Sim <gsim@apache.org> | 2014-09-19 15:30:29 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2014-09-19 15:30:29 +0000 |
commit | dbed0ba002fc8fe680659063dada09b171b3168b (patch) | |
tree | f6751b34cd353cf3aa57234435644976cef85323 /qpid/python | |
parent | 134f6ebf9a3edff5cb859d0b52b1b970d219aee7 (diff) | |
download | qpid-python-dbed0ba002fc8fe680659063dada09b171b3168b.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@1626249 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r-- | qpid/python/qpid/sasl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/python/qpid/sasl.py b/qpid/python/qpid/sasl.py index 25de6dec45..85e31e3e1b 100644 --- a/qpid/python/qpid/sasl.py +++ b/qpid/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()) |