Univention Bugzilla – Bug 36343
mdb backend finds base object by ldapsearch -s one -b "$ldap_base" objectclass=domain
Last modified: 2016-05-10 12:30:25 CEST
I filed an upstream bug for this, see URL.
Code using SCOPE_ONELEVEL searches may show a change of behaviour. From a quick grep I see these candidates:
E.g. I would expect "base+one" in univention.uldap to return the base object twice when searching e.g. for objectclass=domain.
But the issue only occurs if a filter was specified for a scope "one" search which only matches the base of the search and none of the children.
+++ This bug was initially created as a clone of Bug #36169 +++
Created attachment 6265 [details]
cherry picked openldap from errata4.0-1 to errata4.0-3, added patch 97_bug36343.patch and built openldap in errata4.0-3.
Ok, patch applied.
Applying patch 97_bug36343.patch using -p1
Output of the patch process:
patching file servers/slapd/back-mdb/search.c
and "univention-ldapsearch -s one objectClass=univentionBase -LLL dn" works.
Advisory is ok, I removed support for ucs4.0-2, which has has ended today.