#ifdef SLAPD_META
#include "back-meta/external.h"
#endif
+#ifdef SLAPD_MONITOR
+#include "back-monitor/external.h"
+#endif
#ifdef SLAPD_PASSWD
#include "back-passwd/external.h"
#endif
#if defined(SLAPD_META) && !defined(SLAPD_META_DYNAMIC)
{"meta", meta_back_initialize},
#endif
+#if defined(SLAPD_MONITOR) && !defined(SLAPD_MONITOR_DYNAMIC)
+ {"monitor", monitor_back_initialize},
+#endif
#if defined(SLAPD_PASSWD) && !defined(SLAPD_PASSWD_DYNAMIC)
{"passwd", passwd_back_initialize},
#endif
return -1;
}
-
-int backend_sync( Backend *be )
-{
- int i;
- int rc = 0;
-
- if( be != NULL ) {
- /* sync a specific backend database */
-
- if ( be->bd_info->bi_nDB == 0 ) {
- /* no database of this type, we never opened it */
- return 0;
- }
-
- if ( be->bd_info->bi_db_sync ) {
- be->bd_info->bi_db_sync( be );
- }
-
- return 0;
- }
-
- /* sync each backend database */
- for( i = 0; i < nBackendDB; i++ ) {
- if ( backendDB[i].bd_info->bi_db_sync ) {
- rc = backendDB[i].bd_info->bi_db_sync(
- &backendDB[i] );
- }
-
- if(rc != 0) {
- Debug( LDAP_DEBUG_ANY,
- "backend_sync: bi_sync %s failed!\n",
- backendDB[i].be_type, 0, 0 );
- }
- }
-
- return 0;
-}
-
-
int backend_shutdown( Backend *be )
{
int i;
be = &backends[nbackends++];
be->bd_info = bi;
- be->be_sizelimit = defsize;
- be->be_timelimit = deftime;
+ be->be_def_limit = deflimit;
be->be_dfltaccess = global_default_access;
be->be_restrictops = global_restrictops;