mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 20:19:34 -05:00
don't get mad if monitor database is not configured
This commit is contained in:
parent
ae1481ba62
commit
c67913ce1c
1 changed files with 14 additions and 0 deletions
|
|
@ -258,6 +258,20 @@ bdb_monitor_open( BackendDB *be )
|
|||
char *ptr;
|
||||
int rc = 0;
|
||||
|
||||
/* don't bother if monitor is not configured */
|
||||
if ( !monitor_back_is_configured() ) {
|
||||
static int warning = 0;
|
||||
|
||||
if ( warning++ == 0 ) {
|
||||
Debug( LDAP_DEBUG_ANY, "bdb_monitor_open: "
|
||||
"monitoring disabled; "
|
||||
"configure monitor database to enable\n",
|
||||
0, 0, 0 );
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* monitor_back_register_entry_attrs() with a NULL ndn,
|
||||
* base="cn=Databases,cn=Monitor", scope=LDAP_SCOPE_ONE
|
||||
* and filter="(namingContexts:distinguishedNameMatch:=<suffix>)" */
|
||||
|
|
|
|||
Loading…
Reference in a new issue