From dc68e41ee93beb82c0093deed5a349479c3eb469 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 15 May 2000 16:33:07 +0000 Subject: [PATCH] cleanup old TOOLID macro --- servers/slapd/init.c | 5 +++-- servers/slapd/root_dse.c | 1 + servers/slapd/slap.h | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/servers/slapd/init.c b/servers/slapd/init.c index a8125db10c..006167632a 100644 --- a/servers/slapd/init.c +++ b/servers/slapd/init.c @@ -89,8 +89,9 @@ slap_init( int mode, char *name ) case SLAP_SERVER_MODE: case SLAP_TOOL_MODE: Debug( LDAP_DEBUG_TRACE, - "%s init: initiated %s.\n", - name, ( mode & SLAP_TOOL_MODE ) ? "tool" : "server", 0 ); + "%s init: initiated %s.\n", name, + (mode & SLAP_MODE) == SLAPD_TOOL_MODE ? "tool" : "server", + 0 ); slap_name = name; diff --git a/servers/slapd/root_dse.c b/servers/slapd/root_dse.c index a9d860d883..962d7f4a09 100644 --- a/servers/slapd/root_dse.c +++ b/servers/slapd/root_dse.c @@ -99,6 +99,7 @@ root_dse_info( Connection *conn, Operation *op, char **attrs, int attrsonly ) send_search_entry( &backends[0], conn, op, e, attrs, attrsonly, NULL ); + send_search_result( conn, op, LDAP_SUCCESS, NULL, NULL, NULL, NULL, 1 ); diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 391c9e9745..76222e9233 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -689,7 +689,6 @@ LIBSLAPD_F (int) slapMode; #ifdef SLAPD_BDB2 #define SLAP_TIMED_MODE 0x1000 #endif -#define SLAP_TOOLID_MODE 4 /* temporary aliases */ typedef BackendDB Backend; -- 2.39.5