https://bugs.openldap.org/show_bug.cgi?id=9350
--- Comment #2 from Ondřej Kuzník ondra@mistotebe.net --- On Mon, Jan 31, 2022 at 08:34:01AM +0000, openldap-its@openldap.org wrote:
we using uri=null and base=null with default values from /etc/openldap/ldap.conf and i can't find any documentaion about that, only code from openldap/libraries/libldap/search.c: in function ldap_build_search_req: if ( base == NULL ) { /* no base provided, use session default base */ base = ld->ld_options.ldo_defbase;
man 3 ldap_search_s: The base parameter is the DN of the entry at which to start the search.
I'm pretty sure passing base = "" (as opposed to base = NULL) works as intended?