Univention Bugzilla – Bug 40886
printerModel not indexed
Last modified: 2016-04-28 16:58:42 CEST
slapindex has not been called after/during this upgrade. This causes that substring searches for printerModel for existing attributes doesn't work anymore. +++ This bug was initially created as a clone of Bug #39884 +++ mdb_substring_candidates: (printerModel) not indexed
Ticket#2016022621000272 A side effect is that shares/printer:open() doesn't detect the 'product' which causes that opening the object in UMC resets the values for product and model.
*** Bug 40610 has been marked as a duplicate of this bug. ***
The problem arises from the fact, 1. that attributes are added to UCRV ldap/index/*, 2. then `slapd` is restarted, 3. before `slapindex` is run. # univention-ldapsearch -LLL loginShell=/bin/bash dn | grep -c ^dn 12 # ucr set ldap/index/eq="$(ucr get ldap/index/eq),loginShell # /etc/init.d/slapd restart # univention-ldapsearch -LLL loginShell=/bin/bash dn | grep -c ^dn 0 # /etc/init.d/slapd stop # slapindex loginShell # /etc/init.d/slapd start # univention-ldapsearch -LLL loginShell=/bin/bash dn | grep -c ^dn 12 Unfortunately that fix r67289 to stop slapd during the upgrade was reverted by r67336 and only later fixed again r67514. So everything between 4.1-x+e84 and 4.1-x+e119 is broken. Currently there is nothing to due other then upgrade to at least erratum119. We could add code `ldap_setup_index` to forcefully stop and start `slapd` each time, but running `slapindex` takes a long time while the LDAP service is unavailable. *** This bug has been marked as a duplicate of bug 40575 ***
(In reply to Philipp Hahn from comment #3) > The problem arises from the fact, > 1. that attributes are added to UCRV ldap/index/*, > 2. then `slapd` is restarted, > 3. before `slapindex` is run. > > # univention-ldapsearch -LLL loginShell=/bin/bash dn | grep -c ^dn > 12 > # ucr set ldap/index/eq="$(ucr get ldap/index/eq),loginShell > # /etc/init.d/slapd restart > # univention-ldapsearch -LLL loginShell=/bin/bash dn | grep -c ^dn > 0 > # /etc/init.d/slapd stop > # slapindex loginShell > # /etc/init.d/slapd start > # univention-ldapsearch -LLL loginShell=/bin/bash dn | grep -c ^dn > 12 > > Unfortunately that fix r67289 to stop slapd during the upgrade was reverted > by r67336 and only later fixed again r67514. So everything between 4.1-x+e84 > and 4.1-x+e119 is broken. > > Currently there is nothing to due other then upgrade to at least erratum119. > > We could add code `ldap_setup_index` to forcefully stop and start `slapd` > each time, but running `slapindex` takes a long time while the LDAP service > is unavailable. > > *** This bug has been marked as a duplicate of bug 40575 *** OK, slapd is stopped in the postinst before calling ldap_setup_index