Skip to content

Commit 40fc2ef

Browse files
authored
Merge pull request #10 from rysiekpl/master
Minor bugfixes
2 parents c61f013 + 24bf24f commit 40fc2ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nginx-ldap-auth-daemon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def do_GET(self):
7171

7272
try:
7373
auth_decoded = base64.b64decode(auth_header[6:])
74-
user, passwd = auth_decoded.split(':', 2)
74+
user, passwd = auth_decoded.split(':', 1)
7575

7676
except:
7777
self.auth_failed(ctx)
@@ -131,7 +131,7 @@ def log_message(self, format, *args):
131131
if not hasattr(self, 'ctx'):
132132
user = '-'
133133
else:
134-
user = ctx['user']
134+
user = self.ctx['user']
135135

136136
sys.stdout.write("%s - %s [%s] %s\n" % (addr, user,
137137
self.log_date_time_string(), format % args))

0 commit comments

Comments
 (0)