X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fsearch.c;h=1a7ec0d52af21542ed642169915fdd9b4c562a6f;hb=ebc746bf35bff61e92869a63f8a21c6f6527bed5;hp=a5cdd9c0afe23f577a248ab3d4a78ae8d99c95ab;hpb=51c2c98b48f4ca428b454853666ecd999f078322;p=openldap diff --git a/servers/slapd/search.c b/servers/slapd/search.c index a5cdd9c0af..1a7ec0d52a 100644 --- a/servers/slapd/search.c +++ b/servers/slapd/search.c @@ -73,7 +73,8 @@ do_search( "Unknown search scope" ); goto return_results; } - (void) dn_normalize( base ); + + (void) dn_normalize_case( base ); Debug( LDAP_DEBUG_ARGS, "SRCH \"%s\" %d %d", base, scope, deref ); Debug( LDAP_DEBUG_ARGS, " %d %d %d\n", sizelimit, timelimit, @@ -108,20 +109,20 @@ do_search( #if defined( SLAPD_MONITOR_DN ) || defined( SLAPD_CONFIG_DN ) || defined( SLAPD_SCHEMA_DN ) if ( scope == LDAP_SCOPE_BASE ) { #if defined( SLAPD_MONITOR_DN ) - if ( strcasecmp( base, SLAPD_MONITOR_DN ) == 0 ) { - monitor_info( conn, op ); + if ( strcmp( base, SLAPD_MONITOR_DN ) == 0 ) { + monitor_info( conn, op, attrs, attrsonly ); goto return_results; } #endif #if defined( SLAPD_CONFIG_DN ) - if ( strcasecmp( base, SLAPD_CONFIG_DN ) == 0 ) { - config_info( conn, op ); + if ( strcmp( base, SLAPD_CONFIG_DN ) == 0 ) { + config_info( conn, op, attrs, attrsonly ); goto return_results; } #endif #if defined( SLAPD_SCHEMA_DN ) - if ( strcasecmp( base, SLAPD_SCHEMA_DN ) == 0 ) { - schema_info( conn, op ); + if ( strcmp( base, SLAPD_SCHEMA_DN ) == 0 ) { + schema_info( conn, op, attrs, attrsonly ); goto return_results; } #endif