Skip to content
Snippets Groups Projects
Commit 2709bea1 authored by Julian Rother's avatar Julian Rother
Browse files

Added more logging

parent f05dfb70
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,15 @@ class RequestHandler(SimpleLDAPRequestHandler):
def setup(self):
super().setup()
def handle(self):
print('CONNECT')
super().handle()
print('DISCONNECT')
def handle_message(self, shallowmsg):
print('MSG', shallowmsg.data)
return super().handle_message(shallowmsg)
def do_bind_simple_authenticated(self, dn, password):
print('BIND plain', dn)
......@@ -175,7 +183,7 @@ class RequestHandler(SimpleLDAPRequestHandler):
supports_sasl_plain = True
def do_bind_sasl_plain(self, identity, password, authzid=None):
print('BIND sasl', dn)
print('BIND sasl', identity, authzid)
if authzid is not None and identity != authzid:
raise LDAPInvalidCredentials()
user = self.api.post('checkpassword', loginname=identity, password=password)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment