Univention Bugzilla – Bug 53191
univentionSharePath and univentionShareHost not indexed
Last modified: 2021-05-25 15:59:27 CEST
univentionSharePath and univentionShareHost not indexed Apr 29 10:01:17 ucs-2888 slapd[13164]: <= mdb_equality_candidates: (univentionShareHost) not indexed Apr 29 10:01:17 ucs-2888 slapd[13164]: <= mdb_equality_candidates: (univentionSharePath) not indexed https://hutten.knut.univention.de/mediawiki/index.php/Produkttests_UCS_5.0_LDAP#LDAP-Indizes_aktualisieren How to reproduce: Create a share and open the shares umc module
Searching for those two attributes finds the following 3 searches: # git grep -e univentionSharePath= -e univentionShareHost= base/univention-lib/debian/python-univention-lib.postinst: (&(univentionSharePath=*)(univentionShareHost=%s)) base/univention-quota/quota.py: (&(objectClass=univentionShare)(univentionShareHost=%s)) services/univention-nfs/nfs-shares.py: (&(objectClass=univentionShare)(|(univentionShareHost=%s.%s)(univentionShareHost=%s))) Only the first one is problematic as it does not contain the (objectClass=univentionShare) condition: OpenLDAP then has do a complete scan of ALL entries. Fix 1: add (objectClass=univentionShare) to the filter string Fix 2: Remove the LDAP search completely and/or put it in a conditional to be executed only with `dpkg --compare-versions "$2" lt-nl 8.0.0-15` (executed only on upgrade) instead of `lt` (executed both on install and upgrade). The warning is quiet pointless as it is printed to STDOUT, which gets redirected to /var/log/univention/updater.log. Adding everything to indexes is not a good idea as it slows down LDAP removal dramatically.
eef728e45b | Improve performance of LDAP search for univentionShareHost in postinst Package: univention-lib Version: 9.0.11-4A~5.0.0.202105111518 Branch: ucs_5.0-0
What I tested: New search filter is faster and produces the same results -> OK jenkins -> OK No functional changes -> no changelog needed -> OK -> Verified > Adding everything to indexes is not a good idea as it slows down LDAP removal dramatically. I added a bug if we want to discuss this further and so I can add a link to the product test page. Bug 53259
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".