Hi,
When I try to query the root of my AD with scope LDAP_SCOPE_SUBTREE ldap_search_ext_s() fails with "Operations error". It happens only when I set the ldap_search_options.base to the domain DN (eg. DC=example,DC=com). If I use a more specific base, such as CN=Computers,DC=example,DC=com the operation succeeds. Is there a limitation to the search function?
pseudocode snippet:
``` ldap_search_options ldap_opts; ldap_opts.base = "DC=example,DC=com"; ldap_opts.scope = LDAP_SCOPE_SUBTREE; ```
--On Wednesday, December 15, 2021 6:29 PM +0200 Alex Ditu ditu.alexandru@gmail.com wrote:
Hi,
When I try to query the root of my AD with scope LDAP_SCOPE_SUBTREE ldap_search_ext_s() fails with "Operations error". It happens only when I set the ldap_search_options.base to the domain DN (eg. DC=example,DC=com). If I use a more specific base, such as CN=Computers,DC=example,DC=com the operation succeeds. Is there a limitation to the search function?
This sounds like a question for Microsoft and what limitations it imposes.
Regards, Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
openldap-technical@openldap.org