Skip to content

Commit

Permalink
Merge pull request #10 from rysiekpl/master
Browse files Browse the repository at this point in the history
Minor bugfixes
vl-homutov authored Oct 10, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents c61f013 + 24bf24f commit 40fc2ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx-ldap-auth-daemon.py
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@ def do_GET(self):

try:
auth_decoded = base64.b64decode(auth_header[6:])
user, passwd = auth_decoded.split(':', 2)
user, passwd = auth_decoded.split(':', 1)

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

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

0 comments on commit 40fc2ef

Please sign in to comment.