c->log, c->cr_msg, c->argv[1] );
return(1);
}
+ if ( c->bi->bi_flags & SLAP_BFLAG_STANDALONE ) {
+ c->bi->bi_nDB++;
+ nbackends++;
+ }
break;
case CFG_DATABASE:
}
continue;
}
- if (!bi->bi_private) continue;
+ if ( !bi->bi_private && !(bi->bi_flags & SLAP_BFLAG_STANDALONE) ) continue;
rdn.bv_val = c.log;
rdn.bv_len = snprintf(rdn.bv_val, sizeof( c.log ),
goto done;
}
- } else if ( c->bi && !c->be ) {
+ } else if ( ( c->bi && !c->be ) || ( c->bi && c->bi->bi_flags & SLAP_BFLAG_STANDALONE ) ) {
rc = SLAP_CONF_UNKNOWN;
if ( c->bi->bi_cf_ocs ) {
ct = config_find_keyword( c->bi->bi_cf_ocs->co_table, c );
#define SLAP_BFLAG_REFERRALS 0x2000U
#define SLAP_BFLAG_SUBENTRIES 0x4000U
#define SLAP_BFLAG_DYNAMIC 0x8000U
+#define SLAP_BFLAG_STANDALONE 0x10000U /* started up regardless of whether any databases use it */
/* overlay specific */
#define SLAPO_BFLAG_SINGLE 0x01000000U