<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Thanks to Ulf for his contribution! The fix was reviewed and pushed to
master.<br>
<pre class="bz_comment_text" id="comment_text_4">$ git merge work
Updating b5b57df..467df90
Fast forward
ldap/servers/slapd/back-ldbm/import-threads.c | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
$ git push
Counting objects: 13, done.
Delta compression using 2 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 1.17 KiB, done.
Total 7 (delta 5), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
b5b57df..467df90 master -> master </pre>
--noriko<br>
<blockquote type="cite">Subject: [PATCH] 525007 ldif2db replaces
existing modify/create name and timestamps<br>
<br>
Fix contributed by Ulf Weltman (<a class="moz-txt-link-abbreviated" href="mailto:ulf.weltman@hp.com">ulf.weltman@hp.com</a>)<br>
<br>
Description From Ulf Weltman (<a class="moz-txt-link-abbreviated" href="mailto:ulf.weltman@hp.com">ulf.weltman@hp.com</a>)<br>
In previous releases, if LDIF being imported contained createTimestamp,<br>
creatorsName, modifyTimestamp, or modifiersName, those values would be
kept in<br>
the imported entries. BZ# 462922 added code to insert those attributes
during<br>
import but it clobbers any values existing in the LDIF being imported.
I think<br>
the imported values should take precedence, this would be useful during<br>
migration for example.<br>
<br>
If anyone wants to take advantage of the new behavior where the server<br>
provisions new values, they can strip out the values from the LDIF
before<br>
importing or they can set nsslapd-exclude-from-export to not export
those<br>
attributes before importing.<br>
<br>
See also <a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/show_bug.cgi?id=525007">https://bugzilla.redhat.com/show_bug.cgi?id=525007</a><br>
<br>
Reviewed by richm, nkinder, and nhosoi<br>
</blockquote>
<br>
<br>
On 09/25/2009 10:49 AM, Ulf Weltman wrote:
<blockquote cite="mid:4ABD02B6.2040603@hp.com" type="cite">Summary:
ldif2db replaces existing modify/create name and timestamps
<br>
<a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/show_bug.cgi?id=525007">https://bugzilla.redhat.com/show_bug.cgi?id=525007</a>
<br>
<br>
[Problem Description]
<br>
LDIF that is imported might contain createTimestamp, creatorsName,
modifyTimestamp, or modifiersName. The import code since FDS 1.2
inserts these attributes but it should only do so if they're missing;
any existing values should take precedence.
<br>
<br>
[Fix Description]
<br>
Only insert the attributes if they don't already exist in the entry.
attrlist_find() rather than slapi_entry_attr_find() is used because the
latter reports attributes with empty values as being missing
attributes.
<br>
<br>
[Proposed Fix]
<br>
<a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/attachment.cgi?id=362157">https://bugzilla.redhat.com/attachment.cgi?id=362157</a>
<br>
<br>
<pre wrap="">
<hr size="4" width="90%">
--
389-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:389-devel@redhat.com">389-devel@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/fedora-directory-devel">https://www.redhat.com/mailman/listinfo/fedora-directory-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>