From: Ralf Haferkamp Date: Mon, 1 Nov 2010 14:51:23 +0000 (+0000) Subject: List static overlays/backends when started with -VVV X-Git-Tag: MIGRATION_CVS2GIT~441 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c4d6e40ee1cacf67fa8ece39c6eb2b93ad9e55eb;p=openldap List static overlays/backends when started with -VVV --- diff --git a/servers/slapd/main.c b/servers/slapd/main.c index a172b5009c..acf1964f7f 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -100,6 +100,9 @@ const char Versionstr[] = OPENLDAP_PACKAGE " " OPENLDAP_VERSION " Standalone LDAP Server (slapd)"; #endif +extern OverlayInit slap_oinfo[]; +extern BackendInfo slap_binfo[]; + #define CHECK_NONE 0x00 #define CHECK_CONFIG 0x01 #define CHECK_LOGLEVEL 0x02 @@ -685,6 +688,21 @@ unhandled_option:; if ( version ) { fprintf( stderr, "%s\n", Versionstr ); + if ( version > 2 ) { + if ( slap_oinfo[0].ov_type ) { + fprintf( stderr, "Included static overlays:\n"); + for ( i= 0 ; slap_oinfo[i].ov_type; i++ ) { + fprintf( stderr, " %s\n", slap_oinfo[i].ov_type ); + } + } + if ( slap_binfo[0].bi_type ) { + fprintf( stderr, "Included static backends:\n"); + for ( i= 0 ; slap_binfo[i].bi_type; i++ ) { + fprintf( stderr, " %s\n", slap_binfo[i].bi_type ); + } + } + } + if ( version > 1 ) goto stop; }