URL:
https://github.com/freeipa/freeipa/pull/822
Title: #822: Fix index definition for ipaAnchorUUID
abbra commented:
"""
We had a copy-paste error in the original index definition which caused index to be
created with two 'cn' values. It made index for ipaAnchorUUID not really usable.
To fix the index, we need to remove additional 'cn'. Our upgrade code
automatically causes re-indexing of the affected index:
```
2017-05-26T13:06:47Z DEBUG Updating existing entry:
cn=ipaAnchorUUID,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
2017-05-26T13:06:47Z DEBUG ---------------------------------------------
2017-05-26T13:06:47Z DEBUG Initial value
2017-05-26T13:06:47Z DEBUG dn: cn=ipaAnchorUUID,cn=index,cn=userRoot,cn=ldbm
database,cn=plugins,cn=config
2017-05-26T13:06:47Z DEBUG nsIndexType:
2017-05-26T13:06:47Z DEBUG eq
2017-05-26T13:06:47Z DEBUG pres
2017-05-26T13:06:47Z DEBUG objectClass:
2017-05-26T13:06:47Z DEBUG top
2017-05-26T13:06:47Z DEBUG nsIndex
2017-05-26T13:06:47Z DEBUG cn:
2017-05-26T13:06:47Z DEBUG ipaOriginalUid
2017-05-26T13:06:47Z DEBUG ipaAnchorUUID
2017-05-26T13:06:47Z DEBUG nsSystemIndex:
2017-05-26T13:06:47Z DEBUG false
2017-05-26T13:06:47Z DEBUG remove: 'ipaOriginalUid' from cn, current value
[u'ipaOriginalUid', u'ipaAnchorUUID']
2017-05-26T13:06:47Z DEBUG remove: updated value [u'ipaAnchorUUID']
2017-05-26T13:06:47Z DEBUG ---------------------------------------------
2017-05-26T13:06:47Z DEBUG Final value after applying updates
2017-05-26T13:06:47Z DEBUG dn: cn=ipaAnchorUUID,cn=index,cn=userRoot,cn=ldbm
database,cn=plugins,cn=config
2017-05-26T13:06:47Z DEBUG nsIndexType:
2017-05-26T13:06:47Z DEBUG eq
2017-05-26T13:06:47Z DEBUG pres
2017-05-26T13:06:47Z DEBUG objectClass:
2017-05-26T13:06:47Z DEBUG top
2017-05-26T13:06:47Z DEBUG nsIndex
2017-05-26T13:06:47Z DEBUG cn:
2017-05-26T13:06:47Z DEBUG ipaAnchorUUID
2017-05-26T13:06:47Z DEBUG nsSystemIndex:
2017-05-26T13:06:47Z DEBUG false
2017-05-26T13:06:47Z DEBUG [(1, u'cn', [u'ipaOriginalUid'])]
2017-05-26T13:06:47Z DEBUG Updated 1
2017-05-26T13:06:47Z DEBUG Done
2017-05-26T13:06:52Z DEBUG Creating task to index attribute: ipaAnchorUUID
2017-05-26T13:06:52Z DEBUG Task id:
cn=indextask_ipaAnchorUUID_137150968120928240_13384,cn=index,cn=tasks,cn=config
2017-05-26T13:06:53Z DEBUG Indexing finished
```
"""
See the full comment at
https://github.com/freeipa/freeipa/pull/822#issuecomment-304279461