diff options
author | Rafael H. Schloming <rhs@apache.org> | 2010-08-11 11:58:49 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2010-08-11 11:58:49 +0000 |
commit | 1cc16b7d51a771b3be549fad8951c34c63c56c81 (patch) | |
tree | 17fc228d6eb6e099c9ab4d7cc6631fec31905c55 /python/qpid/sasl.py | |
parent | 743495d8c68b40caefa22b8be8087555954ee5f6 (diff) | |
download | qpid-python-1cc16b7d51a771b3be549fad8951c34c63c56c81.tar.gz |
fix error reporting for negotiation failure in sasl stub
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@984386 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/sasl.py')
-rw-r--r-- | python/qpid/sasl.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/qpid/sasl.py b/python/qpid/sasl.py index d4c15bd923..fed6deac20 100644 --- a/python/qpid/sasl.py +++ b/python/qpid/sasl.py @@ -89,6 +89,8 @@ class PlainClient: 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()) + else: + raise SASLError("sasl negotiation failed: no mechanism agreed") def step(self, challenge): pass |