]> git.sur5r.net Git - openldap/commitdiff
Removed obsolete dn_normalize calls
authorHoward Chu <hyc@openldap.org>
Wed, 26 Dec 2001 16:24:18 +0000 (16:24 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 26 Dec 2001 16:24:18 +0000 (16:24 +0000)
servers/slapd/root_dse.c

index f2ba8e027368a283cbcd866508943a9871b3ff76..06762df6536faddc875267823fe1ddcfdcb42843 100644 (file)
@@ -68,7 +68,7 @@ root_dse_info(
        e->e_attrs = NULL;
        e->e_dn = ch_strdup( LDAP_ROOT_DSE );
        e->e_ndn = ch_strdup( LDAP_ROOT_DSE );
-       (void) dn_normalize( e->e_ndn );
+       /* the DN is an empty string so no normalization needed */
        e->e_private = NULL;
 
        val.bv_val = "OpenLDAProotDSE";
@@ -191,15 +191,6 @@ int read_root_dse_file( const char *fname )
                        return EXIT_FAILURE;
                }
 
-               if( dn_normalize( e->e_ndn ) == NULL ) {
-                       fprintf( stderr, "root_dse: invalid dn=\"%s\" (line=%d)\n",
-                               e->e_dn, lineno );
-                       entry_free( e );
-                       entry_free( usr_attr );
-                       usr_attr = NULL;
-                       return EXIT_FAILURE;
-               }
-
                /* make sure the DN is a valid rootdse(rootdse is a null string) */
                if( strcmp(e->e_ndn, "") != 0 ) {
                        fprintf( stderr,