Skip to content

OpenLDAP integration custom_queries search_scope option is ignored #20685

@djesionek

Description

@djesionek

Hi,

according to your documentation of the OpenLDAP integration custom queries are supposed to support the search_scope setting:
https://github.com/DataDog/integrations-core/blob/master/openldap/datadog_checks/openldap/data/conf.yaml.example#L61

However looking at the code it seems like this value is never used in the actual check code that executes the custom queries against the LDAP endpoint:
https://github.com/DataDog/integrations-core/blob/master/openldap/datadog_checks/openldap/openldap.py#L144

Since the example config shows (objectClass=*) as the search_filter it would definitely make sense to use this option in order to be able to restrict the amount of results of simple availability checks based on requirements.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions