summaryrefslogtreecommitdiff
path: root/python/qpid/sasl.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-06-30 14:36:43 +0000
committerRafael H. Schloming <rhs@apache.org>2010-06-30 14:36:43 +0000
commitf273829ff0f8bca451991ce0f6f95ea4a0da42a4 (patch)
treed25c78657fc65fd4daf6228abbc2e98855fa8e4a /python/qpid/sasl.py
parent929f6ff2138e848c8d906fb623959bde464d9bb3 (diff)
downloadqpid-python-f273829ff0f8bca451991ce0f6f95ea4a0da42a4.tar.gz
fixed auth username for sasl
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959333 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/sasl.py')
-rw-r--r--python/qpid/sasl.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/qpid/sasl.py b/python/qpid/sasl.py
index 6645903382..d4c15bd923 100644
--- a/python/qpid/sasl.py
+++ b/python/qpid/sasl.py
@@ -66,7 +66,11 @@ class WrapperClient:
raise SASLError(self._cli.getError())
def auth_username(self):
- return self._cli.getUserId()
+ status, result = self._cli.getUserId()
+ if status:
+ return result
+ else:
+ raise SASLError(self._cli.getError())
class PlainClient: