code: def compile(self, node, *args, **kwargs):
          
          if isinstance(node, WhereNode):
              return where_node_as_ldap(node, self, self.connection)
          return super(SQLCompiler, self).compile(node, *args, **kwargs)
docs: Parse a WhereNode to a LDAP filter string.