Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
0.13
-
None
-
None
Description
If the python client uses the sasl service to provide authentication, then the authenticated user-id is provided via the connection object. However, if sasl is not available, the python client will use its integrated PLAIN or ANONYMOUS mechanism. In this case, no information appears to be available to determine the actual user-id used (or anonymous). For example:
self.conn = Connection(connSock, username=self.authUser, password=self.authPass,
mechanism = self.mechanisms, host=self.host, service="qpidd")
uid = self.conn.user_id
'uid' above is None if internal PLAIN or ANONYMOUS was used. It is set if sasl was used (and could be 'anonymous' etc).
It would be consistent if the uid was set in either case (sasl or non-sasl).