]> git.sur5r.net Git - openldap/commitdiff
e_ndn = dn_normalize_case( e_dn )
authorKurt Zeilenga <kurt@openldap.org>
Mon, 18 Jan 1999 20:00:58 +0000 (20:00 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 18 Jan 1999 20:00:58 +0000 (20:00 +0000)
servers/slapd/back-ldbm/cache.c
servers/slapd/back-passwd/search.c
servers/slapd/entry.c
servers/slapd/monitor.c

index f8664f5ebe2b0c133601ed25314d6f838ca4380d..f83ea50c5402bb74edf4059853c7289f4e35de58 100644 (file)
@@ -35,8 +35,8 @@ cache_entry_cmp( Entry *e1, Entry *e2 )
 static int
 cache_entrydn_cmp( Entry *e1, Entry *e2 )
 {
-       /* compare their normalized dn's */
-       return( strcasecmp( e1->e_ndn, e2->e_ndn ) );
+       /* compare their normalized UPPERCASED dn's */
+       return( strcmp( e1->e_ndn, e2->e_ndn ) );
 }
 
 static int
@@ -235,7 +235,7 @@ cache_find_entry_dn2id(
        pthread_mutex_lock( &cache->c_mutex );
 
        e.e_dn = dn;
-       e.e_ndn = dn_normalize( ch_strdup( dn ) );
+       e.e_ndn = dn_normalize_case( ch_strdup( dn ) );
 
        if ( (ep = (Entry *) avl_find( cache->c_dntree, (caddr_t) &e,
                cache_entrydn_cmp )) != NULL )
index a97206fe313f10de1a4bb1c765e0389c698b6795..cbfc68fb4d663fe7e44eacc72eed34b4bd234270 100644 (file)
@@ -136,7 +136,7 @@ pw2entry( Backend *be, struct passwd *pw )
 
        sprintf( buf, "%s@%s", pw->pw_name, be->be_suffix[0] );
        e->e_dn = ch_strdup( buf );
-       e->e_ndn = ch_strdup( buf );
+       e->e_ndn = dn_normalize_case( ch_strdup( buf ) );
 
        val.bv_val = pw->pw_name;
        val.bv_len = strlen( pw->pw_name );
index 440411e4816b8e8de19a90f961bc610395078c70..fedab892fa46c4d6617630fb85745de2bb5717ac 100644 (file)
@@ -109,7 +109,7 @@ str2entry( char     *s )
                                    e->e_id, e->e_ndn, value );
                                free( e->e_ndn );
                        }
-                       e->e_ndn = dn_normalize( ch_strdup( value ) );
+                       e->e_ndn = dn_normalize_case( ch_strdup( value ) );
                        continue;
                }
 
index 9efffc788e8c14a743b425b5ef86e92f3f204cd8..1d3e55f9676a717031adbb69b52232e31d7b89c6 100644 (file)
@@ -49,7 +49,7 @@ monitor_info( Connection *conn, Operation *op )
        entry_rdwr_init(e);
        e->e_attrs = NULL;
        e->e_dn = ch_strdup( SLAPD_MONITOR_DN );
-       e->e_ndn = NULL;
+       e->e_ndn = dn_normalize_case( ch_strdup(SLAPD_MONITOR_DN) );
 
        val.bv_val = Versionstr;
        if (( p = strchr( Versionstr, '\n' )) == NULL ) {