def process_servers(self, item):
        """
        Function that is called to process the items obtain by the LDAP search when listing PKI Enrollment Servers.
        """
        if not isinstance(item, ldapasn1.SearchResultEntry):
            return

        urls = []
        host_name = None
        cn = None

        try:
            for attribute in item["attributes"]:
                if str(attribute["type"]) == "dNSHostName":
                    host_name = attribute["vals"][0].asOctets().decode("utf-8")
                if str(attribute["type"]) == "cn":
                    cn = attribute["vals"][0].asOctets().decode("utf-8")
                elif str(attribute["type"]) == "msPKI-Enrollment-Servers":
                    values = attribute["vals"]

                    for value in values:
                        value = value.asOctets().decode("utf-8")
                        match = self.regex.search(value)
                        if match:
                            urls.append(match.group(1))
        except Exception as e:
            entry = host_name or "item"
            self.context.log.fail("Skipping {}, cannot process LDAP entry due to error: '{}'".format(entry, str(e)))

        if host_name:
            self.context.log.highlight("Found PKI Enrollment Server: {}".format(host_name))
        if cn:
            self.context.log.highlight("Found CN: {}".format(cn))
        for url in urls:
            self.context.log.highlight("Found PKI Enrollment WebService: {}".format(url))

        Function that is called to process the items obtain by the LDAP search when listing PKI Enrollment Servers.
        
cme/modules/adcs.py