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

Fixed critical control handling in SimpleLDAPRequestHandler.handle_search

parent add1827b
Branches
Tags
No related merge requests found
......@@ -395,6 +395,7 @@ class SimpleLDAPRequestHandler(BaseLDAPRequestHandler):
raise exceptions.LDAPAuthMethodNotSupported()
def handle_search(self, op, controls=None):
reject_critical_controls(controls)
for dn, attributes in self.do_search(op.baseObject, op.scope, op.filter):
pattributes = [ldap.PartialAttribute(name, values) for name, values in attributes.items()]
if 'subschemaSubentry' not in attributes and self.subschema is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment