summaryrefslogtreecommitdiff
path: root/python
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
commitaa6a5698e956a95bf546efecd65667f8557279c2 (patch)
treed25c78657fc65fd4daf6228abbc2e98855fa8e4a /python
parentbe80ea2ee62801e68b96ec75deeb0227d34b9211 (diff)
downloadqpid-python-aa6a5698e956a95bf546efecd65667f8557279c2.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')
-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: