From d8979214fe0dd60e9c43d7ac2c9204dbfbbb5f04 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 26 Dec 2001 16:24:18 +0000 Subject: [PATCH] Removed obsolete dn_normalize calls --- servers/slapd/root_dse.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/servers/slapd/root_dse.c b/servers/slapd/root_dse.c index f2ba8e0273..06762df653 100644 --- a/servers/slapd/root_dse.c +++ b/servers/slapd/root_dse.c @@ -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, -- 2.39.5