mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 07:39:35 -05:00
List static overlays/backends when started with -VVV
This commit is contained in:
parent
f26b5b6692
commit
c4d6e40ee1
1 changed files with 18 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue