summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/dn.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/servers/slapd/dn.c')
-rw-r--r--ldap/servers/slapd/dn.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/ldap/servers/slapd/dn.c b/ldap/servers/slapd/dn.c
index c3aaf4cc..fc3695c9 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;
@@ -1174,6 +1173,18 @@ slapi_dn_normalize( char *dn )
return dn;
}
+/* 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.
* Note that this routine normalizes to the end and doesn't null terminate