def load_ldap_settings(config):
    """ Load all the ldap configuration settings into a dict
    LDAP configuration settings contain an ldap_ prefix.

    Args:
        config (dict): the global config

    Returns:
        (dict) All the ldap_ settings
    """
    ldap_config  = {}
    for key, value in config.items():
        if key.lower().startswith("ldap_"):
            ldap_config[key] = value
    return ldap_config