mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Removed obsolete dn_normalize calls
This commit is contained in:
parent
71aff74f71
commit
d8979214fe
@ -68,7 +68,7 @@ root_dse_info(
|
|||||||
e->e_attrs = NULL;
|
e->e_attrs = NULL;
|
||||||
e->e_dn = ch_strdup( LDAP_ROOT_DSE );
|
e->e_dn = ch_strdup( LDAP_ROOT_DSE );
|
||||||
e->e_ndn = 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;
|
e->e_private = NULL;
|
||||||
|
|
||||||
val.bv_val = "OpenLDAProotDSE";
|
val.bv_val = "OpenLDAProotDSE";
|
||||||
@ -191,15 +191,6 @@ int read_root_dse_file( const char *fname )
|
|||||||
return EXIT_FAILURE;
|
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) */
|
/* make sure the DN is a valid rootdse(rootdse is a null string) */
|
||||||
if( strcmp(e->e_ndn, "") != 0 ) {
|
if( strcmp(e->e_ndn, "") != 0 ) {
|
||||||
fprintf( stderr,
|
fprintf( stderr,
|
||||||
|
Loading…
Reference in New Issue
Block a user