You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2010/06/30 16:36:44 UTC

svn commit: r959333 - /qpid/trunk/qpid/python/qpid/sasl.py

Author: rhs
Date: Wed Jun 30 14:36:43 2010
New Revision: 959333

URL: http://svn.apache.org/viewvc?rev=959333&view=rev
Log:
fixed auth username for sasl

Modified:
    qpid/trunk/qpid/python/qpid/sasl.py

Modified: qpid/trunk/qpid/python/qpid/sasl.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/sasl.py?rev=959333&r1=959332&r2=959333&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/sasl.py (original)
+++ qpid/trunk/qpid/python/qpid/sasl.py Wed Jun 30 14:36:43 2010
@@ -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:
 



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org