[389-devel] Please review (revised): [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 00:55:29 UTC 2010


  Special thanks to Andrey Ivanov for the discussion.  It was very 
helpful.  I revised the patch to adjust the parent DN if it's different 
from the existing one in DB.

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

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

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.

And sorry to dear Reviewers, I could not resist fixing 3 indentations...
--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/20100830/552e0dec/attachment.bin 


More information about the 389-devel mailing list