# HG changeset patch # User Marcin Kuzminski # Date 2013-01-19 15:28:18 # Node ID 264d9c930c17e47e117093b5035a96ce6fd58961 # Parent 77e8781c5c9ce1f48c182c255dbbd83e847aa8d0 added some more logging into get_container_username function diff --git a/rhodecode/lib/auth.py b/rhodecode/lib/auth.py --- a/rhodecode/lib/auth.py +++ b/rhodecode/lib/auth.py @@ -276,15 +276,17 @@ def get_container_username(environ, conf if str2bool(config.get('container_auth_enabled', False)): from paste.httpheaders import REMOTE_USER username = REMOTE_USER(environ) + log.debug('extracted REMOTE_USER:%s' % (username)) if not username and str2bool(config.get('proxypass_auth_enabled', False)): username = environ.get('HTTP_X_FORWARDED_USER') + log.debug('extracted HTTP_X_FORWARDED_USER:%s' % (username)) if username: # Removing realm and domain from username username = username.partition('@')[0] username = username.rpartition('\\')[2] - log.debug('Received username %s from container' % username) + log.debug('Received username %s from container' % username) return username