From 2b82bc2d639688c22d09300de20ffc6e58b292e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Mon, 19 Apr 1999 20:02:24 +0000 Subject: [PATCH] The Root DSE does not depend on SLAPD_CONFIG_DN and friends. Added a comment for supportedSASLMechanism to root_dse.c --- servers/slapd/root_dse.c | 1 + servers/slapd/search.c | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/servers/slapd/root_dse.c b/servers/slapd/root_dse.c index 56cc7ad593..44b0369379 100644 --- a/servers/slapd/root_dse.c +++ b/servers/slapd/root_dse.c @@ -54,6 +54,7 @@ root_dse_info( Connection *conn, Operation *op ) /* altServer unsupported */ /* supportedExtension: no extensions supported */ /* supportedControl: no controls supported */ + /* supportedSASLMechanism: not yet */ for ( i=LDAP_VERSION_MIN; i<=LDAP_VERSION_MAX; i++ ) { sprintf(buf,"%d",i); diff --git a/servers/slapd/search.c b/servers/slapd/search.c index 0b76e934db..f1dd5b7226 100644 --- a/servers/slapd/search.c +++ b/servers/slapd/search.c @@ -126,13 +126,14 @@ do_search( goto return_results; } #endif - if ( strcmp( base, LDAP_ROOT_DSE ) == 0 ) { - root_dse_info( conn, op ); - goto return_results; - } } #endif /* monitor or config or schema dn */ + if ( strcmp( base, LDAP_ROOT_DSE ) == 0 && scope == LDAP_SCOPE_BASE ) { + root_dse_info( conn, op ); + goto return_results; + } + /* * We could be serving multiple database backends. Select the * appropriate one, or send a referral to our "referral server" -- 2.39.5