The 'ldap' provider misses 'ldap' extra dep (which adds ldap3 pip dependency).
setup.py
"""setuptools.Distribution subclass with Airflow specific behaviour"""
    
    def parse_config_files(self, *args, **kwargs):  
        """
        Ensure that when we have been asked to install providers from sources
        that we don't *also* try to install those providers from PyPI
        """
        super().parse_config_files(*args, **kwargs)
        if os.getenv('INSTALL_PROVIDERS_FROM_SOURCES') == 'true':
            self.install_requires = [  
                req for req in self.install_requires if not req.startswith('apache-airflow-providers-')
            ]
def get_provider_package_from_package_id(package_id: str):
    """
    Builds the name of provider package out of the package id provided/
    :param package_id: id of the package (like amazon or microsoft.azure)
    :return: full name of package in PyPI
    """
    package_suffix = package_id.replace(".", "-")
    return f"apache-airflow-providers-{package_suffix}"
def do_setup():