https://bugzilla.redhat.com/show_bug.cgi?id=578296
https://bugzilla.redhat.com/attachment.cgi?id=426726&action=diff
https://bugzilla.redhat.com/attachment.cgi?id=426726&action=edit
Files: ldap/servers/slapd/back-ldbm/back-ldbm.h ldap/servers/slapd/back-ldbm/id2entry.c ldap/servers/slapd/back-ldbm/index.c ldap/servers/slapd/back-ldbm/ldbm_search.c ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
Description: Attribute type entrydn needs to be added when subtree rename switch is on. Also, it should be allowed to use entrydn in the filter.
Change Description: 1) ldbm_back_next_search_entry_ext (ldbm_search.c) When getting an entry from ID using id2entry_ext, pass a flag ID2ENTRY_ADD_ENTRYDN to add entrydn to the entry. 2) id2entry_ext (id2entry.c) Added id2entry_ext to handle the flag ID2ENTRY_ADD_ENTRYDN. If ID2ENTRY_ADD_ENTRYDN is set in the flags variable and entryrdn switch is enabled, entrydn is added to the entry. 3) index_read_ext (index.c) If entryrdn switch is on and the attribute type is entrydn and the search type is equality, then call entryrdn_index_read to get the ID directly.
Thanks, --noriko
389-devel@lists.fedoraproject.org