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/dn.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/dn.c')
-rw-r--r-- | ldap/servers/slapd/dn.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ldap/servers/slapd/dn.c b/ldap/servers/slapd/dn.c index f30578f6..bd229d72 100644 --- a/ldap/servers/slapd/dn.c +++ b/ldap/servers/slapd/dn.c @@ -449,7 +449,6 @@ static int ISEOV(char *s, char *ends) { char *p; - int rc = 1; for (p = s; p && *p && p < ends; p++) { if (SEPARATOR(*p)) { return 1; @@ -1159,6 +1158,17 @@ rdn_av_swap( struct berval *av1, struct berval *av2, int escape ) } } +/* Introduced for the upgrade tool. DON'T USE THIS API! */ +char * +slapi_dn_normalize_case_original( char *dn ) +{ + /* LDAPDebug( LDAP_DEBUG_TRACE, "=> slapi_dn_normalize \"%s\"\n", dn, 0, 0 ); */ + *(substr_dn_normalize_orig( dn, dn + strlen( dn ))) = '\0'; + /* LDAPDebug( LDAP_DEBUG_TRACE, "<= slapi_dn_normalize \"%s\"\n", dn, 0, 0 ); */ + + /* normalize case */ + return( slapi_dn_ignore_case( dn )); +} /* * DEPRECATED: this function does nothing. |