ldap_search: incorrect scope naming #9081
Labels
backport-9
Automatically create a backport for the stable-9 branch
bug
This issue/PR relates to a bug
check-before-release
PR will be looked at again shortly before release and merged if possible.
module
module
plugins
plugin (any type)
Summary
I was reviewing some old stuff in my inbox and I bumped into: #4894 , which is still open. That one was mentioned in #8358, which was fixed by #8377 by changing the docs for the
scope
parameter to include:However, double checking in the
ldapsearch
man page (from OpenLDAP 2.4.28), we have:From that, it looks like #8377 got it the other way around, and it should be rewritten as:
Additionally, looking at the module itself, it looks like the
subtree
scope is missing, because thescope
option is defined as:https://github.com/ansible-collections/community.general/blob/main/plugins/modules/ldap_search.py#L41-L48
But the code translates that:
https://github.com/ansible-collections/community.general/blob/main/plugins/modules/ldap_search.py#L209-L214
Issue Type
Bug Report
Component Name
ldap_search
Ansible Version
$ ansible --version
Community.general Version
$ ansible-galaxy collection list community.general
Configuration
$ ansible-config dump --only-changed
OS / Environment
No response
Additional Information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: