Skip to content
Snippets Groups Projects
Verified Commit ecef8b09 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

authenticator: Fix client lookup

Make sure the client string is in lower-case before looking that up in a
dictionary.
parent 89922ce9
Branches
Tags
No related merge requests found
......@@ -87,7 +87,7 @@ class AuthClient(basic.LineReceiver):
match = auth.match(line)
if match:
mode, client, challenge, response = match.groups()
log_info = cred_cache.get(client)
log_info = cred_cache.get(client.lower())
if log_info:
if log_info[1] == 'Y': # Always answer yes, DEBUG ONLY!
print "Debug YES"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment