389ds / 389-ds-base

The enterprise-class Open Source LDAP server for Linux
https://www.port389.org/
Other
213 stars 94 forks source link

If an entry RDN is identical to the suffix, then Entryrdn gets broken during a reindex #6417

Open tbordaz opened 16 hours ago

tbordaz commented 16 hours ago

Issue Description At the end of a reindex, entryrdn is rebuilt taking into account each entry under the suffix. The suffix is the first entry to be added. If a later entry has the same rdn than the suffix then entryrdn gets broken.

The bug impacts bdb as well as mdb. It does not impact import but only indexing.

Under mdb entryrdn gets broken silently, but contains invalid data Under bdb entryrdn gets broken with message like entryrdn_insert_key - Same DN (dn: <ENTRY_DN>) is already in the entryrdn file with different ID

Package Version and Platform:

Steps to Reproduce will provide a CI testcase

Expected results after a reindex entryrdn should not be corrupted