code: def matches(self, ldap_filter):
          
          if not self.is_valid():
              # Do not test invalid configurations
              return False
  
          return ldap_filter.matches(self.__properties)
docs: Tests if this configuration matches the given filter.
  
          :param ldap_filter: A parsed LDAP filter object
          :return: True if the properties of this configuration matches the
                   filter