Fix the registry to work with unicode usernames in LDAP.

This commit is contained in:
Jake Moshenko 2014-05-13 15:22:31 -04:00
parent f049f738da
commit 2da8b4737e
4 changed files with 57 additions and 40 deletions

View file

@ -70,7 +70,7 @@ def process_basic_auth(auth):
logger.debug('Invalid basic auth format.')
return
credentials = b64decode(normalized[1]).split(':', 1)
credentials = [part.decode('utf-8') for part in b64decode(normalized[1]).split(':', 1)]
if len(credentials) != 2:
logger.debug('Invalid basic auth credential format.')