View | Details | Raw Unified | Return to bug 46870 | Differences between
and this patch

Collapse All | Expand All

(-)a/management/univention-management-console/univention-management-console-web-server (-4 / +5 lines)
 Lines 152-160   class SessionClient(object): Link Here 
152
	def _authenticated(self, success, response):
152
	def _authenticated(self, success, response):
153
		"""Callback function for 'authenticated' from UMCP-Server."""
153
		"""Callback function for 'authenticated' from UMCP-Server."""
154
		CORE.process('SessionClient(0x%x): _authenticated: success=%s  status=%s  message=%s' % (id(self), success, response.status, response.message))
154
		CORE.process('SessionClient(0x%x): _authenticated: success=%s  status=%s  message=%s' % (id(self), success, response.status, response.message))
155
		self._auth_response.status = response.status
155
		self._auth_response = response
156
		self._auth_response.result = response.result
156
		# self._auth_response.status = response.status
157
		self._auth_response.message = response.message
157
		# self._auth_response.result = response.result
158
		# self._auth_response.message = response.message
158
		self._auth_response_queue.put(self._auth_response)
159
		self._auth_response_queue.put(self._auth_response)
159
		# release queue object
160
		# release queue object
160
		self._auth_response_queue = None
161
		self._auth_response_queue = None
 Lines 162-168   class SessionClient(object): Link Here 
162
	def authenticate_user(self, request, response_queue):
163
	def authenticate_user(self, request, response_queue):
163
		"""Send authentication request to UMC server."""
164
		"""Send authentication request to UMC server."""
164
		CORE.info('SessionClient(0x%x): authenticate_user: sending authentication request for user %r' % (id(self), request.body.get('username')))
165
		CORE.info('SessionClient(0x%x): authenticate_user: sending authentication request for user %r' % (id(self), request.body.get('username')))
165
		self._auth_response = Response(request)
166
		# self._auth_response = Response(request)
166
		self._auth_response_queue = response_queue
167
		self._auth_response_queue = response_queue
167
		self.client.authenticate(request)
168
		self.client.authenticate(request)
168
169

Return to bug 46870