[389-devel] Please review (take 3): [Bug 628300] DN is not normalized in dn/entry cache when an entry is added, entrydn is not present in search results

Noriko Hosoi nhosoi at redhat.com
Tue Aug 31 17:19:46 UTC 2010


  https://bugzilla.redhat.com/show_bug.cgi?id=628300

https://bugzilla.redhat.com/attachment.cgi?id=442238&action=diff
https://bugzilla.redhat.com/attachment.cgi?id=442238&action=edit

Thanks to Andrey for testing the patch I sent out for reviewing.  He 
found a bug in the patch, which forgot to return found entries to the cache.

Description: Code for supporting entrydn (added for Bug 578296)
contained a bug.  If an entry was found in the entry cache,
id2entry_ext returned it without adding the entrydn attribute
value.  This patch fixes the problem.
In addition, if the parent DN in the to-be-added entry is not
identical to the real parent DN (e.g., dc=eXAmple vs. dc=example),
replace the string with the real parent DN.  This check&  replace
is done only when the parent entry is in the entry cache not to
sacrifice the performance.

-------------- 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/20100831/cbd4699e/attachment.bin 


More information about the 389-devel mailing list