diff --git a/server.py b/server.py index 99257bc06eecda314615f2049ca6cfde8b362820..82fd6eb4e4033d6cf6bcc178a5b1c822cfd6ba41 100644 --- a/server.py +++ b/server.py @@ -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)