Detection of the bug: configuration invalid and indexed search fails
check that the index configuration of ipaAnchorUUID is invalid
ldapsearch -LLL -h localhost -p 389 -D "cn=directory manager" -w xxxxx -b "cn=ipaAnchorUUID,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config dn: cn=ipaAnchorUUID,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config cn: ipaOriginalUid <<< buggy value cn: ipaAnchorUUID nsIndexType: eq nsIndexType: pres nsSystemIndex: false objectClass: top objectClass: nsIndex
Verify it is not working --> 'notes=U'
ldapsearch -LLL -h localhost -p 389 -D "cn=directory manager" -w xxxxx -b "<suffix>" "(ipaAnchorUUID=*)" dn [24/May/2017:16:31:53.392012887 +0200] conn=27 op=1 SRCH base="<suffix>" scope=2 filter="(ipaAnchorUUID=*)" attrs="distinguishedName" [24/May/2017:16:31:53.430503561 +0200] conn=27 op=1 RESULT err=0 tag=101 nentries=0 etime=0 notes=U
Workaround is to fix the config and reindex
fix the configuration
ldapmodify -h localhost -p 389 -D "cn=directory manager" -w xxxxx dn: cn=ipaAnchorUUID,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config changetype: modify delete: cn cn: ipaOriginalUid ldapsearch -LLL -h localhost -p 389 -D "cn=directory manager" -w xxxxx -b "cn=ipaAnchorUUID,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config dn: cn=ipaAnchorUUID,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config cn: ipaAnchorUUID nsIndexType: eq nsIndexType: pres nsSystemIndex: false objectClass: top objectClass: nsIndex
reindex ipaAnchorUUID
ipactl stop db2index -Z TEST-COM -n userRoot -s "<suffix>" -t ipaAnchorUUID ipactl start
Check workaround worked
ldapsearch -LLL -h localhost -p 389 -D "cn=directory manager" -w xxxxx -b "<suffix>" "(ipaAnchorUUID=*)" dn [24/May/2017:16:41:08.779602212 +0200] conn=26 op=1 SRCH base="<suffix>" scope=2 filter="(ipaAnchorUUID=*)" attrs="distinguishedName" [24/May/2017:16:41:08.785696976 +0200] conn=26 op=1 RESULT err=0 tag=101 nentries=0 etime=0
The bug exists in master, 4.5 and 4.4
git tag --contains b506fd178edbf1553ca581c44ac6697f88ead125 alpha_1-4-4-0 release-4-4-0 release-4-4-1 release-4-4-2 release-4-4-3 release-4-4-4 release-4-5-0
Metadata Update from @mbasti: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1456769
Issue linked to Bugzilla: Bug 1456769
master:
ipa-4-5:
Metadata Update from @mbasti: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.