diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2010-05-17 16:47:55 -0700 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2010-05-17 16:47:55 -0700 |
commit | c12c48f47a0cdd7282950fa25e5e7548dd1c5ab0 (patch) | |
tree | 440d85d8a2032d80a7663dacf7c52f8b3cb23511 /ldap/servers/slapd/mapping_tree.c | |
parent | 5bbca6cfe1f9f1a44872d97a2c80c8cc03c19bbf (diff) | |
download | ds-c12c48f47a0cdd7282950fa25e5e7548dd1c5ab0.tar.gz ds-c12c48f47a0cdd7282950fa25e5e7548dd1c5ab0.tar.xz ds-c12c48f47a0cdd7282950fa25e5e7548dd1c5ab0.zip |
591336 - Implementing upgrade DN format tool
Change description:
. adding upgradednformat utility to each server instance.
. adding 91upgradednformat.pl for in-place-upgrade.
. implementing ldbm_back_upgradednformat sharing the import/
reincexing codes.
. adding a new DBVERSION ID "dn-4514" for the upgraded db.
. fixing access logs (delete.c and modify.c)
. fixing compiler warnings.
. fixing memory leaks.
. fixing a bug in syntax plugin to free strings.
. adding templates for plugin id, version, vendor, and description,
which are needed for the online upgrade.
. dbversion_write takes an additional bit flags, which indicates
which extra DBVERSION strings are written to the DBVERSION file.
It was introduced for the upgrade tools not to intervene each
other's tasks (e.g., dn2rdn for converting entrydn to entryrdn
and upgradednformat for upgrading the DN format).
. fixing a bug in entryrdn index code which was missing to normalize
RDN.
See also:
https://bugzilla.redhat.com/show_bug.cgi?id=591336
http://directory.fedoraproject.org/wiki/Upgrade_to_New_DN_Format#Migration.2FUpgrade
Diffstat (limited to 'ldap/servers/slapd/mapping_tree.c')
-rw-r--r-- | ldap/servers/slapd/mapping_tree.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ldap/servers/slapd/mapping_tree.c b/ldap/servers/slapd/mapping_tree.c index 7503929d..a67ec2ac 100644 --- a/ldap/servers/slapd/mapping_tree.c +++ b/ldap/servers/slapd/mapping_tree.c @@ -1080,6 +1080,15 @@ int mapping_tree_entry_modify_callback(Slapi_PBlock *pb, Slapi_Entry* entryBefor { parent_node = mapping_tree_root; } + else if ((strcasecmp(mods[i]->mod_type, "cn") == 0) && + SLAPI_IS_MOD_ADD(mods[i]->mod_op)) + { + /* Allow to add an additional cn. + * e.g., cn: "<suffix>" for the backward compatibility. + * No need to update the mapping tree node itself. + */ + continue; + } else { /* we have to find the new parent node */ @@ -2684,6 +2693,11 @@ mtn_get_mapping_tree_node_by_entry(mapping_tree_node* node, const Slapi_DN *dn) return NULL; } + if(NULL == dn){ + /* bad mapping tree entry operation */ + return NULL; + } + if (slapi_sdn_compare(node->mtn_subtree, dn) == 0) { return node; |