Returns a list of this group's children.

        :param page_size (optional): Many servers have a limit on the number of results that can be returned.
                                     Paged searches circumvent that limit. Adjust the page_size to be below the
                                     server's size limit. (default: 500)
        :type page_size: int

def get_children(self, page_size=500):
        """ Returns a list of this group's children.

        :param page_size (optional): Many servers have a limit on the number of results that can be returned.
                                     Paged searches circumvent that limit. Adjust the page_size to be below the
                                     server's size limit. (default: 500)
        :type page_size: int

        """

        children = []

        object_class = self.get_attribute("objectClass")
        group_type = object_class[-1] if object_class else None

        if group_type == "group":
            connection_dict = self.GROUP_CHILDREN_SEARCH
        elif group_type == "organizationalUnit":
            connection_dict = self.OU_CHILDREN_SEARCH
        else:
            logger.debug("Unable to process children of group {group_dn} with type {group_type}.".format(
                group_dn=self.group_dn,
                group_type=group_type
            ))
            return []

        try:
            entry_list = self.ldap_connection.extend.standard.paged_search(
                search_base=connection_dict['base_dn'],
                search_filter=connection_dict['filter_string'],
                search_scope=connection_dict['scope'],
                attributes=connection_dict['attribute_list'],
                paged_size=page_size
            )
        except LDAPInvalidFilterError:
            logger.debug("Invalid Filter!: {filter}".format(filter=connection_dict['filter_string']))

            return []
        else:
            results = [result["dn"] for result in entry_list if result["type"] == "searchResEntry"]

            for result in results:
                children.append(
                    ADGroup(
                        group_dn=result, server_uri=self.server_uri, base_dn=self.base_dn,
                        user_lookup_attr=self.user_lookup_attr, group_lookup_attr=self.group_lookup_attr,
                        attr_list=self.attr_list, bind_dn=self.bind_dn, bind_password=self.bind_password,
                        user_search_base_dn=self.user_search_base_dn,
                        group_search_base_dn=self.user_search_base_dn
                    )
                )

            return children