[389-devel] Please review: [Bug 578296] Attribute type entrydn needs to be added when subtree rename switch is on.
Noriko Hosoi
nhosoi at redhat.com
Fri Jun 25 00:22:59 UTC 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6646 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-devel/attachments/20100624/71616db0/attachment.bin
More information about the 389-devel
mailing list