summaryrefslogtreecommitdiff
path: root/qpid/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
commite9f11f11f276b97790b143731370e9906b07fde5 (patch)
treead68035f71b2873608ac8ace8743434d36bb6d51 /qpid/python
parentdb1a1bd768d057d04d8fb47c22b3a38952eb5ec5 (diff)
downloadqpid-python-e9f11f11f276b97790b143731370e9906b07fde5.tar.gz
fixed auth username for sasl
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@959333 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/sasl.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/qpid/python/qpid/sasl.py b/qpid/python/qpid/sasl.py
index 6645903382..d4c15bd923 100644
--- a/qpid/python/qpid/sasl.py
+++ b/qpid/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: